[SERVER-6559] db.runCommand with renameCollection causes mongod to crash Created: 23/Jul/12 Updated: 11/Jul/16 Resolved: 07/Aug/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.2.0-rc0 |
| Fix Version/s: | 2.2.0-rc1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Kim Miller | Assignee: | Tad Marshall |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
RHEL 6.1 64 bit |
||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Participants: |
| Description |
|
Trying to drop a collection named with periods and underscores, which fails. Tried to rename is using renameCollection, to then drop it. The runCommand/renameCollection causes mongod to crash: [kmiller@walnut badger]$ start-datastore ) to: localhost:27006 Noticed this happened in 2.1.2 as well, but thought it might be fixed in 2.2.0-rc0. It isn't urgent to delete the collection and I know this is just a release candidate, but noticed the problem and thought I would mention it. Rgds/Kim |
| Comments |
| Comment by auto [ 07/Aug/12 ] | ||||
|
Author: {u'date': u'2012-08-07T08:36:21-07:00', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}Message: Rework two lines of code to not crash on missing periods in | ||||
| Comment by Tad Marshall [ 23/Jul/12 ] | ||||
|
Confirmed: passing a "to" collection name that does not include a period leads to segfault. mongo/src/mongo/db/namespacestring.h lines 115 to 118 (annotated):
|