This bug affects 3.0.x and master. Does not cause a crash with non-debug builds.
Backtrace:
2015-07-31T17:48:47.092-0400 I - [conn2] Invariant failure !_ops.empty() src/mongo/db/ops/modifier_bit.cpp 131 2015-07-31T17:48:47.101-0400 I CONTROL [conn2] 0x119e792 0x114ce44 0x113870e 0xc1ba81 0xc3961c 0xc3221f 0xc32a9c 0xaaff94 0xab20b2 0xab24c7 0xab57ba 0xad5fca 0xad6df5 0xa24a5e 0xbc8b5d 0x8c418d 0x1159745 0x7f083f026182 0x7f083ed5347d ----- BEGIN BACKTRACE ----- {"backtrace":[{"b":"400000","o":"D9E792"},{"b":"400000","o":"D4CE44"},{"b":"400000","o":"D3870E"},{"b":"400000","o":"81BA81"},{"b":"400000","o":"83961C"},{"b":"400000","o":"83221F"},{"b":"400000","o":"832A9C"},{"b":"400000","o":"6AFF94"},{"b":"400000","o":"6B20B2"},{"b":"400000","o":"6B24C7"},{"b":"400000","o":"6B57BA"},{"b":"400000","o":"6D5FCA"},{"b":"400000","o":"6D6DF5"},{"b":"400000","o":"624A5E"},{"b":"400000","o":"7C8B5D"},{"b":"400000","o":"4C418D"},{"b":"400000","o":"D59745"},{"b":"7F083F01E000","o":"8182"},{"b":"7F083EC59000","o":"FA47D"}],"processInfo":{ "mongodbVersion" : "3.1.7-pre-", "gitVersion" : "1264122b4fd9d05a9d38ec87e066f5f614fb2bc3", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "3.13.0-37-generic", "version" : "#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000" }, { "b" : "7FFF130C4000", "elfType" : 3 }, { "b" : "7F083FC60000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3 }, { "b" : "7F083FA5C000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3 }, { "b" : "7F083F758000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3 }, { "b" : "7F083F452000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3 }, { "b" : "7F083F23C000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3 }, { "b" : "7F083F01E000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3 }, { "b" : "7F083EC59000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3 }, { "b" : "7F083FE68000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3 } ] }} mongod(_ZN5mongo15printStackTraceERSo+0x32) [0x119e792] mongod(_ZN5mongo10logContextEPKc+0x134) [0x114ce44] mongod(_ZN5mongo15invariantFailedEPKcS1_j+0x9E) [0x113870e] mongod(_ZN5mongo11ModifierBit4initERKNS_11BSONElementERKNS_17ModifierInterface7OptionsEPb+0xF21) [0xc1ba81] mongod(_ZN5mongo12UpdateDriver5parseERKNS_7BSONObjEb+0xB4C) [0xc3961c] mongod(_ZN5mongo12ParsedUpdate11parseUpdateEv+0x6F) [0xc3221f] mongod(_ZN5mongo12ParsedUpdate12parseRequestEv+0x5C) [0xc32a9c] mongod(_ZN5mongo18WriteBatchExecutor10execUpdateERKNS_12BatchItemRefEPNS_7BSONObjEPPNS_16WriteErrorDetailE+0x3F4) [0xaaff94] mongod(_ZN5mongo18WriteBatchExecutor11bulkExecuteERKNS_21BatchedCommandRequestEPSt6vectorIPNS_19BatchedUpsertDetailESaIS6_EEPS4_IPNS_16WriteErrorDetailESaISB_EE+0x282) [0xab20b2] mongod(_ZN5mongo18WriteBatchExecutor12executeBatchERKNS_21BatchedCommandRequestEPNS_22BatchedCommandResponseE+0x1A7) [0xab24c7] mongod(_ZN5mongo8WriteCmd3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderE+0x25A) [0xab57ba] mongod(_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE+0x4BA) [0xad5fca] mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE+0x345) [0xad6df5] mongod(_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE+0x1BE) [0xa24a5e] mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xCCD) [0xbc8b5d] mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE+0xCD) [0x8c418d] mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x265) [0x1159745] libpthread.so.0(+0x8182) [0x7f083f026182] libc.so.6(clone+0x6D) [0x7f083ed5347d] ----- END BACKTRACE -----
- links to