[SERVER-7616] Assertion error in mongo shell Created: 11/Nov/12 Updated: 15/Feb/13 Resolved: 12/Nov/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Zac Witte | Assignee: | Tad Marshall |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
ubuntu 11.10 mongodb 2.2.0 |
||
| Issue Links: |
|
||||||||||||||||
| Operating System: | Linux | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
This segfault happened when hitting ctrl+c while a stats() was waiting for IO. More detailed version: I recently dropped a large sharded collection then implicitly recreated it by inserting a few documents and then called stats() in the mongo shell. The stats() call was taking quite a while and reading a lot from disk - way more than it should for a collection with a few documents, so I cancelled and planned to restart mongos and the shell in case it was confused about the larger collection that there previously.
|
| Comments |
| Comment by Zac Witte [ 12/Nov/12 ] |
|
You're right - not a segfault, just the assertion error with stack trace. I think to get back to bash I hit Ctrl + c a second time. |
| Comment by Tad Marshall [ 11/Nov/12 ] |
|
Hi Zac, Thank you for the bug report. Was there actually a segfault, or are you just seeing a pair of ugly stack traces followed by an unexpected exit? The log fragment you posted does not show a segfault. I think that this is another manifestation of poor handling of ctrl-C in the shell, as described in In the first stack trace, you can see that the code has called 'quitNicely' (in line 11), which is probably poor behavior in itself, aside from the ugly stack trace. If you found yourself back at the bash prompt after hitting ctrl-C, it is probably a result of the code's decision to exit. I'll close this as a duplicate of Tad |