安装测试数据时出错 (只在特定环境,ubuntu 18.04, mongodb 3.6.3)

文档问题 · ganbugandong · 于 2个月前 发布 · 156 次阅读

不太确定是什么原因,但只有这台装lamp的linux服务器上有这个问题,windows,mac上运行都没有问题

mongo 127.0.0.1:27017/fecshop --quiet mongo-fecshop_test-2018-11-06.js
2019-01-31T11:32:59.205+0000 F -        [thread1] Invalid access at address: 0
2019-01-31T11:32:59.223+0000 F -        [thread1] Got signal: 11 (Segmentation fault).

 0x55dfa6bc3b1a 0x55dfa6bc2dde 0x55dfa6bc342c 0x55dfa60fe376 0x7f9c37c8b890 0x55dfa65d3930 0x55dfa65beed6 0x55dfa65d8fdb 0x55dfa65d96ad 0x55dfa65da2f0 0x55dfa63d4710 0x55dfa63d4c62 0x55dfa63d500b 0x55dfa63d524a 0x55dfa65c01e5 0x55dfa65c9274 0x55dfa63f83e5 0x55dfa63f913d 0x55dfa65b7ffb 0x55dfa65abc9b 0x55dfa65b86ea 0x55dfa65abc8b 0x55dfa65b618a 0x55dfa65abd5b 0x55dfa65b609e 0x55dfa65abcbb 0x55dfa65ac38f 0x55dfa65ac52c 0x55dfa6387a5d 0x55dfa6387b65 0x55dfa6387c8a 0x55dfa6040ab6 0x55dfa606ec4f 0x55dfa606f05f 0x55dfa606acdc 0x7f9c3850b57f 0x7f9c37c806db 0x7f9c379a988f
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"55DFA5A5E000","o":"1165B1A","s":"_ZN5mongo15printStackTraceERSo"},{"b":"55DFA5A5E000","o":"1164DDE"},{"b":"55DFA5A5E000","o":"116542C"},{"b":"55DFA5A5E000","o":"6A0376"},{"b":"7F9C37C79000","o":"12890"},{"b":"55DFA5A5E000","o":"B75930","s":"_ZN2js14TenuringTracer8traverseI8JSObjectEEvPPT_"},{"b":"55DFA5A5E000","o":"B60ED6","s":"_ZN2js8frontend9ObjectBox5traceEP8JSTracer"},{"b":"55DFA5A5E000","o":"B7AFDB","s":"_ZN2JS12AutoGCRooter8traceAllEP8JSTracer"},{"b":"55DFA5A5E000","o":"B7B6AD","s":"_ZN2js2gc9GCRuntime11markRuntimeEP8JSTracerNS1_18TraceOrMarkRuntimeE"},{"b":"55DFA5A5E000","o":"B7C2F0","s":"_ZN2js7Nursery7collectEP9JSRuntimeN2JS8gcreason6ReasonEPN7mozilla6VectorIPNS_11ObjectGroupELm0ENS_17SystemAllocPolicyEEE"},{"b":"55DFA5A5E000","o":"976710","s":"_ZN2js2gc9GCRuntime7gcCycleEbRNS_11SliceBudgetEN2JS8gcreason6ReasonE"},{"b":"55DFA5A5E000","o":"976C62","s":"_ZN2js2gc9GCRuntime7collectEbNS_11SliceBudgetEN2JS8gcreason6ReasonE"},{"b":"55DFA5A5E000","o":"97700B","s":"_ZN2js2gc9GCRuntime7startGCE18JSGCInvocationKindN2JS8gcreason6ReasonEl"},{"b":"55DFA5A5E000","o":"97724A","s":"_ZN2js2gc9GCRuntime13gcIfRequestedEP9JSContext"},{"b":"55DFA5A5E000","o":"B621E5","s":"_ZN2js2gc9GCRuntime23gcIfNeededPerAllocationEP9JSContext"},{"b":"55DFA5A5E000","o":"B6B274","s":"_ZN2js8AllocateI8JSObjectLNS_7AllowGCE1EEEPS1_PNS_16ExclusiveContextENS_2gc9AllocKindEmNS6_11InitialHeapEPKNS_5ClassE"},{"b":"55DFA5A5E000","o":"99A3E5"},{"b":"55DFA5A5E000","o":"99B13D","s":"_ZN2js29NewObjectWithClassProtoCommonEPNS_16ExclusiveContextEPKNS_5ClassEN2JS6HandleIP8JSObjectEENS_2gc9AllocKindENS_13NewObjectKindE"},{"b":"55DFA5A5E000","o":"B59FFB","s":"_ZN2js8frontend15BytecodeEmitter10emitObjectEPNS0_9ParseNodeE"},{"b":"55DFA5A5E000","o":"B4DC9B","s":"_ZN2js8frontend15BytecodeEmitter8emitTreeEPNS0_9ParseNodeENS1_18EmitLineNumberNoteE"},{"b":"55DFA5A5E000","o":"B5A6EA","s":"_ZN2js8frontend15BytecodeEmitter13emitCallOrNewEPNS0_9ParseNodeE"},{"b":"55DFA5A5E000","o":"B4DC8B","s":"_ZN2js8frontend15BytecodeEmitter8emitTreeEPNS0_9ParseNodeENS1_18EmitLineNumberNoteE"},{"b":"55DFA5A5E000","o":"B5818A","s":"_ZN2js8frontend15BytecodeEmitter13emitStatementEPNS0_9ParseNodeE"},{"b":"55DFA5A5E000","o":"B4DD5B","s":"_ZN2js8frontend15BytecodeEmitter8emitTreeEPNS0_9ParseNodeENS1_18EmitLineNumberNoteE"},{"b":"55DFA5A5E000","o":"B5809E","s":"_ZN2js8frontend15BytecodeEmitter17emitStatementListEPNS0_9ParseNodeE"},{"b":"55DFA5A5E000","o":"B4DCBB","s":"_ZN2js8frontend15BytecodeEmitter8emitTreeEPNS0_9ParseNodeENS1_18EmitLineNumberNoteE"},{"b":"55DFA5A5E000","o":"B4E38F","s":"_ZN16BytecodeCompiler13compileScriptEN2JS6HandleIP8JSObjectEENS1_IP8JSScriptEE"},{"b":"55DFA5A5E000","o":"B4E52C","s":"_ZN2js8frontend13CompileScriptEPNS_16ExclusiveContextEPNS_9LifoAllocEN2JS6HandleIP8JSObjectEENS6_IPNS_11ScopeObjectEEENS6_IP8JSScriptEERKNS5_22ReadOnlyCompileOptionsERNS5_18SourceBufferHolderEP8JSStringPNS_21SourceCompressionTaskEPPNS_18ScriptSourceObjectE"},{"b":"55DFA5A5E000","o":"929A5D"},{"b":"55DFA5A5E000","o":"929B65"},{"b":"55DFA5A5E000","o":"929C8A"},{"b":"55DFA5A5E000","o":"5E2AB6","s":"_ZN5mongo5mozjs14MozJSImplScope4execENS_10StringDataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbbbi"},{"b":"55DFA5A5E000","o":"610C4F"},{"b":"55DFA5A5E000","o":"61105F","s":"_ZN5mongo5mozjs15MozJSProxyScope10implThreadEPv"},{"b":"55DFA5A5E000","o":"60CCDC","s":"_ZN4nspr6Thread13ThreadRoutineEPv"},{"b":"7F9C3844E000","o":"BD57F"},{"b":"7F9C37C79000","o":"76DB"},{"b":"7F9C37888000","o":"12188F","s":"clone"}],"processInfo":{ "mongodbVersion" : "3.6.3", "gitVersion" : "9586e557d54ef70f9ca4b43c26892cd55257e1a5", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "4.15.0-1031-aws", "version" : "#33-Ubuntu SMP Fri Dec 7 09:32:27 UTC 2018", "machine" : "x86_64" }, "somap" : [ { "b" : "55DFA5A5E000", "elfType" : 3, "buildId" : "FAB3FA5EB20BAADD717F1FE87F443D8E0D538C78" }, { "b" : "7FFDFFD8C000", "path" : "linux-vdso.so.1", "elfType" : 3, "buildId" : "E0D82228A0ED2569F98F7426BBBBF98D406722D4" }, { "b" : "7F9C3A695000", "path" : "/lib/x86_64-linux-gnu/libz.so.1", "elfType" : 3, "buildId" : "EF3E006DFE3132A41D4D4DC0E407D6EA658E11C4" }, { "b" : "7F9C3A48D000", "path" : "/usr/lib/x86_64-linux-gnu/libsnappy.so.1", "elfType" : 3, "buildId" : "55765D88D03CC928130D788F1C7E4BF8415AC7E3" }, { "b" : "7F9C3A213000", "path" : "/usr/lib/x86_64-linux-gnu/libyaml-cpp.so.0.5", "elfType" : 3, "buildId" : "BF65D47C8CD968E616F7D179F84A80CA71DB8249" }, { "b" : "7F9C3A00A000", "path" : "/usr/lib/x86_64-linux-gnu/libpcrecpp.so.0", "elfType" : 3, "buildId" : "E3F9F1D750287454F23C35B91CE5705DD4737199" }, { "b" : "7F9C39D89000", "path" : "/usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.65.1", "elfType" : 3, "buildId" : "9F69F11220BB1FAAB0B73A2B6F4B0E81D9B901CE" }, { "b" : "7F9C39B6F000", "path" : "/usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.65.1", "elfType" : 3, "buildId" : "32B8421A0643426D9FB008005F5A86688065008B" }, { "b" : "7F9C3996A000", "path" : "/usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1", "elfType" : 3, "buildId" : "4BA851D242F2DB710CB1817DE860CF97AE2F9714" }, { "b" : "7F9C39750000", "path" : "/usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.65.1", "elfType" : 3, "buildId" : "90F9593058F2CEF10E407811B2010A0C23D7FC1B" }, { "b" : "7F9C394E0000", "path" : "/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4", "elfType" : 3, "buildId" : "572D5C17FBDA6B678DF653411F676819DE18CA6B" }, { "b" : "7F9C392C5000", "path" : "/lib/x86_64-linux-gnu/libresolv.so.2", "elfType" : 3, "buildId" : "390E9CC4C215314B6D8ADE6D6E28F8518418039C" }, { "b" : "7F9C3905B000", "path" : "/usr/lib/x86_64-linux-gnu/libssl.so.1.1", "elfType" : 3, "buildId" : "9787FF1FFFE8D82268D89F6BFA3AF07B3E9D140F" }, { "b" : "7F9C38BE3000", "path" : "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1", "elfType" : 3, "buildId" : "A409BCD92DCDD3298E92C359876AC800FDD499AC" }, { "b" : "7F9C389DB000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "9826FBDF57ED7D6965131074CB3C08B1009C1CD8" }, { "b" : "7F9C387D7000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "25AD56E902E23B490A9CCDB08A9744D89CB95BCC" }, { "b" : "7F9C3844E000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "CBCD95969196C3B0B7C538E13E996F62EA17B9D2" }, { "b" : "7F9C380B0000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "A33761AB8FB485311B3C85BF4253099D7CABE653" }, { "b" : "7F9C37E98000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "92E0BE1929D28508CF9C6D5754C7EB48C12255B3" }, { "b" : "7F9C37C79000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "28C6AADE70B2D40D1F0F3D0A1A0CAD1AB816448F" }, { "b" : "7F9C37888000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "B417C0BA7CC5CF06D1D1BED6652CEDB9253C60D0" }, { "b" : "7F9C37616000", "path" : "/lib/x86_64-linux-gnu/libpcre.so.3", "elfType" : 3, "buildId" : "AEA86B8B6EA806891E94D8C10CED2C66D41899A4" }, { "b" : "7F9C37406000", "path" : "/lib/x86_64-linux-gnu/libbz2.so.1.0", "elfType" : 3, "buildId" : "949F8E0C73CD8AF3636687D487E69EE262A68D18" }, { "b" : "7F9C371EB000", "path" : "/usr/lib/x86_64-linux-gnu/libunwind.so.8", "elfType" : 3, "buildId" : "7995F03B59E1D6EB7968EEA5B8534910D4E8E8D6" }, { "b" : "7F9C3A8B2000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "64DF1B961228382FE18684249ED800AB1DCEAAD4" }, { "b" : "7F9C36FC5000", "path" : "/lib/x86_64-linux-gnu/liblzma.so.5", "elfType" : 3, "buildId" : "8FBCCA354D964860B9E6EB3736E9B7BC6177B417" } ] }}
 mongo(_ZN5mongo15printStackTraceERSo+0x3A) [0x55dfa6bc3b1a]
 mongo(+0x1164DDE) [0x55dfa6bc2dde]
 mongo(+0x116542C) [0x55dfa6bc342c]
 mongo(+0x6A0376) [0x55dfa60fe376]
 libpthread.so.0(+0x12890) [0x7f9c37c8b890]
 mongo(_ZN2js14TenuringTracer8traverseI8JSObjectEEvPPT_+0x0) [0x55dfa65d3930]
 mongo(_ZN2js8frontend9ObjectBox5traceEP8JSTracer+0x36) [0x55dfa65beed6]
 mongo(_ZN2JS12AutoGCRooter8traceAllEP8JSTracer+0xDB) [0x55dfa65d8fdb]
 mongo(_ZN2js2gc9GCRuntime11markRuntimeEP8JSTracerNS1_18TraceOrMarkRuntimeE+0xAD) [0x55dfa65d96ad]
 mongo(_ZN2js7Nursery7collectEP9JSRuntimeN2JS8gcreason6ReasonEPN7mozilla6VectorIPNS_11ObjectGroupELm0ENS_17SystemAllocPolicyEEE+0x290) [0x55dfa65da2f0]
 mongo(_ZN2js2gc9GCRuntime7gcCycleEbRNS_11SliceBudgetEN2JS8gcreason6ReasonE+0x90) [0x55dfa63d4710]
 mongo(_ZN2js2gc9GCRuntime7collectEbNS_11SliceBudgetEN2JS8gcreason6ReasonE+0x1D2) [0x55dfa63d4c62]
 mongo(_ZN2js2gc9GCRuntime7startGCE18JSGCInvocationKindN2JS8gcreason6ReasonEl+0x4B) [0x55dfa63d500b]
 mongo(_ZN2js2gc9GCRuntime13gcIfRequestedEP9JSContext+0x8A) [0x55dfa63d524a]
 mongo(_ZN2js2gc9GCRuntime23gcIfNeededPerAllocationEP9JSContext+0x145) [0x55dfa65c01e5]
 mongo(_ZN2js8AllocateI8JSObjectLNS_7AllowGCE1EEEPS1_PNS_16ExclusiveContextENS_2gc9AllocKindEmNS6_11InitialHeapEPKNS_5ClassE+0x54) [0x55dfa65c9274]
 mongo(+0x99A3E5) [0x55dfa63f83e5]
 mongo(_ZN2js29NewObjectWithClassProtoCommonEPNS_16ExclusiveContextEPKNS_5ClassEN2JS6HandleIP8JSObjectEENS_2gc9AllocKindENS_13NewObjectKindE+0x18D) [0x55dfa63f913d]
 mongo(_ZN2js8frontend15BytecodeEmitter10emitObjectEPNS0_9ParseNodeE+0xBB) [0x55dfa65b7ffb]
 mongo(_ZN2js8frontend15BytecodeEmitter8emitTreeEPNS0_9ParseNodeENS1_18EmitLineNumberNoteE+0x57B) [0x55dfa65abc9b]
 mongo(_ZN2js8frontend15BytecodeEmitter13emitCallOrNewEPNS0_9ParseNodeE+0x1EA) [0x55dfa65b86ea]
 mongo(_ZN2js8frontend15BytecodeEmitter8emitTreeEPNS0_9ParseNodeENS1_18EmitLineNumberNoteE+0x56B) [0x55dfa65abc8b]
 mongo(_ZN2js8frontend15BytecodeEmitter13emitStatementEPNS0_9ParseNodeE+0xCA) [0x55dfa65b618a]
 mongo(_ZN2js8frontend15BytecodeEmitter8emitTreeEPNS0_9ParseNodeENS1_18EmitLineNumberNoteE+0x63B) [0x55dfa65abd5b]
 mongo(_ZN2js8frontend15BytecodeEmitter17emitStatementListEPNS0_9ParseNodeE+0x2E) [0x55dfa65b609e]
 mongo(_ZN2js8frontend15BytecodeEmitter8emitTreeEPNS0_9ParseNodeENS1_18EmitLineNumberNoteE+0x59B) [0x55dfa65abcbb]
 mongo(_ZN16BytecodeCompiler13compileScriptEN2JS6HandleIP8JSObjectEENS1_IP8JSScriptEE+0x53F) [0x55dfa65ac38f]
 mongo(_ZN2js8frontend13CompileScriptEPNS_16ExclusiveContextEPNS_9LifoAllocEN2JS6HandleIP8JSObjectEENS6_IPNS_11ScopeObjectEEENS6_IP8JSScriptEERKNS5_22ReadOnlyCompileOptionsERNS5_18SourceBufferHolderEP8JSStringPNS_21SourceCompressionTaskEPPNS_18ScriptSourceObjectE+0x6C) [0x55dfa65ac52c]
 mongo(+0x929A5D) [0x55dfa6387a5d]
 mongo(+0x929B65) [0x55dfa6387b65]
 mongo(+0x929C8A) [0x55dfa6387c8a]
 mongo(_ZN5mongo5mozjs14MozJSImplScope4execENS_10StringDataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbbbi+0x116) [0x55dfa6040ab6]
 mongo(+0x610C4F) [0x55dfa606ec4f]
 mongo(_ZN5mongo5mozjs15MozJSProxyScope10implThreadEPv+0x14F) [0x55dfa606f05f]
 mongo(_ZN4nspr6Thread13ThreadRoutineEPv+0x1C) [0x55dfa606acdc]
 libstdc++.so.6(+0xBD57F) [0x7f9c3850b57f]
 libpthread.so.0(+0x76DB) [0x7f9c37c806db]
 libc.so.6(clone+0x3F) [0x7f9c379a988f]
-----  END BACKTRACE  -----
Segmentation fault (core dumped)
共收到 3 条回复
Fecshop#12个月前 0 个赞

mongodb什么版本?怎么和这个mongodb bug有点像?

https://jira.mongodb.org/browse/SERVER-9209

Thanks for reporting this bug Andrew Han. Looks like you've run into SERVER-27370, which has already been fixed and will be included in 3.4.2, which will be released in the coming weeks.

另外参考一下:https://dba.stackexchange.com/questions/226192/invalid-access-at-address-0-for-mongo-v4-0-5

ganbugandong#22个月前 0 个赞

升级到4.0.1后解决了,谢谢

Fecshop#32个月前 0 个赞

mongodb,我一直用3版本,没这个问题啊

不过解决了问题就好。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics