-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
OS X
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Loading our most recent database dump causes mongod to segfault. Any help debugging this so we can load our production data locally would be great.
% mongod --version
db version v1.6.5, pdfile version 4.5
Tue Dec 14 13:57:59 git version: 0eb017e9b2828155a67c5612183337b89e12e291
Crash log:
Tue Dec 14 13:28:49 [conn187] building new index on
{ crowd_member_ids: 1 } for crowdtap_production.brands
Tue Dec 14 13:28:49 [conn187] couldn't open /usr/local/var/mongodb/_tmp/esort.1292351329.1435148882//file.232 errno:24 Too many open files
Tue Dec 14 13:28:49 [conn187] Assertion: 10308:mmap failed
0x1000835aa 0x1002b0f51 0x1002b1140 0x1002821e1 0x100282ee2 0x100285116 0x1002872ed 0x100260de9 0x100265c0f 0x1003988f2 0x1003aca34 0x7fff876f1456 0x7fff876f1309
0 mongod 0x00000001000835aa _ZN5mongo11msgassertedEiPKc + 458
1 mongod 0x00000001002b0f51 _ZN5mongo21BSONObjExternalSorter12FileIteratorC2ESs + 241
2 mongod 0x00000001002b1140 ZN5mongo21BSONObjExternalSorter8IteratorC2EPS0 + 352
3 mongod 0x00000001002821e1 _ZN5mongo14fastBuildIndexEPKcPNS_16NamespaceDetailsERNS_12IndexDetailsEi + 2721
4 mongod 0x0000000100282ee2 _ZN5mongo12buildAnIndexESsPNS_16NamespaceDetailsERNS_12IndexDetailsEib + 818
5 mongod 0x0000000100285116 _ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb + 1862
6 mongod 0x00000001002872ed _ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb + 77
7 mongod 0x0000000100260de9 _ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE + 697
8 mongod 0x0000000100265c0f _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5311
9 mongod 0x00000001003988f2 _ZN5mongo10connThreadEPNS_13MessagingPortE + 530
10 mongod 0x00000001003aca34 thread_proxy + 132
11 libSystem.B.dylib 0x00007fff876f1456 _pthread_start + 331
12 libSystem.B.dylib 0x00007fff876f1309 thread_start + 13
Tue Dec 14 13:28:49 terminate() called, printing stack:
0x100395aa2 0x7fff802d1ae1 0x7fff802d0e9c 0x7fff802d19fc 0x7fff8771d061 0x7fff8772698b 0x1002b1660 0x1002827a7 0x100282ee2 0x100285116 0x1002872ed 0x100260de9 0x1002
65c0f 0x1003988f2 0x1003aca34 0x7fff876f1456 0x7fff876f1309
0 mongod 0x0000000100395aa2 _ZN5mongo11myterminateEv + 98
1 libstdc++.6.dylib 0x00007fff802d1ae1 ZN10cxxabiv111_terminateEPFvvE + 11
2 libstdc++.6.dylib 0x00007fff802d0e9c __cxa_call_terminate + 46
3 libstdc++.6.dylib 0x00007fff802d19fc __gxx_personality_v0 + 1011
4 libSystem.B.dylib 0x00007fff8771d061 unwind_phase2 + 145
5 libSystem.B.dylib 0x00007fff8772698b _Unwind_Resume + 91
6 mongod 0x00000001002b1660 _ZN5mongo21BSONObjExternalSorterD2Ev + 480
7 mongod 0x00000001002827a7 _ZN5mongo14fastBuildIndexEPKcPNS_16NamespaceDetailsERNS_12IndexDetailsEi + 4199
8 mongod 0x0000000100282ee2 _ZN5mongo12buildAnIndexESsPNS_16NamespaceDetailsERNS_12IndexDetailsEib + 818
9 mongod 0x0000000100285116 _ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb + 1862
10 mongod 0x00000001002872ed _ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb + 77
11 mongod 0x0000000100260de9 _ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE + 697
12 mongod 0x0000000100265c0f _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5311
13 mongod 0x00000001003988f2 _ZN5mongo10connThreadEPNS_13MessagingPortE + 530
14 mongod 0x00000001003aca34 thread_proxy + 132
15 libSystem.B.dylib 0x00007fff876f1456 _pthread_start + 331
16 libSystem.B.dylib 0x00007fff876f1309 thread_start + 13
Tue Dec 14 13:28:49 Got signal: 6 (Abort trap).
Tue Dec 14 13:28:49 Backtrace:
0x10039c67c 0x7fff8771835a 0xe 0x1003972ac 0x10039de15 0x10039e264 0x1003a41f4 0x100001454
0 mongod 0x000000010039c67c _ZN5mongo10abruptQuitEi + 332
1 libSystem.B.dylib 0x00007fff8771835a _sigtramp + 26
2 ??? 0x000000000000000e 0x0 + 14
3 mongod 0x00000001003972ac _ZN5mongo6listenEi + 204
4 mongod 0x000000010039de15 _ZN5mongo14_initAndListenEiPKc + 1893
5 mongod 0x000000010039e264 _ZN5mongo13initAndListenEiPKc + 36
6 mongod 0x00000001003a41f4 main + 22420
7 mongod 0x0000000100001454 start + 52
Tue Dec 14 13:28:49 dbexit:
Tue Dec 14 13:28:49 [initandlisten] shutdown: going to close listening sockets...
Tue Dec 14 13:28:49 [initandlisten] closing listening socket: 5
Tue Dec 14 13:28:49 [initandlisten] closing listening socket: 6
Tue Dec 14 13:28:49 [initandlisten] closing listening socket: 7
Tue Dec 14 13:28:49 [initandlisten] closing listening socket: 8
Tue Dec 14 13:28:49 [initandlisten] shutdown: going to flush oplog...
Tue Dec 14 13:28:49 [initandlisten] shutdown: going to close sockets...
Tue Dec 14 13:28:49 [initandlisten] shutdown: waiting for fs preallocator...
Tue Dec 14 13:28:49 [initandlisten] shutdown: closing all files...
Tue Dec 14 13:28:49 [conn157] end connection 127.0.0.1:51435
zsh: abort mongod run --config /usr/local/Cellar/mongodb/1.6.5-x86_64/mongod.conf