[SERVER-515] Reproducible crash Created: 02/Jan/10  Updated: 12/Jul/16  Resolved: 14/Jan/10

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

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

Linux amd64


Participants:

 Description   

Here's a reproducible way to crash the server on Ubuntu 9.10 / amd64.
The server is the stock mongodb-linux-x86_64-2010-01-02 binary distribution.

> db.createCollection("jediqueue",

{capped: true, size: 5}

);

{ "ok" : 1 }

> db.jediqueue.save(

{a:4}

);
Assertion failure: !oldfp->dormantNext, at jsinterp.c:1620
Sun Jan 3 00:00:32 mongo got signal 6 (Aborted), stack trace:
Sun Jan 3 00:00:32 0x46b4b2 0x7f44cb61f530 0x7f44cb61f4b5 0x7f44cb622f50 0x5e6fe5 0x568c59 0x525eef 0x525e38 0x525d21 0x4d1716 0x46d0c2 0x46e5c6 0x7f44cb60aabd 0x469f89
./mongo(_Z12quitAbruptlyi+0x3c2) [0x46b4b2]
/lib/libc.so.6 [0x7f44cb61f530]
/lib/libc.so.6(gsignal+0x35) [0x7f44cb61f4b5]
/lib/libc.so.6(abort+0x180) [0x7f44cb622f50]
./mongo [0x5e6fe5]
./mongo(js_Execute+0x37b) [0x568c59]
./mongo(JS_EvaluateUCScriptForPrincipals+0xb5) [0x525eef]
./mongo(JS_EvaluateUCScript+0x5a) [0x525e38]
./mongo(JS_EvaluateScript+0x80) [0x525d21]
./mongo(_ZN5mongo7SMScope4execERKSsS2_bbbi+0xf6) [0x4d1716]
./mongo(_Z5_mainiPPc+0x16b2) [0x46d0c2]
./mongo(main+0x6) [0x46e5c6]
/lib/libc.so.6(__libc_start_main+0xfd) [0x7f44cb60aabd]
./mongo(_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl+0x71) [0x469f89]
mongo: /opt/extra/include/boost/thread/pthread/recursive_mutex.hpp:62: boost::recursive_mutex::~recursive_mutex(): Assertion `!pthread_mutex_destroy(&m)' failed.
Sun Jan 3 00:00:32 mongo got signal 6 (Aborted), stack trace:
Sun Jan 3 00:00:32 0x46b4b2 0x7f44cb61f530 0x7f44cb61f4b5 0x7f44cb622f50 0x7f44cb618481 0x4be608 0x7f44cb624c12 0x46b5f5 0x7f44cb61f530 0x7f44cb61f4b5 0x7f44cb622f50 0x5e6fe5 0x568c59 0x525eef 0x525e38 0x525d21 0x4d1716 0x46d0c2 0x46e5c6 0x7f44cb60aabd
./mongo(_Z12quitAbruptlyi+0x3c2) [0x46b4b2]
/lib/libc.so.6 [0x7f44cb61f530]
/lib/libc.so.6(gsignal+0x35) [0x7f44cb61f4b5]
/lib/libc.so.6(abort+0x180) [0x7f44cb622f50]
/lib/libc.so.6(__assert_fail+0xf1) [0x7f44cb618481]
./mongo [0x4be608]
/lib/libc.so.6(exit+0xe2) [0x7f44cb624c12]
./mongo(_Z12quitAbruptlyi+0x505) [0x46b5f5]
/lib/libc.so.6 [0x7f44cb61f530]
/lib/libc.so.6(gsignal+0x35) [0x7f44cb61f4b5]
/lib/libc.so.6(abort+0x180) [0x7f44cb622f50]
./mongo [0x5e6fe5]
./mongo(js_Execute+0x37b) [0x568c59]
./mongo(JS_EvaluateUCScriptForPrincipals+0xb5) [0x525eef]
./mongo(JS_EvaluateUCScript+0x5a) [0x525e38]
./mongo(JS_EvaluateScript+0x80) [0x525d21]
./mongo(_ZN5mongo7SMScope4execERKSsS2_bbbi+0xf6) [0x4d1716]
./mongo(_Z5_mainiPPc+0x16b2) [0x46d0c2]
./mongo(main+0x6) [0x46e5c6]
/lib/libc.so.6(__libc_start_main+0xfd) [0x7f44cb60aabd]



 Comments   
Comment by auto [ 14/Jan/10 ]

Author:

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

Message: fix spidermonkey error handling SERVER-515
http://github.com/mongodb/mongo/commit/f8be8a7529bdfdade5868cf358fc21f498f3e4d7

Comment by Eliot Horowitz (Inactive) [ 02/Jan/10 ]

Just a reminder - that's a nightly of the unstable branch.
Still a bug we'll fix obviously.

Comment by Frank DENIS [ 02/Jan/10 ]

In order to trigger that, one needs to raise an exception prior to saving:

> db.jediqueue.save(4)
Sun Jan 3 00:00:26 User Exception 10247:2nd param to insert has to be an object
error:2nd param to insert has to be an object
> db.jediqueue.save(

{a:4}

);
Assertion failure: !oldfp->dormantNext, at jsinterp.c:1620
...

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