-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.5.12
-
Component/s: None
-
None
-
ALL
Granted I had a bug in my app, but I don't think the mongod should have aborted.
It should have been sufficient to just discard that socket.
2017-08-30T14:00:38.268-0700 I NETWORK [listener] connection accepted from 127.0.0.1:49104 #1 (1 connection now open) 2017-08-30T14:00:38.268-0700 I NETWORK [conn1] received client metadata from 127.0.0.1:49104 conn: { driver: { name: "mongoc", version: "1.9.0-dev" }, os: { type: "Linux", name: "Ubuntu", version: "17.04", architecture: "x86_64" }, platform: "cfg=0x23000 posix=200809 stdc=201112 CC=GCC 6.3.0 20170406 CFLAGS="" LDFLAGS=""" } 2017-08-30T14:00:38.269-0700 I NETWORK [conn1] recv(): message msgLen 173856062 is invalid. Min 16 Max: 48000000 2017-08-30T14:00:38.269-0700 F - [conn1] Invariant failure !_inMessage.empty() src/mongo/transport/service_state_machine.cpp 297 2017-08-30T14:00:38.269-0700 F - [conn1] ***aborting after invariant() failure 2017-08-30T14:00:38.278-0700 F - [conn1] Got signal: 6 (Aborted). 0x55a2b256539a 0x55a2b25645f9 0x55a2b2564ac6 0x7f29999c0670 0x7f299961d77f 0x7f299961f37a 0x55a2b0d6afc6 0x55a2b1007ef8 0x55a2b10054e8 0x55a2b1006de5 0x55a2b1002739 0x55a2b2426d34 0x7f29999b66da 0x7f29996f0d7f ----- BEGIN BACKTRACE ----- {"backtrace":[{"b":"55A2B0562000","o":"200339A","s":"_ZN5mongo15printStackTraceERSo"},{"b":"55A2B0562000","o":"20025F9"},{"b":"55A2B0562000","o":"2002AC6"},{"b":"7F29999AF000","o":"11670"},{"b":"7F29995E8000","o":"3577F","s":"gsignal"},{"b":"7F29995E8000","o":"3737A","s":"abort"},{"b":"55A2B0562000","o":"808FC6","s":"_ZN5mongo17invariantOKFailedEPKcRKNS_6StatusES1_j"},{"b":"55A2B0562000","o":"AA5EF8","s":"_ZN5mongo19ServiceStateMachine15_processMessageERNS0_11ThreadGuardE"},{"b":"55A2B0562000","o":"AA34E8","s":"_ZN5mongo19ServiceStateMachine15_runNextInGuardERNS0_11ThreadGuardE"},{"b":"55A2B0562000","o":"AA4DE5","s":"_ZN5mongo19ServiceStateMachine7runNextEv"},{"b":"55A2B0562000","o":"AA0739"},{"b":"55A2B0562000","o":"1EC4D34"},{"b":"7F29999AF000","o":"76DA"},{"b":"7F29995E8000","o":"108D7F","s":"clone"}],"processInfo":{ "mongodbVersion" : "3.5.7-1124-gf63eb3960d", "gitVersion" : "f63eb3960daaf5f3b788c2d137e99e23a73a8cda", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "4.10.0-30-generic", "version" : "#34-Ubuntu SMP Mon Jul 31 19:38:17 UTC 2017", "machine" : "x86_64" }, "somap" : [ { "b" : "55A2B0562000", "elfType" : 3, "buildId" : "16BAE5955EEF0BB9D9B86798F880B154F8D4A010" }, { "b" : "7FFE69BFB000", "elfType" : 3, "buildId" : "5399982727F6E4926D4A59B6CE3F2A6154BCFD19" }, { "b" : "7F299ACC5000", "path" : "/lib/x86_64-linux-gnu/libssl.so.1.0.0", "elfType" : 3, "buildId" : "006B55E257F723BDC1645B6B90440285E2D1806C" }, { "b" : "7F299A881000", "path" : "/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", "elfType" : 3, "buildId" : "7D11ABAC04E3DCCB1CC22B7807BF86CA60E844E8" }, { "b" : "7F299A679000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "1376C73B0676E0E419F6139BFE928D3BD2123833" }, { "b" : "7F299A475000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "1E9765116F55F139816096F23A79A9A024259899" }, { "b" : "7F299A0ED000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "3B8ECBF1903EFAECB11BC98A567F10BEDBCA1DDA" }, { "b" : "7F2999DE4000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "FEC036FA337BC098B99B0DB8CAF94FFBAE19ACC7" }, { "b" : "7F2999BCD000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "BD7D7479293DD928CA0A4769701EF66A4B0D0D29" }, { "b" : "7F29999AF000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "D2D91E222A7BAE3822622410509FA0E967E8360F" }, { "b" : "7F29995E8000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "AAD7DBE330F23EA00CA63DAF793B766B51ACEB5D" }, { "b" : "7F299AF2E000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "B86226947B21C69615737EB029F0077C1376BD9E" } ] }} mongod(_ZN5mongo15printStackTraceERSo+0x3A) [0x55a2b256539a] mongod(+0x20025F9) [0x55a2b25645f9] mongod(+0x2002AC6) [0x55a2b2564ac6] libpthread.so.0(+0x11670) [0x7f29999c0670] libc.so.6(gsignal+0x9F) [0x7f299961d77f] libc.so.6(abort+0x16A) [0x7f299961f37a] mongod(_ZN5mongo17invariantOKFailedEPKcRKNS_6StatusES1_j+0x0) [0x55a2b0d6afc6] mongod(_ZN5mongo19ServiceStateMachine15_processMessageERNS0_11ThreadGuardE+0x8F8) [0x55a2b1007ef8] mongod(_ZN5mongo19ServiceStateMachine15_runNextInGuardERNS0_11ThreadGuardE+0x178) [0x55a2b10054e8] mongod(_ZN5mongo19ServiceStateMachine7runNextEv+0x205) [0x55a2b1006de5] mongod(+0xAA0739) [0x55a2b1002739] mongod(+0x1EC4D34) [0x55a2b2426d34] libpthread.so.0(+0x76DA) [0x7f29999b66da] libc.so.6(clone+0x5F) [0x7f29996f0d7f] ----- END BACKTRACE ----- [1] 27891 abort (core dumped) ~/Sources/mongo/mongod
- is related to
-
SERVER-30473 Denial of service from wild
- Closed