[SERVER-4752] Segfault in mongo on update operation Created: 24/Jan/12  Updated: 30/Mar/12  Resolved: 15/Mar/12

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: 2.0.2
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Nicklas Westerlund Assignee: Antoine Girbal
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Darwin <removed> 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64


Operating System: OS X
Participants:

 Description   

Got a signal 11 when doing an update:

> db.scores.update({$and:[{score:{$gt:80}}, {score:{$lt:90}}]}, {$set:

{'grade':'B'}

, false, true)
...
...
Tue Jan 24 10:12:16 mongo got signal 11 (Segmentation fault: 11), stack trace:

Tue Jan 24 10:12:16 0x10000220c 0x7fff932e0cfa 0x7fff5fbfe508 0x10010b045 0x1001113b0 0x100106a12 0x10000911b 0x10000a9aa 0x100001434
0 mongo 0x000000010000220c _Z12quitAbruptlyi + 316
1 libsystem_c.dylib 0x00007fff932e0cfa _sigtramp + 26
2 ??? 0x00007fff5fbfe508 0x0 + 140734799799560
3 mongo 0x000000010010b045 CompileTokenStream + 325
4 mongo 0x00000001001113b0 JS_EvaluateScript + 160
5 mongo 0x0000000100106a12 _ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi + 482
6 mongo 0x000000010000911b _Z5_mainiPPc + 7675
7 mongo 0x000000010000a9aa main + 42
8 mongo 0x0000000100001434 start + 52



 Comments   
Comment by Antoine Girbal [ 15/Mar/12 ]

this is a segv after inputing a line with missing brackets.
Tried several times but could not reproduce.
May be related to what was typed into the shell prior to this line, or could have been with older version of mongo shell.

Comment by Antoine Girbal [ 08/Feb/12 ]

are you able to reproduce this issue every time?
I just tried on the same osx version with mongo 2.0.2 and it didnt crash.
Can you make sure that the mongo client is also 2.0.2.

Generated at Thu Feb 08 03:06:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.