[SERVER-1661] reproduceable crash of mongo-shell Created: 23/Aug/10  Updated: 12/Jul/16  Resolved: 23/Aug/10

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.6.1
Fix Version/s: 1.6.2, 1.7.0

Type: Bug Priority: Major - P3
Reporter: Frank Steinborn Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

git version: nogitversion, sys info: Linux rijkaard.dev.sipgate.net 2.6.26-2-amd64 #1 SMP Wed May 12 18:03:14 UTC 2010 i686 BOOST_LIB_VERSION=1_34_1


Operating System: ALL
Participants:

 Description   

When running monospaced}}db.getMongo().find(){{monospaced (which of course is a syntax error - but it triggers the bug), followed by monospaced}}db.things.find(){{monospaced, mongo crashes reliably:

monospaced

MongoDB shell version: 1.6.1
connecting to: test
> db.getMongo().find()
error:mongo_find neesd 6 args
> db.things.find()
Mon Aug 23 17:31:39 mongo got signal 11 (Segmentation fault), stack trace:

Mon Aug 23 17:31:39 0x449aea 0x7f7d61c90f60 0x7f7d62d5267c 0x7f7d62d5aabd 0x7f7d62d09300 0x7f7d62d09383 0x7f7d62d0b396 0x4b5cbe 0x44c3ac 0x44d406 0x7f7d61c7d1a6 0x448309
mongo(_Z12quitAbruptlyi+0x40a) [0x449aea]
/lib/libc.so.6 [0x7f7d61c90f60]
/usr/lib/libmozjs.so.1d [0x7f7d62d5267c]
/usr/lib/libmozjs.so.1d [0x7f7d62d5aabd]
/usr/lib/libmozjs.so.1d(JS_EvaluateUCScriptForPrincipals+0x37) [0x7f7d62d09300]
/usr/lib/libmozjs.so.1d(JS_EvaluateUCScript+0x22) [0x7f7d62d09383]
/usr/lib/libmozjs.so.1d(JS_EvaluateScript+0x59) [0x7f7d62d0b396]
mongo(_ZN5mongo7SMScope4execERKSsS2_bbbi+0x15e) [0x4b5cbe]
mongo(_Z5_mainiPPc+0x228c) [0x44c3ac]
mongo(main+0x26) [0x44d406]
/lib/libc.so.6(__libc_start_main+0xe6) [0x7f7d61c7d1a6]
mongo(__gxx_personality_v0+0x2b9) [0x448309]

monospaced



 Comments   
Comment by auto [ 23/Aug/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: use smuassert instead of uassert SERVER-1661
http://github.com/mongodb/mongo/commit/0e78196fd59c067933b36aa4f0021b73158ef545

Comment by auto [ 23/Aug/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: use smuassert instead of uassert SERVER-1661
http://github.com/mongodb/mongo/commit/32a30aa221e3ddf8500b0c5c033b51a5c8edd787

Generated at Thu Feb 08 02:57:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.