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

Running an aggregate command with a non-array pipeline triggers an massert

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      In mongo shell run:

      db.runCommand({aggregate: "test", pipeline: {}})
      

      mongod will report a stack trace of the triggered massert:

      2016-08-12T15:20:31.243-0400 I -        [conn1] Assertion: 13111:wrong type for field (pipeline) 3 != 4 src/mongo/bson/bsonelement.h 657
      2016-08-12T15:20:31.259-0400 I CONTROL  [conn1] 
       0x10f6121aa 0x10f5b92f1 0x10f5a6531 0x10f5a6228 0x10ec19b23 0x10ec320a4 0x10f0a3f97 0x10ed9adb9 0x10ed99e84 0x10f28edac 0x10ef28fdd 0x10ec1c6c5 0x10f5984a1 0x10f598b11 0x7fff8ae3f99d 0x7fff8ae3f91a 0x7fff8ae3d351
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"10EC0E000","o":"A041AA","s":"_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE"},{"b":"10EC0E000","o":"9AB2F1","s":"_ZN5mongo10logContextEPKc"},{"b":"10EC0E000","o":"998531","s":"_ZN5mongo23msgassertedWithLocationEiPKcS1_j"},{"b":"10EC0E000","o":"998228","s":"_ZN5mongo23msgassertedWithLocationEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcj"},{"b":"10EC0E000","o":"BB23","s":"_ZNK5mongo11BSONElement3chkEi"},{"b":"10EC0E000","o":"240A4","s":"_ZNK5mongo11BSONElement5ArrayEv"},{"b":"10EC0E000","o":"495F97","s":"_ZN5mongo8Pipeline23aggSupportsWriteConcernERKNS_7BSONObjE"},{"b":"10EC0E000","o":"18CDB9","s":"_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE"},{"b":"10EC0E000","o":"18BE84","s":"_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE"},{"b":"10EC0E000","o":"680DAC","s":"_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE"},{"b":"10EC0E000","o":"31AFDD","s":"_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE"},{"b":"10EC0E000","o":"E6C5","s":"_ZN5mongo23ServiceEntryPointMongod12_sessionLoopEPNS_9transport7SessionE"},{"b":"10EC0E000","o":"98A4A1","s":"_ZN5mongo12_GLOBAL__N_17runFuncEPv"},{"b":"10EC0E000","o":"98AB11","s":"_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIRFPvS3_EJPN5mongo12_GLOBAL__N_17ContextEEEEEEEEES3_S3_"},{"b":"7FFF8AE3C000","o":"399D","s":"_pthread_body"},{"b":"7FFF8AE3C000","o":"391A","s":"_pthread_body"},{"b":"7FFF8AE3C000","o":"1351","s":"thread_start"}],"processInfo":{ "mongodbVersion" : "3.3.6-1038-ge541fb9", "gitVersion" : "e541fb9af35dde75b9c09f59260fa24735c815e1", "compiledModules" : [], "uname" : { "sysname" : "Darwin", "release" : "15.6.0", "version" : "Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64", "machine" : "x86_64" }, "somap" : [ { "path" : "/Users/kevin/mongo/./mongod", "machType" : 2, "b" : "10EC0E000", "vmaddr" : "100000000", "buildId" : "146E97FEDC803179A22768A89B5AC66E" }, { "path" : "/usr/lib/libSystem.B.dylib", "machType" : 6, "b" : "7FFF8F1D2000", "vmaddr" : "7FFF8C84F000", "buildId" : "ECAA07BEA1143461AA13C57838775FC2" }, { "path" : "/usr/lib/libc++.1.dylib", "machType" : 6, "b" : "7FFF962C1000", "vmaddr" : "7FFF9393E000", "buildId" : "8FC3D139805534989AC56467CB7F4D14" }, { "path" : "/usr/lib/system/libcache.dylib", "machType" : 6, "b" : "7FFF8612D000", "vmaddr" : "7FFF837AA000", "buildId" : "9548AAE92AB735259ECEA2A7C4688447" }, { "path" : "/usr/lib/system/libcommonCrypto.dylib", "machType" : 6, "b" : "7FFF87263000", "vmaddr" : "7FFF848E0000", "buildId" : "9373226134B43914B7A290A81A182DBA" }, { "path" : "/usr/lib/system/libcompiler_rt.dylib", "machType" : 6, "b" : "7FFF88B23000", "vmaddr" : "7FFF861A0000", "buildId" : "A13ECF69F59F38AE86097B731450FBCD" }, { "path" : "/usr/lib/system/libcopyfile.dylib", "machType" : 6, "b" : "7FFF94EBF000", "vmaddr" : "7FFF9253C000", "buildId" : "A48637BCF3F234F2BB684C65FD012832" }, { "path" : "/usr/lib/system/libcorecrypto.dylib", "machType" : 6, "b" : "7FFF84802000", "vmaddr" : "7FFF81E7F000", "buildId" : "B5C05FD7A540345A87BF8E41848A3C17" }, { "path" : "/usr/lib/system/libdispatch.dylib", "machType" : 6, "b" : "7FFF8B861000", "vmaddr" : "7FFF88EDE000", "buildId" : "C749985761A53D7DA5EA65DCC8C3DF92" }, { "path" : "/usr/lib/system/libdyld.dylib", "machType" : 6, "b" : "7FFF8AC71000", "vmaddr" : "7FFF882EE000", "buildId" : "1F9FCF2C5E943F2DB4A51238587AA5C6" }, { "path" : "/usr/lib/system/libkeymgr.dylib", "machType" : 6, "b" : "7FFF87153000", "vmaddr" : "7FFF847D0000", "buildId" : "8371CE545FDD3CE9B3DFE98C761B6FE0" }, { "path" : "/usr/lib/system/liblaunch.dylib", "machType" : 6, "b" : "7FFF97413000", "vmaddr" : "7FFF94A90000", "buildId" : "834ED60551143641AA4DECF31B801C50" }, { "path" : "/usr/lib/system/libmacho.dylib", "machType" : 6, "b" : "7FFF95A74000", "vmaddr" : "7FFF930F1000", "buildId" : "318264FA58F139D882851F6254EE410E" }, { "path" : "/usr/lib/system/libquarantine.dylib", "machType" : 6, "b" : "7FFF86447000", "vmaddr" : "7FFF83AC4000", "buildId" : "0F4169F00C843A25B3AEE47B3586D908" }, { "path" : "/usr/lib/system/libremovefile.dylib", "machType" : 6, "b" : "7FFF967AF000", "vmaddr" : "7FFF93E2C000", "buildId" : "552EF39E14D7363E90594565AC2F894E" }, { "path" : "/usr/lib/system/libsystem_asl.dylib", "machType" : 6, "b" : "7FFF93AAC000", "vmaddr" : "7FFF91129000", "buildId" : "41F8E11F1BD03F1DBA3AAA1577ED98A9" }, { "path" : "/usr/lib/system/libsystem_blocks.dylib", "machType" : 6, "b" : "7FFF940A3000", "vmaddr" : "7FFF91720000", "buildId" : "1244D9D5F6AA35BBB30786851C24B8E5" }, { "path" : "/usr/lib/system/libsystem_c.dylib", "machType" : 6, "b" : "7FFF86AD1000", "vmaddr" : "7FFF8414E000", "buildId" : "28733D22553E3CBC8D2CEDCEB46E46AF" }, { "path" : "/usr/lib/system/libsystem_configuration.dylib", "machType" : 6, "b" : "7FFF86EA1000", "vmaddr" : "7FFF8451E000", "buildId" : "3DEB7DF9680437E1BC830166882FF0FF" }, { "path" : "/usr/lib/system/libsystem_coreservices.dylib", "machType" : 6, "b" : "7FFF8A187000", "vmaddr" : "7FFF87804000", "buildId" : "1B3F5AFCFFCD3ECB8B9A5538366FB20D" }, { "path" : "/usr/lib/system/libsystem_coretls.dylib", "machType" : 6, "b" : "7FFF82BE4000", "vmaddr" : "7FFF80261000", "buildId" : "C90DAE384082381CA1852A6A8B677628" }, { "path" : "/usr/lib/system/libsystem_dnssd.dylib", "machType" : 6, "b" : "7FFF87271000", "vmaddr" : "7FFF848EE000", "buildId" : "8018999832B0316CB5C553857486713D" }, { "path" : "/usr/lib/system/libsystem_info.dylib", "machType" : 6, "b" : "7FFF8D254000", "vmaddr" : "7FFF8A8D1000", "buildId" : "FAA9226D64DE3769A6D86CABA4B7FF4D" }, { "path" : "/usr/lib/system/libsystem_kernel.dylib", "machType" : 6, "b" : "7FFF84C83000", "vmaddr" : "7FFF82300000", "buildId" : "C1A6A0B9186936ABB4A2D862EB09A4BE" }, { "path" : "/usr/lib/system/libsystem_m.dylib", "machType" : 6, "b" : "7FFF86CCB000", "vmaddr" : "7FFF84348000", "buildId" : "08E1A4B264483DFEA58CACC7335BE7E4" }, { "path" : "/usr/lib/system/libsystem_malloc.dylib", "machType" : 6, "b" : "7FFF8692D000", "vmaddr" : "7FFF83FAA000", "buildId" : "5748E8B2F81C34C68B13456213127678" }, { "path" : "/usr/lib/system/libsystem_network.dylib", "machType" : 6, "b" : "7FFF9403C000", "vmaddr" : "7FFF916B9000", "buildId" : "B52DAB7392DC3DA7B9F4B899D66445C1" }, { "path" : "/usr/lib/system/libsystem_networkextension.dylib", "machType" : 6, "b" : "7FFF8B846000", "vmaddr" : "7FFF88EC3000", "buildId" : "66095DC7653938F295EE458F15F6D014" }, { "path" : "/usr/lib/system/libsystem_notify.dylib", "machType" : 6, "b" : "7FFF88CB5000", "vmaddr" : "7FFF86332000", "buildId" : "D48BDE340F7E34CAA0FFC578E39987CC" }, { "path" : "/usr/lib/system/libsystem_platform.dylib", "machType" : 6, "b" : "7FFF85692000", "vmaddr" : "7FFF82D0F000", "buildId" : "29A905EF67773C3382B06C3A88C4BA15" }, { "path" : "/usr/lib/system/libsystem_pthread.dylib", "machType" : 6, "b" : "7FFF8AE3C000", "vmaddr" : "7FFF884B9000", "buildId" : "3DD1EF4C1D1B3ABF8CC6B3B1CEEE9559" }, { "path" : "/usr/lib/system/libsystem_sandbox.dylib", "machType" : 6, "b" : "7FFF84BC0000", "vmaddr" : "7FFF8223D000", "buildId" : "2A68B39CB7863A0587A256E688469FB8" }, { "path" : "/usr/lib/system/libsystem_secinit.dylib", "machType" : 6, "b" : "7FFF95EAA000", "vmaddr" : "7FFF93527000", "buildId" : "32B1A8C6DC843F4FB8CE9A52B47C3E6B" }, { "path" : "/usr/lib/system/libsystem_trace.dylib", "machType" : 6, "b" : "7FFF8313B000", "vmaddr" : "7FFF807B8000", "buildId" : "1DD0C1FD74E239499C2CB81D19C2CA5E" }, { "path" : "/usr/lib/system/libunc.dylib", "machType" : 6, "b" : "7FFF82D40000", "vmaddr" : "7FFF803BD000", "buildId" : "DDB1E947C77533B8B46163E5EB698F0E" }, { "path" : "/usr/lib/system/libunwind.dylib", "machType" : 6, "b" : "7FFF92EF1000", "vmaddr" : "7FFF9056E000", "buildId" : "F6EB48E54D12359AAB54C937FBBE9043" }, { "path" : "/usr/lib/system/libxpc.dylib", "machType" : 6, "b" : "7FFF8487A000", "vmaddr" : "7FFF81EF7000", "buildId" : "54D1328E054E3DAA89E2375722F9D18F" }, { "path" : "/usr/lib/libobjc.A.dylib", "machType" : 6, "b" : "7FFF95122000", "vmaddr" : "7FFF9279F000", "buildId" : "7489D2D61EFD3414B18D2AECCCC90286" }, { "path" : "/usr/lib/libauto.dylib", "machType" : 6, "b" : "7FFF8CB47000", "vmaddr" : "7FFF8A1C4000", "buildId" : "999E610F41FC32A3ADCA5EC049B65DFB" }, { "path" : "/usr/lib/libc++abi.dylib", "machType" : 6, "b" : "7FFF873C4000", "vmaddr" : "7FFF84A41000", "buildId" : "922EFB360E9E315B8270E81AC43472C0" }, { "path" : "/usr/lib/libDiagnosticMessagesClient.dylib", "machType" : 6, "b" : "7FFF8726F000", "vmaddr" : "7FFF848EC000", "buildId" : "4243B6B421E9355B9C5A95A216233B96" } ] }}
       mongod(_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE+0x3A) [0x10f6121aa]
       mongod(_ZN5mongo10logContextEPKc+0x171) [0x10f5b92f1]
       mongod(_ZN5mongo23msgassertedWithLocationEiPKcS1_j+0x301) [0x10f5a6531]
       mongod(_ZN5mongo23msgassertedWithLocationEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcj+0x18) [0x10f5a6228]
       mongod(_ZNK5mongo11BSONElement3chkEi+0x2F3) [0x10ec19b23]
       mongod(_ZNK5mongo11BSONElement5ArrayEv+0x24) [0x10ec320a4]
       mongod(_ZN5mongo8Pipeline23aggSupportsWriteConcernERKNS_7BSONObjE+0x57) [0x10f0a3f97]
       mongod(_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE+0x469) [0x10ed9adb9]
       mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE+0x964) [0x10ed99e84]
       mongod(_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE+0x23C) [0x10f28edac]
       mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xD3D) [0x10ef28fdd]
       mongod(_ZN5mongo23ServiceEntryPointMongod12_sessionLoopEPNS_9transport7SessionE+0x145) [0x10ec1c6c5]
       mongod(_ZN5mongo12_GLOBAL__N_17runFuncEPv+0x2D1) [0x10f5984a1]
       mongod(_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIRFPvS3_EJPN5mongo12_GLOBAL__N_17ContextEEEEEEEEES3_S3_+0x61) [0x10f598b11]
       libsystem_pthread.dylib(_pthread_body+0x83) [0x7fff8ae3f99d]
       libsystem_pthread.dylib(_pthread_body+0x0) [0x7fff8ae3f91a]
       libsystem_pthread.dylib(thread_start+0xD) [0x7fff8ae3d351]
      -----  END BACKTRACE  -----
      

      Show
      In mongo shell run: db.runCommand({aggregate: "test" , pipeline: {}}) mongod will report a stack trace of the triggered massert: 2016-08-12T15:20:31.243-0400 I - [conn1] Assertion: 13111:wrong type for field (pipeline) 3 != 4 src/mongo/bson/bsonelement.h 657 2016-08-12T15:20:31.259-0400 I CONTROL [conn1] 0x10f6121aa 0x10f5b92f1 0x10f5a6531 0x10f5a6228 0x10ec19b23 0x10ec320a4 0x10f0a3f97 0x10ed9adb9 0x10ed99e84 0x10f28edac 0x10ef28fdd 0x10ec1c6c5 0x10f5984a1 0x10f598b11 0x7fff8ae3f99d 0x7fff8ae3f91a 0x7fff8ae3d351 ----- BEGIN BACKTRACE ----- {"backtrace":[{"b":"10EC0E000","o":"A041AA","s":"_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE"},{"b":"10EC0E000","o":"9AB2F1","s":"_ZN5mongo10logContextEPKc"},{"b":"10EC0E000","o":"998531","s":"_ZN5mongo23msgassertedWithLocationEiPKcS1_j"},{"b":"10EC0E000","o":"998228","s":"_ZN5mongo23msgassertedWithLocationEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcj"},{"b":"10EC0E000","o":"BB23","s":"_ZNK5mongo11BSONElement3chkEi"},{"b":"10EC0E000","o":"240A4","s":"_ZNK5mongo11BSONElement5ArrayEv"},{"b":"10EC0E000","o":"495F97","s":"_ZN5mongo8Pipeline23aggSupportsWriteConcernERKNS_7BSONObjE"},{"b":"10EC0E000","o":"18CDB9","s":"_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE"},{"b":"10EC0E000","o":"18BE84","s":"_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE"},{"b":"10EC0E000","o":"680DAC","s":"_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE"},{"b":"10EC0E000","o":"31AFDD","s":"_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE"},{"b":"10EC0E000","o":"E6C5","s":"_ZN5mongo23ServiceEntryPointMongod12_sessionLoopEPNS_9transport7SessionE"},{"b":"10EC0E000","o":"98A4A1","s":"_ZN5mongo12_GLOBAL__N_17runFuncEPv"},{"b":"10EC0E000","o":"98AB11","s":"_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIRFPvS3_EJPN5mongo12_GLOBAL__N_17ContextEEEEEEEEES3_S3_"},{"b":"7FFF8AE3C000","o":"399D","s":"_pthread_body"},{"b":"7FFF8AE3C000","o":"391A","s":"_pthread_body"},{"b":"7FFF8AE3C000","o":"1351","s":"thread_start"}],"processInfo":{ "mongodbVersion" : "3.3.6-1038-ge541fb9", "gitVersion" : "e541fb9af35dde75b9c09f59260fa24735c815e1", "compiledModules" : [], "uname" : { "sysname" : "Darwin", "release" : "15.6.0", "version" : "Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64", "machine" : "x86_64" }, "somap" : [ { "path" : "/Users/kevin/mongo/./mongod", "machType" : 2, "b" : "10EC0E000", "vmaddr" : "100000000", "buildId" : "146E97FEDC803179A22768A89B5AC66E" }, { "path" : "/usr/lib/libSystem.B.dylib", "machType" : 6, "b" : "7FFF8F1D2000", "vmaddr" : "7FFF8C84F000", "buildId" : "ECAA07BEA1143461AA13C57838775FC2" }, { "path" : "/usr/lib/libc++.1.dylib", "machType" : 6, "b" : "7FFF962C1000", "vmaddr" : "7FFF9393E000", "buildId" : "8FC3D139805534989AC56467CB7F4D14" }, { "path" : "/usr/lib/system/libcache.dylib", "machType" : 6, "b" : "7FFF8612D000", "vmaddr" : "7FFF837AA000", "buildId" : "9548AAE92AB735259ECEA2A7C4688447" }, { "path" : "/usr/lib/system/libcommonCrypto.dylib", "machType" : 6, "b" : "7FFF87263000", "vmaddr" : "7FFF848E0000", "buildId" : "9373226134B43914B7A290A81A182DBA" }, { "path" : "/usr/lib/system/libcompiler_rt.dylib", "machType" : 6, "b" : "7FFF88B23000", "vmaddr" : "7FFF861A0000", "buildId" : "A13ECF69F59F38AE86097B731450FBCD" }, { "path" : "/usr/lib/system/libcopyfile.dylib", "machType" : 6, "b" : "7FFF94EBF000", "vmaddr" : "7FFF9253C000", "buildId" : "A48637BCF3F234F2BB684C65FD012832" }, { "path" : "/usr/lib/system/libcorecrypto.dylib", "machType" : 6, "b" : "7FFF84802000", "vmaddr" : "7FFF81E7F000", "buildId" : "B5C05FD7A540345A87BF8E41848A3C17" }, { "path" : "/usr/lib/system/libdispatch.dylib", "machType" : 6, "b" : "7FFF8B861000", "vmaddr" : "7FFF88EDE000", "buildId" : "C749985761A53D7DA5EA65DCC8C3DF92" }, { "path" : "/usr/lib/system/libdyld.dylib", "machType" : 6, "b" : "7FFF8AC71000", "vmaddr" : "7FFF882EE000", "buildId" : "1F9FCF2C5E943F2DB4A51238587AA5C6" }, { "path" : "/usr/lib/system/libkeymgr.dylib", "machType" : 6, "b" : "7FFF87153000", "vmaddr" : "7FFF847D0000", "buildId" : "8371CE545FDD3CE9B3DFE98C761B6FE0" }, { "path" : "/usr/lib/system/liblaunch.dylib", "machType" : 6, "b" : "7FFF97413000", "vmaddr" : "7FFF94A90000", "buildId" : "834ED60551143641AA4DECF31B801C50" }, { "path" : "/usr/lib/system/libmacho.dylib", "machType" : 6, "b" : "7FFF95A74000", "vmaddr" : "7FFF930F1000", "buildId" : "318264FA58F139D882851F6254EE410E" }, { "path" : "/usr/lib/system/libquarantine.dylib", "machType" : 6, "b" : "7FFF86447000", "vmaddr" : "7FFF83AC4000", "buildId" : "0F4169F00C843A25B3AEE47B3586D908" }, { "path" : "/usr/lib/system/libremovefile.dylib", "machType" : 6, "b" : "7FFF967AF000", "vmaddr" : "7FFF93E2C000", "buildId" : "552EF39E14D7363E90594565AC2F894E" }, { "path" : "/usr/lib/system/libsystem_asl.dylib", "machType" : 6, "b" : "7FFF93AAC000", "vmaddr" : "7FFF91129000", "buildId" : "41F8E11F1BD03F1DBA3AAA1577ED98A9" }, { "path" : "/usr/lib/system/libsystem_blocks.dylib", "machType" : 6, "b" : "7FFF940A3000", "vmaddr" : "7FFF91720000", "buildId" : "1244D9D5F6AA35BBB30786851C24B8E5" }, { "path" : "/usr/lib/system/libsystem_c.dylib", "machType" : 6, "b" : "7FFF86AD1000", "vmaddr" : "7FFF8414E000", "buildId" : "28733D22553E3CBC8D2CEDCEB46E46AF" }, { "path" : "/usr/lib/system/libsystem_configuration.dylib", "machType" : 6, "b" : "7FFF86EA1000", "vmaddr" : "7FFF8451E000", "buildId" : "3DEB7DF9680437E1BC830166882FF0FF" }, { "path" : "/usr/lib/system/libsystem_coreservices.dylib", "machType" : 6, "b" : "7FFF8A187000", "vmaddr" : "7FFF87804000", "buildId" : "1B3F5AFCFFCD3ECB8B9A5538366FB20D" }, { "path" : "/usr/lib/system/libsystem_coretls.dylib", "machType" : 6, "b" : "7FFF82BE4000", "vmaddr" : "7FFF80261000", "buildId" : "C90DAE384082381CA1852A6A8B677628" }, { "path" : "/usr/lib/system/libsystem_dnssd.dylib", "machType" : 6, "b" : "7FFF87271000", "vmaddr" : "7FFF848EE000", "buildId" : "8018999832B0316CB5C553857486713D" }, { "path" : "/usr/lib/system/libsystem_info.dylib", "machType" : 6, "b" : "7FFF8D254000", "vmaddr" : "7FFF8A8D1000", "buildId" : "FAA9226D64DE3769A6D86CABA4B7FF4D" }, { "path" : "/usr/lib/system/libsystem_kernel.dylib", "machType" : 6, "b" : "7FFF84C83000", "vmaddr" : "7FFF82300000", "buildId" : "C1A6A0B9186936ABB4A2D862EB09A4BE" }, { "path" : "/usr/lib/system/libsystem_m.dylib", "machType" : 6, "b" : "7FFF86CCB000", "vmaddr" : "7FFF84348000", "buildId" : "08E1A4B264483DFEA58CACC7335BE7E4" }, { "path" : "/usr/lib/system/libsystem_malloc.dylib", "machType" : 6, "b" : "7FFF8692D000", "vmaddr" : "7FFF83FAA000", "buildId" : "5748E8B2F81C34C68B13456213127678" }, { "path" : "/usr/lib/system/libsystem_network.dylib", "machType" : 6, "b" : "7FFF9403C000", "vmaddr" : "7FFF916B9000", "buildId" : "B52DAB7392DC3DA7B9F4B899D66445C1" }, { "path" : "/usr/lib/system/libsystem_networkextension.dylib", "machType" : 6, "b" : "7FFF8B846000", "vmaddr" : "7FFF88EC3000", "buildId" : "66095DC7653938F295EE458F15F6D014" }, { "path" : "/usr/lib/system/libsystem_notify.dylib", "machType" : 6, "b" : "7FFF88CB5000", "vmaddr" : "7FFF86332000", "buildId" : "D48BDE340F7E34CAA0FFC578E39987CC" }, { "path" : "/usr/lib/system/libsystem_platform.dylib", "machType" : 6, "b" : "7FFF85692000", "vmaddr" : "7FFF82D0F000", "buildId" : "29A905EF67773C3382B06C3A88C4BA15" }, { "path" : "/usr/lib/system/libsystem_pthread.dylib", "machType" : 6, "b" : "7FFF8AE3C000", "vmaddr" : "7FFF884B9000", "buildId" : "3DD1EF4C1D1B3ABF8CC6B3B1CEEE9559" }, { "path" : "/usr/lib/system/libsystem_sandbox.dylib", "machType" : 6, "b" : "7FFF84BC0000", "vmaddr" : "7FFF8223D000", "buildId" : "2A68B39CB7863A0587A256E688469FB8" }, { "path" : "/usr/lib/system/libsystem_secinit.dylib", "machType" : 6, "b" : "7FFF95EAA000", "vmaddr" : "7FFF93527000", "buildId" : "32B1A8C6DC843F4FB8CE9A52B47C3E6B" }, { "path" : "/usr/lib/system/libsystem_trace.dylib", "machType" : 6, "b" : "7FFF8313B000", "vmaddr" : "7FFF807B8000", "buildId" : "1DD0C1FD74E239499C2CB81D19C2CA5E" }, { "path" : "/usr/lib/system/libunc.dylib", "machType" : 6, "b" : "7FFF82D40000", "vmaddr" : "7FFF803BD000", "buildId" : "DDB1E947C77533B8B46163E5EB698F0E" }, { "path" : "/usr/lib/system/libunwind.dylib", "machType" : 6, "b" : "7FFF92EF1000", "vmaddr" : "7FFF9056E000", "buildId" : "F6EB48E54D12359AAB54C937FBBE9043" }, { "path" : "/usr/lib/system/libxpc.dylib", "machType" : 6, "b" : "7FFF8487A000", "vmaddr" : "7FFF81EF7000", "buildId" : "54D1328E054E3DAA89E2375722F9D18F" }, { "path" : "/usr/lib/libobjc.A.dylib", "machType" : 6, "b" : "7FFF95122000", "vmaddr" : "7FFF9279F000", "buildId" : "7489D2D61EFD3414B18D2AECCCC90286" }, { "path" : "/usr/lib/libauto.dylib", "machType" : 6, "b" : "7FFF8CB47000", "vmaddr" : "7FFF8A1C4000", "buildId" : "999E610F41FC32A3ADCA5EC049B65DFB" }, { "path" : "/usr/lib/libc++abi.dylib", "machType" : 6, "b" : "7FFF873C4000", "vmaddr" : "7FFF84A41000", "buildId" : "922EFB360E9E315B8270E81AC43472C0" }, { "path" : "/usr/lib/libDiagnosticMessagesClient.dylib", "machType" : 6, "b" : "7FFF8726F000", "vmaddr" : "7FFF848EC000", "buildId" : "4243B6B421E9355B9C5A95A216233B96" } ] }} mongod(_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE+0x3A) [0x10f6121aa] mongod(_ZN5mongo10logContextEPKc+0x171) [0x10f5b92f1] mongod(_ZN5mongo23msgassertedWithLocationEiPKcS1_j+0x301) [0x10f5a6531] mongod(_ZN5mongo23msgassertedWithLocationEiRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcj+0x18) [0x10f5a6228] mongod(_ZNK5mongo11BSONElement3chkEi+0x2F3) [0x10ec19b23] mongod(_ZNK5mongo11BSONElement5ArrayEv+0x24) [0x10ec320a4] mongod(_ZN5mongo8Pipeline23aggSupportsWriteConcernERKNS_7BSONObjE+0x57) [0x10f0a3f97] mongod(_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE+0x469) [0x10ed9adb9] mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE+0x964) [0x10ed99e84] mongod(_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE+0x23C) [0x10f28edac] mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xD3D) [0x10ef28fdd] mongod(_ZN5mongo23ServiceEntryPointMongod12_sessionLoopEPNS_9transport7SessionE+0x145) [0x10ec1c6c5] mongod(_ZN5mongo12_GLOBAL__N_17runFuncEPv+0x2D1) [0x10f5984a1] mongod(_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIRFPvS3_EJPN5mongo12_GLOBAL__N_17ContextEEEEEEEEES3_S3_+0x61) [0x10f598b11] libsystem_pthread.dylib(_pthread_body+0x83) [0x7fff8ae3f99d] libsystem_pthread.dylib(_pthread_body+0x0) [0x7fff8ae3f91a] libsystem_pthread.dylib(thread_start+0xD) [0x7fff8ae3d351] ----- END BACKTRACE -----
    • Sprint:
      Query 2016-09-19

      Description

      This function is triggers an massert if the pipeline in the command object is not an array. Instead, it should check the type and return a user-friendly error if necessary.

        Attachments

          Activity

            People

            Assignee:
            david.storch David Storch
            Reporter:
            kevin.albertson Kevin Albertson
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: