Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26911

Invariant failure txn->writesAreReplicated(); Got signal: 6 (Aborted).

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.4.0-rc4
    • Affects Version/s: 3.2.10, 3.3.15
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • Query 2016-11-21

      Ran a fuzzer test and got an invariant failure.

      [MongoDFixture:job0] 2016-11-04T13:30:30.238-0400 I -        [js] Top-level statement 1156 completed in 1 ms
      [MongoDFixture:job0] 2016-11-04T13:30:30.238-0400 I -        [js] Invariant failure txn->writesAreReplicated() src/mongo/db/commands/find_and_modify.cpp 347
      [MongoDFixture:job0] 2016-11-04T13:30:30.238-0400 I -        [js]
      [MongoDFixture:job0] 
      [MongoDFixture:job0] ***aborting after invariant() failure
      [MongoDFixture:job0] 
      [MongoDFixture:job0] 
      [MongoDFixture:job0] 2016-11-04T13:30:30.256-0400 F -        [js] Got signal: 6 (Aborted).
      [MongoDFixture:job0] 
      [MongoDFixture:job0]  0x55bddccdd3d1 0x55bddccdc189 0x55bddccdc66d 0x7fae231033d0 0x7fae22d5e418 0x7fae22d6001a 0x55bddc099494 0x55bddc2e5648 0x55bddc2ccb43 0x55bddc2cd97c 0x55bddc87dc9d 0x55bddc4c4a02 0x55bddc4c68f6 0x55bddc39badc 0x55bddc16b6e9 0x55bddc166b98 0x55bddcc32bea 0x55bddcc3ab5f 0x55bddd3fed6b 0x55bddd2e87a1 0x55bddd3fed6b 0x55bddd3ff740 0x55bddd0b05c3 0x7fae241d8280
      [MongoDFixture:job0] ----- BEGIN BACKTRACE -----
      [MongoDFixture:job0] {"backtrace":[{"b":"55BDDB932000","o":"13AB3D1","s":"_ZN5mongo15printStackTraceERSo"},{"b":"55BDDB932000","o":"13AA189"},{"b":"55BDDB932000","o":"13AA66D"},{"b":"7FAE230F2000","o":"113D0"},{"b":"7FAE22D29000","o":"35418","s":"gsignal"},{"b":"7FAE22D29000","o":"3701A","s":"abort"},{"b":"55BDDB932000","o":"767494","s":"_ZN5mongo17invariantOKFailedEPKcRKNS_6StatusES1_j"},{"b":"55BDDB932000","o":"9B3648","s":"_ZN5mongo16CmdFindAndModify3runEPNS_16OperationContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_7BSONObjEiRS8_RNS_14BSONObjBuilderE"},{"b":"55BDDB932000","o":"99AB43","s":"_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE"},{"b":"55BDDB932000","o":"99B97C","s":"_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE"},{"b":"55BDDB932000","o":"F4BC9D","s":"_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE"},{"b":"55BDDB932000","o":"B92A02"},{"b":"55BDDB932000","o":"B948F6","s":"_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE"},{"b":"55BDDB932000","o":"A69ADC","s":"_ZN5mongo14DBDirectClient4callERNS_7MessageES2_bPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE"},{"b":"55BDDB932000","o":"8396E9","s":"_ZN5mongo20DBClientWithCommands22runCommandWithMetadataENS_10StringDataES1_RKNS_7BSONObjES4_"},{"b":"55BDDB932000","o":"834B98","s":"_ZN5mongo20DBClientWithCommands10runCommandERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7BSONObjERS9_i"},{"b":"55BDDB932000","o":"1300BEA","s":"_ZN5mongo5mozjs9MongoBase9Functions10runCommand4callEP9JSContextN2JS8CallArgsE"},{"b":"55BDDB932000","o":"1308B5F","s":"_ZN5mongo5mozjs7smUtils21wrapConstrainedMethodINS0_9MongoBase9Functions10runCommandELb1EINS0_14MongoLocalInfoENS0_17MongoExternalInfoEEEEbP9JSContextjPN2JS5ValueE"},{"b":"55BDDB932000","o":"1ACCD6B","s":"_ZN2js6InvokeEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE"},{"b":"55BDDB932000","o":"19B67A1","s":"_ZN2js9fun_applyEP9JSContextjPN2JS5ValueE"},{"b":"55BDDB932000","o":"1ACCD6B","s":"_ZN2js6InvokeEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE"},{"b":"55BDDB932000","o":"1ACD740","s":"_ZN2js6InvokeEP9JSContextRKN2JS5ValueES5_jPS4_NS2_13MutableHandleIS3_EE"},{"b":"55BDDB932000","o":"177E5C3"},{"b":"0","o":"7FAE241D8280"}],"processInfo":{ "mongodbVersion" : "3.3.10-64-g8844e33", "gitVersion" : "8844e330821b8b95b2aa01c6ac8a3fbe2fcd5a81", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "4.4.0-36-generic", "version" : "#55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016", "machine" : "x86_64" }, "somap" : [ { "b" : "55BDDB932000", "elfType" : 3, "buildId" : "331DF79CBBD91BB71EC9FB3E77030D3DA8B2954C" }, { "b" : "7FFE739A4000", "elfType" : 3, "buildId" : "1C5DF4F8675E339FD04C6838CF89B42648DE9D5B" }, { "b" : "7FAE23DB4000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "A779DBCB3A477DC0C8D09B60FAC7335D396C19DF" }, { "b" : "7FAE23BB0000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "A2ADF3615338D49C702C41EB83A99AB743D2B574" }, { "b" : "7FAE2382E000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "FCBB11A30679DE016410A0CDB6CCF0C2D11FD093" }, { "b" : "7FAE23525000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "5C4078C04888A418F3DB0868702ECFDB35B3AD8B" }, { "b" : "7FAE2330F000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "68220AE2C65D65C1B6AAA12FA6765A6EC2F5F434" }, { "b" : "7FAE230F2000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "B77847CC9CACBCA3B5753D0D25A32E5795AFE75B" }, { "b" : "7FAE22D29000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "369DE0E1D833CAA693AF17F17C83BA937F0A4DAD" }, { "b" : "7FAE23FBC000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "EDFA6D46E00CA97F349FDD3333D88493D442932C" } ] }}
      [MongoDFixture:job0]  mongod(_ZN5mongo15printStackTraceERSo+0x41) [0x55bddccdd3d1]
      [MongoDFixture:job0]  mongod(+0x13AA189) [0x55bddccdc189]
      [MongoDFixture:job0]  mongod(+0x13AA66D) [0x55bddccdc66d]
      [MongoDFixture:job0]  libpthread.so.0(+0x113D0) [0x7fae231033d0]
      [MongoDFixture:job0]  libc.so.6(gsignal+0x38) [0x7fae22d5e418]
      [MongoDFixture:job0]  libc.so.6(abort+0x16A) [0x7fae22d6001a]
      [MongoDFixture:job0]  mongod(_ZN5mongo17invariantOKFailedEPKcRKNS_6StatusES1_j+0x0) [0x55bddc099494]
      [MongoDFixture:job0]  mongod(_ZN5mongo16CmdFindAndModify3runEPNS_16OperationContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_7BSONObjEiRS8_RNS_14BSONObjBuilderE+0x268) [0x55bddc2e5648]
      [MongoDFixture:job0]  mongod(_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE+0x823) [0x55bddc2ccb43]
      [MongoDFixture:job0]  mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE+0x92C) [0x55bddc2cd97c]
      [MongoDFixture:job0]  mongod(_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE+0x26D) [0x55bddc87dc9d]
      [MongoDFixture:job0]  mongod(+0xB92A02) [0x55bddc4c4a02]
      [MongoDFixture:job0]  mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x656) [0x55bddc4c68f6]
      [MongoDFixture:job0]  mongod(_ZN5mongo14DBDirectClient4callERNS_7MessageES2_bPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0xBC) [0x55bddc39badc]
      [MongoDFixture:job0]  mongod(_ZN5mongo20DBClientWithCommands22runCommandWithMetadataENS_10StringDataES1_RKNS_7BSONObjES4_+0x369) [0x55bddc16b6e9]
      [MongoDFixture:job0]  mongod(_ZN5mongo20DBClientWithCommands10runCommandERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7BSONObjERS9_i+0x198) [0x55bddc166b98]
      [MongoDFixture:job0]  mongod(_ZN5mongo5mozjs9MongoBase9Functions10runCommand4callEP9JSContextN2JS8CallArgsE+0x18A) [0x55bddcc32bea]
      [MongoDFixture:job0]  mongod(_ZN5mongo5mozjs7smUtils21wrapConstrainedMethodINS0_9MongoBase9Functions10runCommandELb1EINS0_14MongoLocalInfoENS0_17MongoExternalInfoEEEEbP9JSContextjPN2JS5ValueE+0xAF) [0x55bddcc3ab5f]
      [MongoDFixture:job0]  mongod(_ZN2js6InvokeEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE+0xDB) [0x55bddd3fed6b]
      [MongoDFixture:job0]  mongod(_ZN2js9fun_applyEP9JSContextjPN2JS5ValueE+0x301) [0x55bddd2e87a1]
      [MongoDFixture:job0]  mongod(_ZN2js6InvokeEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE+0xDB) [0x55bddd3fed6b]
      [MongoDFixture:job0]  mongod(_ZN2js6InvokeEP9JSContextRKN2JS5ValueES5_jPS4_NS2_13MutableHandleIS3_EE+0x1A0) [0x55bddd3ff740]
      [MongoDFixture:job0]  mongod(+0x177E5C3) [0x55bddd0b05c3]
      [MongoDFixture:job0]  ??? [0x7fae241d8280]
      [MongoDFixture:job0] -----  END BACKTRACE  -----
      [js_test:0.0.184-8844e33082-ent_01779ec309-qa_5959f1f3ac-1478279267012-027] 2016-11-04T13:30:30.445-0400 JSTest jstestfuzz/out/0.0.184-8844e33082-ent_01779ec309-qa_5959f1f3ac-1478279267012-027.js finished.
      [executor:js_test:job0] 2016-11-04T13:30:30.446-0400 0.0.184-8844e33082-ent_01779ec309-qa_5959f1f3ac-1478279267012-027.js ran in 8.45 seconds.
      [executor:js_test:job0] 2016-11-04T13:30:30.446-0400 JSTest jstestfuzz/out/0.0.184-8844e33082-ent_01779ec309-qa_5959f1f3ac-1478279267012-027.js marked as a failure because the fixture crashed during the test.
      [executor:js_test:job0] 2016-11-04T13:30:30.446-0400 Received a StopExecution exception: MongoDFixture (Job #0) not running after JSTest jstestfuzz/out/0.0.184-8844e33082-ent_01779ec309-qa_5959f1f3ac-1478279267012-027.js.
      [executor:js_test] 2016-11-04T13:30:30.481-0400 Summary: 1 test(s) ran in 8.48 seconds (0 succeeded, 0 were skipped, 1 failed, 0 errored)
          The following tests failed (with exit code):
              jstestfuzz/out/0.0.184-8844e33082-ent_01779ec309-qa_5959f1f3ac-1478279267012-027.js (2)
      [MongoDFixture:job0] mongod on port 20000 was expected to be running in teardown(), but wasn't.
      [executor:js_test] 2016-11-04T13:30:30.481-0400 Teardown of MongoDFixture (Job #0) was not successful.
      [resmoke] 2016-11-04T13:30:30.481-0400 ================================================================================
      [resmoke] 2016-11-04T13:30:30.482-0400 Summary of <jstests> suite: 1 test(s) ran in 9.11 seconds (0 succeeded, 0 were skipped, 1 failed, 0 errored)
          js_tests: 1 test(s) ran in 8.48 seconds (0 succeeded, 0 were skipped, 1 failed, 0 errored)
              The following tests failed (with exit code):
                  jstestfuzz/out/0.0.184-8844e33082-ent_01779ec309-qa_5959f1f3ac-1478279267012-027.js (2)
      

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            eddie.louie Eddie Louie
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: