-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.3.1
-
Component/s: None
-
None
-
Environment:Linux amd64
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]