[SERVER-4584] mongod crashes when trying to create a collection in a database * Created: 29/Dec/11 Updated: 11/Jul/16 Resolved: 24/Jan/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Stability |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sridhar Nanjundeswaran | Assignee: | Eric Milkie |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 x64 mongod 64 bit windows 2.0.2 |
||
| Issue Links: |
|
||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
Start mongod, and the following when run from the shell crashes mongod.
The following is from the mongod log |
| Comments |
| Comment by Eric Milkie [ 24/Jan/12 ] | |||
|
Release notes for 2.2 have been added to the wiki. | |||
| Comment by auto [ 06/Jan/12 ] | |||
|
Author: {u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: These newly added characters are illegal for Windows filenames (although it is possible to create files | |||
| Comment by Eliot Horowitz (Inactive) [ 06/Jan/12 ] | |||
|
We should add a note to the release notes about how to move data if you happened to have a database with one of those characters. | |||
| Comment by Eliot Horowitz (Inactive) [ 06/Jan/12 ] | |||
|
Those should all be illegal. | |||
| Comment by Eric Milkie [ 05/Jan/12 ] | |||
|
I have a change pending that adds
This means if someone already has a database name with those characters (on Linux), once they upgrade to 2.1.0+, mongod will refuse to start. This sounds unlikely to happen. Is it okay to commit this? | |||
| Comment by Sridhar Nanjundeswaran [ 05/Jan/12 ] | |||
|
It still crashed on Windows 7 with the same error for me with the latest commit 45ab7c3a4d9cbe199539464e966ad4193963f6fc. | |||
| Comment by Eric Milkie [ 05/Jan/12 ] | |||
|
Do we want to prohibit unwise but legal-on-some-OS's names like "*"? I think we should. Another reproducer for this:
| |||
| Comment by Eric Milkie [ 05/Jan/12 ] | |||
|
Even worse, when I tried it just now with HEAD of master, it actually successfully creates database files with *'s:
| |||
| Comment by Eliot Horowitz (Inactive) [ 05/Jan/12 ] | |||
|
Not sure actually... |