[SERVER-16230] 2.8.0-rc1 segfault Created: 19/Nov/14  Updated: 24/Jan/15  Resolved: 23/Jan/15

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

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File full.log    
Operating System: ALL
Participants:

 Description   

./2014-11-18/mongod --port 30000 --dbpath /data/db/PHP-1161-SCRAM-SHA1/30000 --noprealloc --smallfiles --oplogSize 40 --nohttpinterface --storageEngine wiredtiger --setParameter enableTestCommands=1

2014-11-18T17:40:28.654-0800 F -        [clientcursormon] Invalid access at address: 0
2014-11-18T17:40:28.675-0800 F -        [clientcursormon] Got signal: 11 (Segmentation fault).

 0x120624e 0x1205cb2 0x12060d6 0x7fd97492dc90 0x131df96 0x116838c 0x116894d 0x115d34b 0x115d3b9 0x11581e0 0x1158589 0xc0e496 0xd87c4c 0x991fb6 0x96683c 0x966a0f 0x994745 0x1182bbf 0x1256fd4 0x7fd9749260a5 0x7fd973cc684d
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"400000","o":"E0624E"},{"b":"400000","o":"E05CB2"},{"b":"400000","o":"E060D6"},{"b":"7FD97491E000","o":"FC90"},{"b":"400000","o":"F1DF96"},{"b":"400000","o":"D6838C"},{"b":"400000","o":"D6894D"},{"b":"400000","o":"D5D34B"},{"b":"400000","o":"D5D3B9"},{"b":"400000","o":"D581E0"},{"b":"400000","o":"D58589"},{"b":"400000","o":"80E496"},{"b":"400000","o":"987C4C"},{"b":"400000","o":"591FB6"},{"b":"400000","o":"56683C"},{"b":"400000","o":"566A0F"},{"b":"400000","o":"594745"},{"b":"400000","o":"D82BBF"},{"b":"400000","o":"E56FD4"},{"b":"7FD97491E000","o":"80A5"},{"b":"7FD973BCC000","o":"FA84D"}],"processInfo":{ "mongodbVersion" : "2.8.0-rc1-pre-", "gitVersion" : "cf132ed1034fb7db8280f1d6d72b0799c4152d5d modules: subscription", "uname" : { "sysname" : "Linux", "release" : "3.16.0-24-generic", "version" : "#32-Ubuntu SMP Tue Oct 28 13:07:32 UTC 2014", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "CACBB6986E5CE58B887D9877FF49AD2D08E02678" }, { "b" : "7FFF21108000", "elfType" : 3, "buildId" : "EB0A4C35ED885D990B43CF09FF3F0D74B639ED7C" }, { "b" : "7FD975BB8000", "path" : "/usr/lib/x86_64-linux-gnu/libsasl2.so.2", "elfType" : 3, "buildId" : "087FF353C3AF449E68D982CC726D25F190CFA16F" }, { "b" : "7FD975970000", "path" : "/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "F468A72C0DE69EF2621F4623A6BDFABF21723344" }, { "b" : "7FD97576C000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "5D8962AD3CCC39427BBBDDD89DC62D2CABC0BE04" }, { "b" : "7FD975502000", "path" : "/usr/lib/x86_64-linux-gnu/libnetsnmpagent.so.30", "elfType" : 3, "buildId" : "2592E4D30F4E48F824D9B28C70C417C913D23370" }, { "b" : "7FD975225000", "path" : "/usr/lib/x86_64-linux-gnu/libnetsnmp.so.30", "elfType" : 3, "buildId" : "15EDC916EE74D63897687E2821397153AA553F33" }, { "b" : "7FD974E42000", "path" : "/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", "elfType" : 3, "buildId" : "4F49A2345B4DF5719C5105711ECB31CD10E237AC" }, { "b" : "7FD974B3C000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "296D2DFCEED3FE4F8B1D6870AA98954C90CC26BB" }, { "b" : "7FD97491E000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "7C94BBF5B62FE88BE0AE448EFC3B4D338E6CC4DC" }, { "b" : "7FD9746BF000", "path" : "/lib/x86_64-linux-gnu/libssl.so.1.0.0", "elfType" : 3, "buildId" : "47C36EE05DE8C7FD0DCEB31A79609685259E48D3" }, { "b" : "7FD9744B7000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "7C07BDCA5E1269C60C6DF87638299C2E94542519" }, { "b" : "7FD9741A8000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "ADEF33B83967BBB41525AE439354F030694250C4" }, { "b" : "7FD973F91000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "7C6E98219378EBD1AA0D4CD671E8FF1589C04C4A" }, { "b" : "7FD973BCC000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "90B068141BE8B0F52EF8DC93E8327CDA87A632BC" }, { "b" : "7FD975DD3000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "2217CB766447FA1FE93973C52A2047B4B25D1158" }, { "b" : "7FD9738FD000", "path" : "/usr/lib/x86_64-linux-gnu/libkrb5.so.3", "elfType" : 3, "buildId" : "1595AA48194FBB1401068D80546B26B13FF36F48" }, { "b" : "7FD9736CD000", "path" : "/usr/lib/x86_64-linux-gnu/libk5crypto.so.3", "elfType" : 3, "buildId" : "EA84628F672D3C1F4C0091F478FD07036BE27958" }, { "b" : "7FD9734C9000", "path" : "/lib/x86_64-linux-gnu/libcom_err.so.2", "elfType" : 3, "buildId" : "6AB50B658180FFFE4ABF79DF79ECB3E44B990DDC" }, { "b" : "7FD9732BE000", "path" : "/usr/lib/x86_64-linux-gnu/libkrb5support.so.0", "elfType" : 3, "buildId" : "A87290DB596AD0902B0864522FB990B4BC685557" }, { "b" : "7FD9730B4000", "path" : "/lib/x86_64-linux-gnu/libwrap.so.0", "elfType" : 3, "buildId" : "54FCBC5B0F994A13A9B0EAD46F23E7DA7F7FE75B" }, { "b" : "7FD972D00000", "path" : "/usr/lib/x86_64-linux-gnu/libperl.so.5.20", "elfType" : 3, "buildId" : "235B9327BA4CFF99A5BA06C8ABDF5540C428FEC2" }, { "b" : "7FD972AFC000", "path" : "/lib/x86_64-linux-gnu/libkeyutils.so.1", "elfType" : 3, "buildId" : "BBF6C707F97D9DF43C35062706137A46DA0D0AC6" }, { "b" : "7FD9728E1000", "path" : "/lib/x86_64-linux-gnu/libresolv.so.2", "elfType" : 3, "buildId" : "80CBB8D0B0DECB521BE67A9D23B74DF27DFD9A38" }, { "b" : "7FD9726C7000", "path" : "/lib/x86_64-linux-gnu/libnsl.so.1", "elfType" : 3, "buildId" : "2F3914085803DDE91DF4E9F40E209ECDF2199A70" }, { "b" : "7FD97248E000", "path" : "/lib/x86_64-linux-gnu/libcrypt.so.1", "elfType" : 3, "buildId" : "F51930336C29000342E3F0CF6EAB4329CFD945A8" } ] }}
 mongod(_ZN5mongo15printStackTraceERSo+0x3E) [0x120624e]
 mongod(+0xE05CB2) [0x1205cb2]
 mongod(+0xE060D6) [0x12060d6]
 libpthread.so.0(+0xFC90) [0x7fd97492dc90]
 mongod(_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x16) [0x131df96]
 mongod(_ZN5boost6detail17sp_counted_impl_pIN5mongo10BSONHolderEE7disposeEv+0x2C) [0x116838c]
 mongod(_ZN5mongo10ObjTrackerINS_10BSONHolderEED1Ev+0x8D) [0x116894d]
 mongod(_ZN5mongo7V8ScopeD1Ev+0x1FB) [0x115d34b]
 mongod(_ZN5mongo7V8ScopeD0Ev+0x9) [0x115d3b9]
 mongod(_ZN5mongo11PooledScopeD1Ev+0xA80) [0x11581e0]
 mongod(_ZN5mongo11PooledScopeD0Ev+0x9) [0x1158589]
 mongod(_ZN5mongo20WhereMatchExpressionD0Ev+0x36) [0xc0e496]
 mongod(_ZN5mongo12PlanExecutorD1Ev+0x1DC) [0xd87c4c]
 mongod(_ZN5mongo12ClientCursorD1Ev+0x76) [0x991fb6]
 mongod(_ZN5mongo21CollectionCursorCache14timeoutCursorsEi+0x11C) [0x96683c]
 mongod(_ZN5mongo19GlobalCursorIdCache14timeoutCursorsEPNS_16OperationContextEi+0xFF) [0x966a0f]
 mongod(_ZN5mongo19ClientCursorMonitor3runEv+0xB5) [0x994745]
 mongod(_ZN5mongo13BackgroundJob7jobBodyEv+0x14F) [0x1182bbf]
 mongod(+0xE56FD4) [0x1256fd4]
 libpthread.so.0(+0x80A5) [0x7fd9749260a5]
 libc.so.6(clone+0x6D) [0x7fd973cc684d]
-----  END BACKTRACE  -----
/home/bjori/Sources/mongo/2014-11-18/mongod --port 30000 --dbpath     40       5.21s user 2.89s system 1% cpu 10:48.49 total

This has been happening for a while at random interval. I have no consistent way of reproducing it.



 Comments   
Comment by Mathias Stearn [ 19/Nov/14 ]

Yeah, g++4.9 and the v8 version we use be default don't get along. You should either use clang or g++4.8 (which we use on our official linux builds) when compiling v8.

Comment by Hannes Magnusson [ 19/Nov/14 ]

g++ (Ubuntu 4.9.1-16ubuntu6) 4.9.1

scons: Reading SConscript files ...
scons version: 2.3.1
python version: 2 7 8 'final' 0
adding module: subscription
Checking whether the C++ compiler works... (cached) yes
Checking whether the C compiler works... (cached) yes
Checking if C++ compiler "g++" is GCC... (cached) yes
Checking if C compiler "gcc" is GCC... (cached) yes
Checking if C compiler is GCC 4.8.1 or newer...(cached) yes
Checking if C++ compiler is GCC 4.8.1 or newer...(cached) yes
Checking if target architecture is 32-bit x86...(cached) no
Checking if C compiler supports -Wno-unused-local-typedefs... (cached) yes
Checking if C compiler supports -Wno-unused-function... (cached) yes
Checking if C compiler supports -Wno-unused-private-field... (cached) no
Checking if C compiler supports -Wno-deprecated-declarations... (cached) yes
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... (cached) no
Checking if C compiler supports -Wno-unused-const-variable... (cached) no
Checking if C compiler supports -Wno-unused-but-set-variable... (cached) yes
Checking if we are using libstdc++... (cached) yes
Checking for libstdc++ 4.6.0 or better... (cached) yes
Checking if C++ compiler supports -std=c++11... (cached) yes
Checking if __cplusplus >= 201103L to auto-enable C++11... (cached) yes
Checking if C compiler supports -std=c99... (cached) yes
Checking if we are on a POSIX system... (cached) yes
Checking if the POSIX monotonic clock is supported... (cached) yes
Checking if C compiler supports -fno-builtin-memcmp... (cached) yes
Checking for __thread... (cached) yes
Checking for C++11 <atomic> support... (cached) yes
Checking for C++11 is_trivially_copyable support... (cached) no
Checking for C library rt... (cached) yes
Checking for C library dl... (cached) yes
Checking for C++ header file execinfo.h... (cached) yes
Checking whether backtrace is declared... (cached) yes
Checking whether backtrace_symbols is declared... (cached) yes
Checking whether backtrace_symbols_fd is declared... (cached) yes
Checking for C library pcap... (cached) no
Checking for C library wpcap... (cached) no
configuring module: subscription
Checking for C++ header file net-snmp/net-snmp-config.h... (cached) yes
Checking for sasl_version_info(0, 0, 0, 0, 0, 0) in C library sasl2... (cached) yes
Checking for C library gssapi_krb5... (cached) yes
Checking if __malloc_hook is declared volatile... (cached) yes
scons: done reading SConscript files.

Comment by Mathias Stearn [ 19/Nov/14 ]

What compiler did you use?

Comment by Hannes Magnusson [ 19/Nov/14 ]

Full log from the mongod attached.

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