[SERVER-10055] Mongod hangs when accessing deeply recursive documents Created: 28/Jun/13 Updated: 29/Sep/14 Resolved: 29/Sep/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Christian Hergert | Assignee: | Ramon Fernandez Marina |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Fedora 19 w/ 10gen mongo rpms |
||
| Attachments: |
|
| Operating System: | ALL |
| Steps To Reproduce: | xzcat insert.dat.xz | nc localhost 27017 |
| Participants: |
| Description |
|
A deeply nested document will cause the shell to hang. I'm not totally sure it is just the shell, as all CPUs spin and my system hangs. (Keep that in mind while testing). I've provided a mongo wire message encoded as a file that can be netcat'ed into the server. Then a supplemental query to the collection will cause the shell (and in my case, entire system, including mouse/video/etc) to hang. The test document that is inserted is just under 16Mb in size, with recursive documents {'': {'': ...}}. Basically large enough to cause any recursive bson parser to stack overflow. |
| Comments |
| Comment by Ramon Fernandez Marina [ 04/Sep/14 ] | ||||||||||||||||
|
I'm not able to reproduce this behavior on 2.4.4, 2.4.11, 2.6.4 or 2.7.5; what happens instead is that the shell asserts and prints a stack trace (see below), but the server (or my system) is not affected. I'm using Ubuntu 14.04 with tarballs from the downloads page.
| ||||||||||||||||
| Comment by Christian Hergert [ 28/Jun/13 ] | ||||||||||||||||
|
2.4.4 from RPMs in yum (official 10gen repository) | ||||||||||||||||
| Comment by Daniel Pasette (Inactive) [ 28/Jun/13 ] | ||||||||||||||||
|
possibly duplicate of |