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

BSONObj size server assertion using mongoimport with data file from M101P online course

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • ALL
    • Hide

      Run :
      mongoimport --drop -d blog -c posts < posts.json

      with 3.2.5 version of the server.

      Show
      Run : mongoimport --drop -d blog -c posts < posts.json with 3.2.5 version of the server.

      In lesson HW 5.1 of M101P there is a posts.json file that you must download and load into MongoDB using mongoimport. This import triggers a "BSONObj size" server assertion in MongoDB 3.0, 3,2 and 3.2.5.

      The file loads successfully in MongoDB 2.6.

      The mongoimport command is:

      mongoimport --drop -d blog -c posts <  posts.json
      

      I have attached the data file posts.json. The server log error is:

      2016-04-21T19:43:26.979+0100 I NETWORK  [initandlisten] waiting for connections on port 27017
      2016-04-21T19:43:34.787+0100 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:50275 #1 (1 connection now open)
      2016-04-21T19:43:34.799+0100 I COMMAND  [conn1] CMD: drop blog.posts
      2016-04-21T19:43:35.394+0100 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:50276 #2 (2 connections now open)
      2016-04-21T19:43:35.673+0100 I -        [conn2] Assertion: 10334:BSONObj size: 33581101 (0x200682D) is invalid. Size must be between 0 and 16793600(16MB) First element: insert: "posts"
      2016-04-21T19:43:35.698+0100 I CONTROL  [conn2] 
       0x10f14a77a 0x10f0fbe71 0x10f0eb18d 0x10f0eafda 0x10e86fd11 0x10ea6acef 0x10e8be41d 0x10eb505dc 0x10eb4c99f 0x10e85123a 0x10f108323 0x10f107b31 0x7fff85c2e05a 0x7fff85c2dfd7 0x7fff85c2b3ed
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"10E848000","o":"90277A","s":"_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE"},{"b":"10E848000","o":"8B3E71","s":"_ZN5mongo10logContextEPKc"},{"b":"10E848000","o":"8A318D","s":"_ZN5mongo11msgassertedEiPKc"},{"b":"10E848000","o":"8A2FDA","s":"_ZN5mongo11msgassertedEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE"},{"b":"10E848000","o":"27D11","s":"_ZNK5mongo7BSONObj14_assertInvalidEv"},{"b":"10E848000","o":"222CEF","s":"_ZN5mongo9DbMessage9nextJsObjEv"},{"b":"10E848000","o":"7641D","s":"_ZN5mongo12QueryMessageC2ERNS_9DbMessageE"},{"b":"10E848000","o":"3085DC","s":"_ZN5mongoL15receivedCommandEPNS_16OperationContextERKNS_15NamespaceStringERNS_6ClientERNS_10DbResponseERNS_7MessageE"},{"b":"10E848000","o":"30499F","s":"_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE"},{"b":"10E848000","o":"923A","s":"_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE"},{"b":"10E848000","o":"8C0323","s":"_ZN5mongo17PortMessageServer17handleIncomingMsgEPv"},{"b":"10E848000","o":"8BFB31","s":"_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIPFPvS3_EJPN5mongo12_GLOBAL__N_124MessagingPortWithHandlerEEEEEEEEES3_S3_"},{"b":"7FFF85C2A000","o":"405A","s":"_pthread_body"},{"b":"7FFF85C2A000","o":"3FD7","s":"_pthread_body"},{"b":"7FFF85C2A000","o":"13ED","s":"thread_start"}],"processInfo":{ "mongodbVersion" : "3.2.5", "gitVersion" : "34e65e5383f7ea1726332cb175b73077ec4a1b02", "compiledModules" : [], "uname" : { "sysname" : "Darwin", "release" : "14.5.0", "version" : "Darwin Kernel Version 14.5.0: Mon Jan 11 18:48:35 PST 2016; root:xnu-2782.50.2~1/RELEASE_X86_64", "machine" : "x86_64" }, "somap" : [ { "path" : "/usr/local/mongodb/bin/mongod", "machType" : 2, "b" : "10E848000", "vmaddr" : "100000000", "buildId" : "68C34055EE8736E79F8EF1D7867BDFCD" }, { "path" : "/usr/lib/libSystem.B.dylib", "machType" : 6, "b" : "7FFF918B8000", "vmaddr" : "7FFF8C62F000", "buildId" : "538E391E1BD1365580DF62609C9305CC" }, { "path" : "/usr/lib/libc++.1.dylib", "machType" : 6, "b" : "7FFF90BF7000", "vmaddr" : "7FFF8B96E000", "buildId" : "1B9530FD989B3174BB1CBDC159501710" }, { "path" : "/usr/lib/system/libcache.dylib", "machType" : 6, "b" : "7FFF88657000", "vmaddr" : "7FFF833CE000", "buildId" : "45E9A2E799C436B2BEE30C4E11614AD1" }, { "path" : "/usr/lib/system/libcommonCrypto.dylib", "machType" : 6, "b" : "7FFF8AA2A000", "vmaddr" : "7FFF857A1000", "buildId" : "E789748DF9A73CFFB31790DF348B1E95" }, { "path" : "/usr/lib/system/libcompiler_rt.dylib", "machType" : 6, "b" : "7FFF85397000", "vmaddr" : "7FFF8010E000", "buildId" : "BF8FC133EE103DA69B9092039E28678F" }, { "path" : "/usr/lib/system/libcopyfile.dylib", "machType" : 6, "b" : "7FFF885A4000", "vmaddr" : "7FFF8331B000", "buildId" : "0C68D3A6ACDD3EF3991ACC82C32AB836" }, { "path" : "/usr/lib/system/libcorecrypto.dylib", "machType" : 6, "b" : "7FFF91983000", "vmaddr" : "7FFF8C6FA000", "buildId" : "5779FFA04D9A3AD4B7F2618227621DC8" }, { "path" : "/usr/lib/system/libdispatch.dylib", "machType" : 6, "b" : "7FFF93024000", "vmaddr" : "7FFF8DD9B000", "buildId" : "A61E703C784A3698B51375DD12AAD6DC" }, { "path" : "/usr/lib/system/libdyld.dylib", "machType" : 6, "b" : "7FFF92194000", "vmaddr" : "7FFF8CF0B000", "buildId" : "CDB6EA0BAAAE3D81A4568D5C32D7E361" }, { "path" : "/usr/lib/system/libkeymgr.dylib", "machType" : 6, "b" : "7FFF8A44E000", "vmaddr" : "7FFF851C5000", "buildId" : "77845842DE703CC5BD01C3D14227CED5" }, { "path" : "/usr/lib/system/liblaunch.dylib", "machType" : 6, "b" : "7FFF8EB43000", "vmaddr" : "7FFF898BA000", "buildId" : "4F81CA3AD2CE3030A89D42F3DAD7BA8F" }, { "path" : "/usr/lib/system/libmacho.dylib", "machType" : 6, "b" : "7FFF9059B000", "vmaddr" : "7FFF8B312000", "buildId" : "126CA2EDDE91308F8881B9DAEC3C63B6" }, { "path" : "/usr/lib/system/libquarantine.dylib", "machType" : 6, "b" : "7FFF91F6F000", "vmaddr" : "7FFF8CCE6000", "buildId" : "7AF900412768378A925AD83161863642" }, { "path" : "/usr/lib/system/libremovefile.dylib", "machType" : 6, "b" : "7FFF886F2000", "vmaddr" : "7FFF83469000", "buildId" : "3485B5F46CE83C628DFD8736ED6E8531" }, { "path" : "/usr/lib/system/libsystem_asl.dylib", "machType" : 6, "b" : "7FFF8E074000", "vmaddr" : "7FFF88DEB000", "buildId" : "F153AC5B0542356E88C820A62CA704E2" }, { "path" : "/usr/lib/system/libsystem_blocks.dylib", "machType" : 6, "b" : "7FFF91211000", "vmaddr" : "7FFF8BF88000", "buildId" : "9615D10AFCA73BE4AA1A1B195DACE1A1" }, { "path" : "/usr/lib/system/libsystem_c.dylib", "machType" : 6, "b" : "7FFF93994000", "vmaddr" : "7FFF8E70B000", "buildId" : "69158EFA827030A1BA024F74A4498147" }, { "path" : "/usr/lib/system/libsystem_configuration.dylib", "machType" : 6, "b" : "7FFF8F2DF000", "vmaddr" : "7FFF8A056000", "buildId" : "56F94DCEDBDE36158F07DE6270D9F8BE" }, { "path" : "/usr/lib/system/libsystem_coreservices.dylib", "machType" : 6, "b" : "7FFF92B77000", "vmaddr" : "7FFF8D8EE000", "buildId" : "41B7C5785A5331C8A96FC73E030B0938" }, { "path" : "/usr/lib/system/libsystem_coretls.dylib", "machType" : 6, "b" : "7FFF8F4F3000", "vmaddr" : "7FFF8A26A000", "buildId" : "155DA0A92046332EBFA3D7974A51F731" }, { "path" : "/usr/lib/system/libsystem_dnssd.dylib", "machType" : 6, "b" : "7FFF868C0000", "vmaddr" : "7FFF81637000", "buildId" : "9EC5AF92D0D23BDE92B6D3730D3865C8" }, { "path" : "/usr/lib/system/libsystem_info.dylib", "machType" : 6, "b" : "7FFF94AEB000", "vmaddr" : "7FFF8F862000", "buildId" : "2E16C4B3A32739579C41143911979A1E" }, { "path" : "/usr/lib/system/libsystem_kernel.dylib", "machType" : 6, "b" : "7FFF8F8B7000", "vmaddr" : "7FFF8A62E000", "buildId" : "FAA95C7E5A5935FD9ED580BFB27BF3C7" }, { "path" : "/usr/lib/system/libsystem_m.dylib", "machType" : 6, "b" : "7FFF87370000", "vmaddr" : "7FFF820E7000", "buildId" : "1E12AB456D9636D0A226F24D9FB0D9D6" }, { "path" : "/usr/lib/system/libsystem_malloc.dylib", "machType" : 6, "b" : "7FFF8A4BD000", "vmaddr" : "7FFF85234000", "buildId" : "DDA8928BCC0D3255BD8A3FEA0982B890" }, { "path" : "/usr/lib/system/libsystem_network.dylib", "machType" : 6, "b" : "7FFF91913000", "vmaddr" : "7FFF8C68A000", "buildId" : "6105C13467223C0AA4CE5E1261E2E1CC" }, { "path" : "/usr/lib/system/libsystem_networkextension.dylib", "machType" : 6, "b" : "7FFF8A138000", "vmaddr" : "7FFF84EAF000", "buildId" : "BA58B30B83773B0A8AE34F84021D9D4E" }, { "path" : "/usr/lib/system/libsystem_notify.dylib", "machType" : 6, "b" : "7FFF8C8F7000", "vmaddr" : "7FFF8766E000", "buildId" : "61147800F3203DAA850CBADF33855F29" }, { "path" : "/usr/lib/system/libsystem_platform.dylib", "machType" : 6, "b" : "7FFF919FD000", "vmaddr" : "7FFF8C774000", "buildId" : "64E34079D7123D669CE2418624A5C040" }, { "path" : "/usr/lib/system/libsystem_pthread.dylib", "machType" : 6, "b" : "7FFF85C2A000", "vmaddr" : "7FFF809A1000", "buildId" : "ACE90967ECD03251AEEB461E3C6414F7" }, { "path" : "/usr/lib/system/libsystem_sandbox.dylib", "machType" : 6, "b" : "7FFF92DAB000", "vmaddr" : "7FFF8DB22000", "buildId" : "3F5E973FC70231AC97BC05F5C195683C" }, { "path" : "/usr/lib/system/libsystem_secinit.dylib", "machType" : 6, "b" : "7FFF8F022000", "vmaddr" : "7FFF89D99000", "buildId" : "581DAD0F6B633A48B63B917AF799ABAA" }, { "path" : "/usr/lib/system/libsystem_stats.dylib", "machType" : 6, "b" : "7FFF92DA2000", "vmaddr" : "7FFF8DB19000", "buildId" : "A55632C9CAFA31DC926CB1FD07E445C1" }, { "path" : "/usr/lib/system/libsystem_trace.dylib", "machType" : 6, "b" : "7FFF8DAEA000", "vmaddr" : "7FFF88861000", "buildId" : "840F5301B55A307890B9FEFFD6CD741A" }, { "path" : "/usr/lib/system/libunc.dylib", "machType" : 6, "b" : "7FFF94BB0000", "vmaddr" : "7FFF8F927000", "buildId" : "5676F7EAC1DF329FB006D2C3022B7D70" }, { "path" : "/usr/lib/system/libunwind.dylib", "machType" : 6, "b" : "7FFF94BA7000", "vmaddr" : "7FFF8F91E000", "buildId" : "BE7E51A0B6EA3A549CCA9D88F683A6D6" }, { "path" : "/usr/lib/system/libxpc.dylib", "machType" : 6, "b" : "7FFF930E0000", "vmaddr" : "7FFF8DE57000", "buildId" : "5C829202962E37448B5000D38CC88E84" }, { "path" : "/usr/lib/libobjc.A.dylib", "machType" : 6, "b" : "7FFF91A3E000", "vmaddr" : "7FFF8C7B5000", "buildId" : "759E155DBC423D4E869B6F57D477177C" }, { "path" : "/usr/lib/libauto.dylib", "machType" : 6, "b" : "7FFF885DF000", "vmaddr" : "7FFF83356000", "buildId" : "A260789BD4D8316A9490254767B8A5F1" }, { "path" : "/usr/lib/libc++abi.dylib", "machType" : 6, "b" : "7FFF8BF47000", "vmaddr" : "7FFF86CBE000", "buildId" : "88A22A0F87C63002BFBAAC0F2808B8B9" }, { "path" : "/usr/lib/libDiagnosticMessagesClient.dylib", "machType" : 6, "b" : "7FFF94BB1000", "vmaddr" : "7FFF8F928000", "buildId" : "2EE8E4365CDC34C599595BA218D507FB" } ] }}
       mongod(_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE+0x3A) [0x10f14a77a]
       mongod(_ZN5mongo10logContextEPKc+0x171) [0x10f0fbe71]
       mongod(_ZN5mongo11msgassertedEiPKc+0x1AD) [0x10f0eb18d]
       mongod(_ZN5mongo11msgassertedEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE+0x1A) [0x10f0eafda]
       mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x3A1) [0x10e86fd11]
       mongod(_ZN5mongo9DbMessage9nextJsObjEv+0x9F) [0x10ea6acef]
       mongod(_ZN5mongo12QueryMessageC2ERNS_9DbMessageE+0x5D) [0x10e8be41d]
       mongod(_ZN5mongoL15receivedCommandEPNS_16OperationContextERKNS_15NamespaceStringERNS_6ClientERNS_10DbResponseERNS_7MessageE+0x8C) [0x10eb505dc]
       mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x74F) [0x10eb4c99f]
       mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE+0xEA) [0x10e85123a]
       mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x253) [0x10f108323]
       mongod(_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIPFPvS3_EJPN5mongo12_GLOBAL__N_124MessagingPortWithHandlerEEEEEEEEES3_S3_+0x61) [0x10f107b31]
       libsystem_pthread.dylib(_pthread_body+0x83) [0x7fff85c2e05a]
       libsystem_pthread.dylib(_pthread_body+0x0) [0x7fff85c2dfd7]
       libsystem_pthread.dylib(thread_start+0xD) [0x7fff85c2b3ed]
      -----  END BACKTRACE  -----
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            joe.drumgoole@mongodb.com Joe Drumgoole (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: