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

Remove the stack trace when mongod masserts on document insert larger than 16MB

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 3.2.3
    • Fix Version/s: Backlog
    • Component/s: Write Ops
    • Labels:

      Description

      While trying to import a document (attached) that is parse has a larger than 16MB document (33MB in this particular case) gives an massert with the following stacktrace:

      2016-02-18T15:26:57.162-0500 I -        [conn2] Assertion: 10334:BSONObj size: 33609065 (0x200D569) is invalid. Size must be between 0 and 16793600(16MB) First element: insert: "posts"
      2016-02-18T15:26:57.172-0500 I CONTROL  [conn2]
       0x109886119 0x10983c523 0x10982c195 0x10982bffa 0x108fd11b8 0x1091c7360 0x10901fd5d 0x1092aa99f 0x1092a736a 0x108fae64f 0x10984889e 0x109848041 0x7fff8cac2c13 0x7fff8cac2b90 0x7fff8cac0375
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"108FA4000","o":"8E2119","s":"_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE"},{"b":"108FA4000","o":"898523","s":"_ZN5mongo10logContextEPKc"},{"b":"108FA4000","o":"888195","s":"_ZN5mongo11msgassertedEiPKc"},{"b":"108FA4000","o":"887FFA","s":"_ZN5mongo11msgassertedEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE"},{"b":"108FA4000","o":"2D1B8","s":"_ZNK5mongo7BSONObj14_assertInvalidEv"},{"b":"108FA4000","o":"223360","s":"_ZN5mongo9DbMessage9nextJsObjEv"},{"b":"108FA4000","o":"7BD5D","s":"_ZN5mongo12QueryMessageC2ERNS_9DbMessageE"},{"b":"108FA4000","o":"30699F","s":"_ZN5mongoL15receivedCommandEPNS_16OperationContextERKNS_15NamespaceStringERNS_6ClientERNS_10DbResponseERNS_7MessageE"},{"b":"108FA4000","o":"30336A","s":"_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE"},{"b":"108FA4000","o":"A64F","s":"_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE"},{"b":"108FA4000","o":"8A489E","s":"_ZN5mongo17PortMessageServer17handleIncomingMsgEPv"},{"b":"108FA4000","o":"8A4041","s":"_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIPFPvS3_EJPN5mongo12_GLOBAL__N_124MessagingPortWithHandlerEEEEEEEEES3_S3_"},{"b":"7FFF8CABF000","o":"3C13","s":"_pthread_body"},{"b":"7FFF8CABF000","o":"3B90","s":"_pthread_body"},{"b":"7FFF8CABF000","o":"1375","s":"thread_start"}],"processInfo":{ "mongodbVersion" : "3.2.3", "gitVersion" : "b326ba837cf6f49d65c2f85e1b70f6f31ece7937", "compiledModules" : [], "uname" : { "sysname" : "Darwin", "release" : "15.3.0", "version" : "Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64", "machine" : "x86_64" }, "somap" : [ { "path" : "/Users/norberto/sandbox/essentials_training_test/mongodb-osx-x86_64-3.2.3/bin/./mongod", "machType" : 2, "b" : "108FA4000", "vmaddr" : "100000000", "buildId" : "8A20E1DCBF543EE3AE6F68D820D4C1B6" }, { "path" : "/usr/lib/libSystem.B.dylib", "machType" : 6, "b" : "7FFF8BF82000", "vmaddr" : "7FFF8B7AE000", "buildId" : "5A4257EF31453BB387A40D2404A9462D" }, { "path" : "/usr/lib/libc++.1.dylib", "machType" : 6, "b" : "7FFF90C83000", "vmaddr" : "7FFF904AF000", "buildId" : "8FC3D139805534989AC56467CB7F4D14" }, { "path" : "/usr/lib/system/libcache.dylib", "machType" : 6, "b" : "7FFF92991000", "vmaddr" : "7FFF921BD000", "buildId" : "6B245C0AF3EA383BA5425B0D0456A41B" }, { "path" : "/usr/lib/system/libcommonCrypto.dylib", "machType" : 6, "b" : "7FFF81795000", "vmaddr" : "7FFF80FC1000", "buildId" : "766BC3F541F33315BABC72718A98EA92" }, { "path" : "/usr/lib/system/libcompiler_rt.dylib", "machType" : 6, "b" : "7FFF862CA000", "vmaddr" : "7FFF85AF6000", "buildId" : "D3C4AB4023B43BC68C385B8758D14E80" }, { "path" : "/usr/lib/system/libcopyfile.dylib", "machType" : 6, "b" : "7FFF887B8000", "vmaddr" : "7FFF87FE4000", "buildId" : "F51332690B22388CA57C079667B6291E" }, { "path" : "/usr/lib/system/libcorecrypto.dylib", "machType" : 6, "b" : "7FFF8D8D4000", "vmaddr" : "7FFF8D100000", "buildId" : "C6BD205F4ECE37EEBCABA76F39CDCFFA" }, { "path" : "/usr/lib/system/libdispatch.dylib", "machType" : 6, "b" : "7FFF90269000", "vmaddr" : "7FFF8FA95000", "buildId" : "324C91892AF33356847F6F4CE1C6E901" }, { "path" : "/usr/lib/system/libdyld.dylib", "machType" : 6, "b" : "7FFF946D5000", "vmaddr" : "7FFF93F01000", "buildId" : "AA629043C6F632FE8007E3478E99ACA7" }, { "path" : "/usr/lib/system/libkeymgr.dylib", "machType" : 6, "b" : "7FFF81781000", "vmaddr" : "7FFF80FAD000", "buildId" : "09397E0160663179A50C2CE666FDA929" }, { "path" : "/usr/lib/system/liblaunch.dylib", "machType" : 6, "b" : "7FFF81EFF000", "vmaddr" : "7FFF8172B000", "buildId" : "EDF719D6D2BB38DD8C944272BEFDA2CD" }, { "path" : "/usr/lib/system/libmacho.dylib", "machType" : 6, "b" : "7FFF816A6000", "vmaddr" : "7FFF80ED2000", "buildId" : "CB745E1F48853F96B38B2093DF488FD5" }, { "path" : "/usr/lib/system/libquarantine.dylib", "machType" : 6, "b" : "7FFF8C95E000", "vmaddr" : "7FFF8C18A000", "buildId" : "163CF63A74553D1FAE578C4475A9204C" }, { "path" : "/usr/lib/system/libremovefile.dylib", "machType" : 6, "b" : "7FFF887AC000", "vmaddr" : "7FFF87FD8000", "buildId" : "B8D1A5FCCFD53AAB8A1014DDC129710A" }, { "path" : "/usr/lib/system/libsystem_asl.dylib", "machType" : 6, "b" : "7FFF85578000", "vmaddr" : "7FFF84DA4000", "buildId" : "9B500E4EE462321E828E5524DC984C1B" }, { "path" : "/usr/lib/system/libsystem_blocks.dylib", "machType" : 6, "b" : "7FFF85BC6000", "vmaddr" : "7FFF853F2000", "buildId" : "49D423297DE9341392C3A473A7E9CF35" }, { "path" : "/usr/lib/system/libsystem_c.dylib", "machType" : 6, "b" : "7FFF901D3000", "vmaddr" : "7FFF8F9FF000", "buildId" : "EAB38A6C86713B13B50090EC1B912063" }, { "path" : "/usr/lib/system/libsystem_configuration.dylib", "machType" : 6, "b" : "7FFF90E1B000", "vmaddr" : "7FFF90647000", "buildId" : "5FD7907036CC3D02BEA7BB5D2AE97D5D" }, { "path" : "/usr/lib/system/libsystem_coreservices.dylib", "machType" : 6, "b" : "7FFF909A0000", "vmaddr" : "7FFF901CC000", "buildId" : "1B3F5AFCFFCD3ECB8B9A5538366FB20D" }, { "path" : "/usr/lib/system/libsystem_coretls.dylib", "machType" : 6, "b" : "7FFF8ED78000", "vmaddr" : "7FFF8E5A4000", "buildId" : "75C97D880A633093AE83DE33EB7405CE" }, { "path" : "/usr/lib/system/libsystem_dnssd.dylib", "machType" : 6, "b" : "7FFF8DB17000", "vmaddr" : "7FFF8D343000", "buildId" : "945B5FB1DA913D45A961A8FAD53C1E7E" }, { "path" : "/usr/lib/system/libsystem_info.dylib", "machType" : 6, "b" : "7FFF8DB20000", "vmaddr" : "7FFF8D34C000", "buildId" : "6513635B4ADE3B45BF63ED7AC565B0C9" }, { "path" : "/usr/lib/system/libsystem_kernel.dylib", "machType" : 6, "b" : "7FFF87EDF000", "vmaddr" : "7FFF8770B000", "buildId" : "9CEB6C3B1CAF3C32A9FD93BC72CBCEA1" }, { "path" : "/usr/lib/system/libsystem_m.dylib", "machType" : 6, "b" : "7FFF82487000", "vmaddr" : "7FFF81CB3000", "buildId" : "26655445CA97321EB221801CB378D1AA" }, { "path" : "/usr/lib/system/libsystem_malloc.dylib", "machType" : 6, "b" : "7FFF830DD000", "vmaddr" : "7FFF82909000", "buildId" : "9EECAB18F02534C48E327EFFA6720EFC" }, { "path" : "/usr/lib/system/libsystem_network.dylib", "machType" : 6, "b" : "7FFF85C30000", "vmaddr" : "7FFF8545C000", "buildId" : "865FE79AA22D3733A14FFC7B37F3AECD" }, { "path" : "/usr/lib/system/libsystem_networkextension.dylib", "machType" : 6, "b" : "7FFF8E14C000", "vmaddr" : "7FFF8D978000", "buildId" : "DC8A102ABF0231A4891465C34DF6B592" }, { "path" : "/usr/lib/system/libsystem_notify.dylib", "machType" : 6, "b" : "7FFF862FD000", "vmaddr" : "7FFF85B29000", "buildId" : "243FADE1255A3B788033F336CD64B817" }, { "path" : "/usr/lib/system/libsystem_platform.dylib", "machType" : 6, "b" : "7FFF85D1F000", "vmaddr" : "7FFF8554B000", "buildId" : "D3A27E107F083603ACC87A92B2C04BAB" }, { "path" : "/usr/lib/system/libsystem_pthread.dylib", "machType" : 6, "b" : "7FFF8CABF000", "vmaddr" : "7FFF8C2EB000", "buildId" : "327CECD0B88131538FCC4FD4818B7F16" }, { "path" : "/usr/lib/system/libsystem_sandbox.dylib", "machType" : 6, "b" : "7FFF887C1000", "vmaddr" : "7FFF87FED000", "buildId" : "3E0036AFFC6433528DA46B550C2C2562" }, { "path" : "/usr/lib/system/libsystem_secinit.dylib", "machType" : 6, "b" : "7FFF85D7C000", "vmaddr" : "7FFF855A8000", "buildId" : "FD6ECF2C148932CA981B9045B5EB1FAA" }, { "path" : "/usr/lib/system/libsystem_trace.dylib", "machType" : 6, "b" : "7FFF81750000", "vmaddr" : "7FFF80F7C000", "buildId" : "B485369FE3A1319E998C89AAF606079E" }, { "path" : "/usr/lib/system/libunc.dylib", "machType" : 6, "b" : "7FFF81ACE000", "vmaddr" : "7FFF812FA000", "buildId" : "1D0F8265F0263CBD93D3F8DF14FFCE68" }, { "path" : "/usr/lib/system/libunwind.dylib", "machType" : 6, "b" : "7FFF92E07000", "vmaddr" : "7FFF92633000", "buildId" : "124E0F0523503774A32C7F5BF38EDE73" }, { "path" : "/usr/lib/system/libxpc.dylib", "machType" : 6, "b" : "7FFF808B4000", "vmaddr" : "7FFF800E0000", "buildId" : "61AB46109304354C9E9BD57198AE9866" }, { "path" : "/usr/lib/libobjc.A.dylib", "machType" : 6, "b" : "7FFF9137C000", "vmaddr" : "7FFF90BA8000", "buildId" : "9F45830DF1D53CDF94611A5477ED7D1E" }, { "path" : "/usr/lib/libauto.dylib", "machType" : 6, "b" : "7FFF847EF000", "vmaddr" : "7FFF8401B000", "buildId" : "999E610F41FC32A3ADCA5EC049B65DFB" }, { "path" : "/usr/lib/libc++abi.dylib", "machType" : 6, "b" : "7FFF8E098000", "vmaddr" : "7FFF8D8C4000", "buildId" : "DCCC81773D0935BC97842A04FEC4C71B" }, { "path" : "/usr/lib/libDiagnosticMessagesClient.dylib", "machType" : 6, "b" : "7FFF879BE000", "vmaddr" : "7FFF871EA000", "buildId" : "4243B6B421E9355B9C5A95A216233B96" } ] }}
       mongod(_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE+0x39) [0x109886119]
       mongod(_ZN5mongo10logContextEPKc+0x163) [0x10983c523]
       mongod(_ZN5mongo11msgassertedEiPKc+0x195) [0x10982c195]
       mongod(_ZN5mongo11msgassertedEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE+0x1A) [0x10982bffa]
       mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x398) [0x108fd11b8]
       mongod(_ZN5mongo9DbMessage9nextJsObjEv+0xA0) [0x1091c7360]
       mongod(_ZN5mongo12QueryMessageC2ERNS_9DbMessageE+0x5D) [0x10901fd5d]
       mongod(_ZN5mongoL15receivedCommandEPNS_16OperationContextERKNS_15NamespaceStringERNS_6ClientERNS_10DbResponseERNS_7MessageE+0x8F) [0x1092aa99f]
       mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x7EA) [0x1092a736a]
       mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE+0xFF) [0x108fae64f]
       mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x27E) [0x10984889e]
       mongod(_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIPFPvS3_EJPN5mongo12_GLOBAL__N_124MessagingPortWithHandlerEEEEEEEEES3_S3_+0x61) [0x109848041]
       libsystem_pthread.dylib(_pthread_body+0x83) [0x7fff8cac2c13]
       libsystem_pthread.dylib(_pthread_body+0x0) [0x7fff8cac2b90]
       libsystem_pthread.dylib(thread_start+0xD) [0x7fff8cac0375]
      -----  END BACKTRACE  -----
      2016-02-18T15:26:57.175-0500 I NETWORK  [conn2] AssertionException handling request, closing client connection: 10334 BSONObj size: 33609065 (0x200D569) is invalid. Size must be between 0 and 16793600(16MB) First element: insert: "posts"
      2016-02-18T15:26:57.192-0500 I NETWORK  [conn1] end connection 127.0.0.1:59126 (0 connections now open)
      

        Attachments

        1. posts.json
          33.91 MB

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-execution Backlog - Query Execution
              Reporter:
              norberto.leite Norberto Fernando Rocha Leite (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated: