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

Segmentation fault if adding a field to a document that contains only metadata

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.15
    • Fix Version/s: 3.4.0-rc3
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      db.text.drop()
       
      assert.writeOK(db.text.insert({ "_id" : 1, "title" : "cakes and ale" }))
      assert.writeOK(db.text.insert({ "_id" : 2, "title" : "more cakes" }))
      assert.writeOK(db.text.insert({ "_id" : 3, "title" : "bread" }))
      assert.writeOK(db.text.insert({ "_id" : 4, "title" : "some cakes" }))
       
      assert.commandWorked(db.text.createIndex({ title : "text" }))
       
      // fooScore works as expected if used in a $group accumulator
      shellPrint(db.text.aggregate(
         [
           { $match: { $text: { $search: "cake" } } },
           { $addFields: { fooScore: { $meta: "textScore" }}},
           { $group: {
               _id: "$_id",
               score: { $sum: "$fooScore"},
               count: { $sum: 1 }
           }}
         ]
      ))
       
      // mongod will seg fault if the fooScore is used in the $group _id
      shellPrint(db.text.aggregate(
         [
           { $match: { $text: { $search: "cake" } } },
           { $addFields: { fooScore: { $meta: "textScore" }}},
           { $group: {
             _id: "$fooScore",
             count: { $sum: 1 }
          }}
         ]
      ))
      

      Show
      db.text.drop() assert.writeOK(db.text.insert({ "_id" : 1, "title" : "cakes and ale" })) assert.writeOK(db.text.insert({ "_id" : 2, "title" : "more cakes" })) assert.writeOK(db.text.insert({ "_id" : 3, "title" : "bread" })) assert.writeOK(db.text.insert({ "_id" : 4, "title" : "some cakes" }))   assert.commandWorked(db.text.createIndex({ title : "text" }))   // fooScore works as expected if used in a $group accumulator shellPrint(db.text.aggregate( [ { $match: { $text: { $search: "cake" } } }, { $addFields: { fooScore: { $meta: "textScore" }}}, { $group: { _id: "$_id", score: { $sum: "$fooScore"}, count: { $sum: 1 } }} ] ))   // mongod will seg fault if the fooScore is used in the $group _id shellPrint(db.text.aggregate( [ { $match: { $text: { $search: "cake" } } }, { $addFields: { fooScore: { $meta: "textScore" }}}, { $group: { _id: "$fooScore", count: { $sum: 1 } }} ] ))
    • Sprint:
      Query 2016-10-31, Query 2016-11-21

      Description

      It is possible for some aggregation pipelines to involve documents without any fields (such as [{$group: {_id: null, count: {$sum: 1}]}}). Now that we added the $addFields stage, it's possible for an empty document to be mutated (see below for why this was not possible before). The way that $addFields adds fields to the document involves keeping around the original Document so that we can later preserve the metadata from that document. This means that when we add a field to the new MutableDocument, it has to copy the underlying storage for the original inputDoc. During this process, it will try to copy the buffer usually filled with the fields of the document, but that buffer was initialized to null, and is lazily allocated, only once a field is added to the document. Thus, when we try to copy the buffer to add the new field, we dereference the null pointer.

      Original Description

      As a possible workaround for SERVER-26461 I tried adding textScore using the new $addFields expression and then grouping on this field.

      This causes a consistent seg fault in 3.3.15 (OS X 10.11.6):

      2016-10-05T16:43:39.066+1100 F -        [conn1] Invalid access at address: 0x0
      2016-10-05T16:43:39.091+1100 F -        [conn1] Got signal: 11 (Segmentation fault: 11).
       
       0x1090523aa 0x109051da0 0x7fff9c9cf52a 0x18 0x1089570d1 0x1089504f2 0x10897fc99 0x108a4a47a 0x108a42a6d 0x108a4323a 0x108a4305c 0x1089d2d09 0x10898ba8b 0x10898b97f 0x108a4ff11 0x10880ca31 0x10880c90f 0x10880d17d 0x108ac0bde 0x108ac0719 0x10877a09c 0x1087764b6 0x10871eb16 0x10871d892 0x108c52c29 0x1088c8476 0x108582a8a 0x10858333b 0x108fc04d6 0x108fc0b41 0x7fff90bca99d 0x7fff90bca91a 0x7fff90bc8351
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"108574000","o":"ADE3AA","s":"_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE"},{"b":"108574000","o":"ADDDA0","s":"_ZN5mongo12_GLOBAL__N_124abruptQuitWithAddrSignalEiP9__siginfoPv"},{"b":"7FFF9C9CD000","o":"252A","s":"_sigtramp"},{"b":"0","o":"18"},{"b":"108574000","o":"3E30D1","s":"_ZNK5mongo15DocumentStorage5cloneEv"},{"b":"108574000","o":"3DC4F2","s":"_ZN5mongo15MutableDocument7storageEv"},{"b":"108574000","o":"40BC99","s":"_ZN5mongo15MutableDocument8setFieldENS_10StringDataERKNS_5ValueE"},{"b":"108574000","o":"4D647A","s":"_ZNK5mongo29parsed_aggregation_projection13InclusionNode17addComputedFieldsEPNS_15MutableDocumentEPNS_9VariablesE"},{"b":"108574000","o":"4CEA6D","s":"_ZNK5mongo29parsed_aggregation_projection15ParsedAddFields15applyProjectionENS_8DocumentEPNS_9VariablesE"},{"b":"108574000","o":"4CF23A","s":"_ZNK5mongo29parsed_aggregation_projection15ParsedAddFields15applyProjectionENS_8DocumentE"},{"b":"108574000","o":"4CF05C","s":"_ZN5mongo29parsed_aggregation_projection27ParsedAggregationProjection19applyTransformationENS_8DocumentE"},{"b":"108574000","o":"45ED09","s":"_ZN5mongo42DocumentSourceSingleDocumentTransformation7getNextEv"},{"b":"108574000","o":"417A8B","s":"_ZN5mongo19DocumentSourceGroup10initializeEv"},{"b":"108574000","o":"41797F","s":"_ZN5mongo19DocumentSourceGroup7getNextEv"},{"b":"108574000","o":"4DBF11","s":"_ZN5mongo8Pipeline7getNextEv"},{"b":"108574000","o":"298A31","s":"_ZN5mongo18PipelineProxyStage11getNextBsonEv"},{"b":"108574000","o":"29890F","s":"_ZN5mongo18PipelineProxyStage6doWorkEPm"},{"b":"108574000","o":"29917D","s":"_ZN5mongo9PlanStage4workEPm"},{"b":"108574000","o":"54CBDE","s":"_ZN5mongo12PlanExecutor11getNextImplEPNS_11SnapshottedINS_7BSONObjEEEPNS_8RecordIdE"},{"b":"108574000","o":"54C719","s":"_ZN5mongo12PlanExecutor7getNextEPNS_7BSONObjEPNS_8RecordIdE"},{"b":"108574000","o":"20609C","s":"_ZN5mongo12_GLOBAL__N_115PipelineCommand9runParsedEPNS_16OperationContextERKNS_15NamespaceStringERKNS_18AggregationRequestERNS_7BSONObjERNSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEERNS_14BSONObjBuilderE"},{"b":"108574000","o":"2024B6","s":"_ZN5mongo12_GLOBAL__N_115PipelineCommand3runEPNS_16OperationContextERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERNS_7BSONObjEiRSA_RNS_14BSONObjBuilderE"},{"b":"108574000","o":"1AAB16","s":"_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE"},{"b":"108574000","o":"1A9892","s":"_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE"},{"b":"108574000","o":"6DEC29","s":"_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE"},{"b":"108574000","o":"354476","s":"_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE"},{"b":"108574000","o":"EA8A","s":"_ZN5mongo23ServiceEntryPointMongod12_sessionLoopEPNS_9transport7SessionE"},{"b":"108574000","o":"F33B","s":"_ZNSt3__110__function6__funcIZN5mongo23ServiceEntryPointMongod12startSessionEONS2_9transport7SessionEE3$_0NS_9allocatorIS7_EEFvPS5_EEclEOSA_"},{"b":"108574000","o":"A4C4D6","s":"_ZN5mongo12_GLOBAL__N_17runFuncEPv"},{"b":"108574000","o":"A4CB41","s":"_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIRFPvS3_EJPN5mongo12_GLOBAL__N_17ContextEEEEEEEEES3_S3_"},{"b":"7FFF90BC7000","o":"399D","s":"_pthread_body"},{"b":"7FFF90BC7000","o":"391A","s":"_pthread_body"},{"b":"7FFF90BC7000","o":"1351","s":"thread_start"}],"processInfo":{ "mongodbVersion" : "3.3.15", "gitVersion" : "520f5571d039b57cf9c319b49654909828971073", "compiledModules" : [], "uname" : { "sysname" : "Darwin", "release" : "15.6.0", "version" : "Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64", "machine" : "x86_64" }, "somap" : [ { "path" : "/usr/local/bin/mongod", "machType" : 2, "b" : "108574000", "vmaddr" : "100000000", "buildId" : "11E85F5536F739ABA7B706649D6E8AB9" }, { "path" : "/usr/lib/libssl.0.9.8.dylib", "machType" : 6, "b" : "7FFF9BD97000", "vmaddr" : "7FFF936AF000", "buildId" : "C047F10DA92936C883DEE8BB7183A158" }, { "path" : "/usr/lib/libcrypto.0.9.8.dylib", "machType" : 6, "b" : "7FFF91B4B000", "vmaddr" : "7FFF89463000", "buildId" : "D68067ADD1E03196979651BE9B969C8E" }, { "path" : "/usr/lib/libSystem.B.dylib", "machType" : 6, "b" : "7FFF9BFF5000", "vmaddr" : "7FFF9390D000", "buildId" : "012548CD614D3AF0B3B1676F427D2CD6" }, { "path" : "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation", "machType" : 6, "b" : "7FFF95561000", "vmaddr" : "7FFF8CE79000", "buildId" : "943A1383DA6A3DC0ABCDD9AEB3D0D34D" }, { "path" : "/System/Library/Frameworks/Security.framework/Versions/A/Security", "machType" : 6, "b" : "7FFF9C5DE000", "vmaddr" : "7FFF93EF6000", "buildId" : "E2E553E728C43296B3B6BB1B3CA73943" }, { "path" : "/usr/lib/libc++.1.dylib", "machType" : 6, "b" : "7FFF9BDE8000", "vmaddr" : "7FFF93700000", "buildId" : "8FC3D139805534989AC56467CB7F4D14" }, { "path" : "/System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent", "machType" : 6, "b" : "7FFF9D852000", "vmaddr" : "7FFF9516A000", "buildId" : "0239494EFEFE39BC9FC7E251BA5128F1" }, { "path" : "/usr/lib/libz.1.dylib", "machType" : 6, "b" : "7FFF93CDE000", "vmaddr" : "7FFF8B5F6000", "buildId" : "B3EBB42F48E332879F0D308E04D407AC" }, { "path" : "/usr/lib/system/libcache.dylib", "machType" : 6, "b" : "7FFF90F95000", "vmaddr" : "7FFF888AD000", "buildId" : "9548AAE92AB735259ECEA2A7C4688447" }, { "path" : "/usr/lib/system/libcommonCrypto.dylib", "machType" : 6, "b" : "7FFF89B2C000", "vmaddr" : "7FFF81444000", "buildId" : "9373226134B43914B7A290A81A182DBA" }, { "path" : "/usr/lib/system/libcompiler_rt.dylib", "machType" : 6, "b" : "7FFF90DB6000", "vmaddr" : "7FFF886CE000", "buildId" : "A13ECF69F59F38AE86097B731450FBCD" }, { "path" : "/usr/lib/system/libcopyfile.dylib", "machType" : 6, "b" : "7FFF8921E000", "vmaddr" : "7FFF80B36000", "buildId" : "A48637BCF3F234F2BB684C65FD012832" }, { "path" : "/usr/lib/system/libcorecrypto.dylib", "machType" : 6, "b" : "7FFF94CBB000", "vmaddr" : "7FFF8C5D3000", "buildId" : "B5C05FD7A540345A87BF8E41848A3C17" }, { "path" : "/usr/lib/system/libdispatch.dylib", "machType" : 6, "b" : "7FFF9E9CD000", "vmaddr" : "7FFF962E5000", "buildId" : "C749985761A53D7DA5EA65DCC8C3DF92" }, { "path" : "/usr/lib/system/libdyld.dylib", "machType" : 6, "b" : "7FFF91B43000", "vmaddr" : "7FFF8945B000", "buildId" : "25D2822599AE3A04B98CACFF47D6D9B0" }, { "path" : "/usr/lib/system/libkeymgr.dylib", "machType" : 6, "b" : "7FFF90BD1000", "vmaddr" : "7FFF884E9000", "buildId" : "8371CE545FDD3CE9B3DFE98C761B6FE0" }, { "path" : "/usr/lib/system/liblaunch.dylib", "machType" : 6, "b" : "7FFF908DA000", "vmaddr" : "7FFF881F2000", "buildId" : "834ED60551143641AA4DECF31B801C50" }, { "path" : "/usr/lib/system/libmacho.dylib", "machType" : 6, "b" : "7FFF96477000", "vmaddr" : "7FFF8DD8F000", "buildId" : "318264FA58F139D882851F6254EE410E" }, { "path" : "/usr/lib/system/libquarantine.dylib", "machType" : 6, "b" : "7FFF94B30000", "vmaddr" : "7FFF8C448000", "buildId" : "0F4169F00C843A25B3AEE47B3586D908" }, { "path" : "/usr/lib/system/libremovefile.dylib", "machType" : 6, "b" : "7FFF99BCF000", "vmaddr" : "7FFF914E7000", "buildId" : "552EF39E14D7363E90594565AC2F894E" }, { "path" : "/usr/lib/system/libsystem_asl.dylib", "machType" : 6, "b" : "7FFF95E5D000", "vmaddr" : "7FFF8D775000", "buildId" : "41F8E11F1BD03F1DBA3AAA1577ED98A9" }, { "path" : "/usr/lib/system/libsystem_blocks.dylib", "machType" : 6, "b" : "7FFF9C522000", "vmaddr" : "7FFF93E3A000", "buildId" : "1244D9D5F6AA35BBB30786851C24B8E5" }, { "path" : "/usr/lib/system/libsystem_c.dylib", "machType" : 6, "b" : "7FFF95B97000", "vmaddr" : "7FFF8D4AF000", "buildId" : "28733D22553E3CBC8D2CEDCEB46E46AF" }, { "path" : "/usr/lib/system/libsystem_configuration.dylib", "machType" : 6, "b" : "7FFF95529000", "vmaddr" : "7FFF8CE41000", "buildId" : "3DEB7DF9680437E1BC830166882FF0FF" }, { "path" : "/usr/lib/system/libsystem_coreservices.dylib", "machType" : 6, "b" : "7FFF88889000", "vmaddr" : "7FFF801A1000", "buildId" : "1B3F5AFCFFCD3ECB8B9A5538366FB20D" }, { "path" : "/usr/lib/system/libsystem_coretls.dylib", "machType" : 6, "b" : "7FFF9CB47000", "vmaddr" : "7FFF9445F000", "buildId" : "C90DAE384082381CA1852A6A8B677628" }, { "path" : "/usr/lib/system/libsystem_dnssd.dylib", "machType" : 6, "b" : "7FFF8DF48000", "vmaddr" : "7FFF85860000", "buildId" : "8018999832B0316CB5C553857486713D" }, { "path" : "/usr/lib/system/libsystem_info.dylib", "machType" : 6, "b" : "7FFF9D4D0000", "vmaddr" : "7FFF94DE8000", "buildId" : "FAA9226D64DE3769A6D86CABA4B7FF4D" }, { "path" : "/usr/lib/system/libsystem_kernel.dylib", "machType" : 6, "b" : "7FFF9BE3C000", "vmaddr" : "7FFF93754000", "buildId" : "A3F069EA6A4135CABDF8187E0209B3E2" }, { "path" : "/usr/lib/system/libsystem_m.dylib", "machType" : 6, "b" : "7FFF99B34000", "vmaddr" : "7FFF9144C000", "buildId" : "08E1A4B264483DFEA58CACC7335BE7E4" }, { "path" : "/usr/lib/system/libsystem_malloc.dylib", "machType" : 6, "b" : "7FFF930A9000", "vmaddr" : "7FFF8A9C1000", "buildId" : "5748E8B2F81C34C68B13456213127678" }, { "path" : "/usr/lib/system/libsystem_network.dylib", "machType" : 6, "b" : "7FFF95B01000", "vmaddr" : "7FFF8D419000", "buildId" : "B52DAB7392DC3DA7B9F4B899D66445C1" }, { "path" : "/usr/lib/system/libsystem_networkextension.dylib", "machType" : 6, "b" : "7FFF948AC000", "vmaddr" : "7FFF8C1C4000", "buildId" : "66095DC7653938F295EE458F15F6D014" }, { "path" : "/usr/lib/system/libsystem_notify.dylib", "machType" : 6, "b" : "7FFF8A49B000", "vmaddr" : "7FFF81DB3000", "buildId" : "D48BDE340F7E34CAA0FFC578E39987CC" }, { "path" : "/usr/lib/system/libsystem_platform.dylib", "machType" : 6, "b" : "7FFF9C9CD000", "vmaddr" : "7FFF942E5000", "buildId" : "29A905EF67773C3382B06C3A88C4BA15" }, { "path" : "/usr/lib/system/libsystem_pthread.dylib", "machType" : 6, "b" : "7FFF90BC7000", "vmaddr" : "7FFF884DF000", "buildId" : "3DD1EF4C1D1B3ABF8CC6B3B1CEEE9559" }, { "path" : "/usr/lib/system/libsystem_sandbox.dylib", "machType" : 6, "b" : "7FFF8C6BA000", "vmaddr" : "7FFF83FD2000", "buildId" : "2A68B39CB7863A0587A256E688469FB8" }, { "path" : "/usr/lib/system/libsystem_secinit.dylib", "machType" : 6, "b" : "7FFF930A6000", "vmaddr" : "7FFF8A9BE000", "buildId" : "32B1A8C6DC843F4FB8CE9A52B47C3E6B" }, { "path" : "/usr/lib/system/libsystem_trace.dylib", "machType" : 6, "b" : "7FFF94CA2000", "vmaddr" : "7FFF8C5BA000", "buildId" : "E9311C039E613B13AF3FA64956FFF269" }, { "path" : "/usr/lib/system/libunc.dylib", "machType" : 6, "b" : "7FFF89BCC000", "vmaddr" : "7FFF814E4000", "buildId" : "DDB1E947C77533B8B46163E5EB698F0E" }, { "path" : "/usr/lib/system/libunwind.dylib", "machType" : 6, "b" : "7FFF9AC0A000", "vmaddr" : "7FFF92522000", "buildId" : "F6EB48E54D12359AAB54C937FBBE9043" }, { "path" : "/usr/lib/system/libxpc.dylib", "machType" : 6, "b" : "7FFF9D0B5000", "vmaddr" : "7FFF949CD000", "buildId" : "54D1328E054E3DAA89E2375722F9D18F" }, { "path" : "/usr/lib/libobjc.A.dylib", "machType" : 6, "b" : "7FFF8C09C000", "vmaddr" : "7FFF839B4000", "buildId" : "7489D2D61EFD3414B18D2AECCCC90286" }, { "path" : "/usr/lib/libauto.dylib", "machType" : 6, "b" : "7FFF8ABE7000", "vmaddr" : "7FFF824FF000", "buildId" : "999E610F41FC32A3ADCA5EC049B65DFB" }, { "path" : "/usr/lib/libc++abi.dylib", "machType" : 6, "b" : "7FFF9BF8F000", "vmaddr" : "7FFF938A7000", "buildId" : "922EFB360E9E315B8270E81AC43472C0" }, { "path" : "/usr/lib/libDiagnosticMessagesClient.dylib", "machType" : 6, "b" : "7FFF8E856000", "vmaddr" : "7FFF8616E000", "buildId" : "4243B6B421E9355B9C5A95A216233B96" }, { "path" : "/usr/lib/libicucore.A.dylib", "machType" : 6, "b" : "7FFF8E1CA000", "vmaddr" : "7FFF85AE2000", "buildId" : "3899B14638403D4A8C4AFE391D5D25C7" }, { "path" : "/usr/lib/libbsm.0.dylib", "machType" : 6, "b" : "7FFF90815000", "vmaddr" : "7FFF8812D000", "buildId" : "7E14504CA8B03574B6EB5D5FABC72926" }, { "path" : "/usr/lib/libxar.1.dylib", "machType" : 6, "b" : "7FFF9CEA5000", "vmaddr" : "7FFF947BD000", "buildId" : "03207F662C4A3DBD8D8170F4C85903C4" }, { "path" : "/usr/lib/libsqlite3.dylib", "machType" : 6, "b" : "7FFF906AF000", "vmaddr" : "7FFF87FC7000", "buildId" : "280D67B8F93D3587A14619F36C817548" }, { "path" : "/usr/lib/libpam.2.dylib", "machType" : 6, "b" : "7FFF8C5E0000", "vmaddr" : "7FFF83EF8000", "buildId" : "CFCD19BD87BC3F2BBB1C4C23E8E55F1A" }, { "path" : "/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit", "machType" : 6, "b" : "7FFF8E858000", "vmaddr" : "7FFF86170000", "buildId" : "A509D3AE9D4831B789C7326A7A2007B2" }, { "path" : "/usr/lib/libOpenScriptingUtil.dylib", "machType" : 6, "b" : "7FFF95B68000", "vmaddr" : "7FFF8D480000", "buildId" : "AD0DAC8A98493077999F9AEC6112BDAB" }, { "path" : "/usr/lib/libbz2.1.0.dylib", "machType" : 6, "b" : "7FFF9ABFB000", "vmaddr" : "7FFF92513000", "buildId" : "28E54258C0FE38D4AB761734CACCB344" }, { "path" : "/usr/lib/libxml2.2.dylib", "machType" : 6, "b" : "7FFF93BEC000", "vmaddr" : "7FFF8B504000", "buildId" : "B3B032927E1A34AB888C3D49D63D60C6" }, { "path" : "/usr/lib/libenergytrace.dylib", "machType" : 6, "b" : "7FFF8E3E7000", "vmaddr" : "7FFF85CFF000", "buildId" : "0A491CA734513FD5999A58AB4362682B" }, { "path" : "/usr/lib/system/libkxld.dylib", "machType" : 6, "b" : "7FFF9C1A9000", "vmaddr" : "7FFF93AC1000", "buildId" : "9F422A08021236E1BFF81491C70EBFCA" } ] }}
       mongod(_ZN5mongo15printStackTraceERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEE+0x3A) [0x1090523aa]
       mongod(_ZN5mongo12_GLOBAL__N_124abruptQuitWithAddrSignalEiP9__siginfoPv+0x140) [0x109051da0]
       libsystem_platform.dylib(_sigtramp+0x1A) [0x7fff9c9cf52a]
       ??? [0x18]
       mongod(_ZNK5mongo15DocumentStorage5cloneEv+0xB1) [0x1089570d1]
       mongod(_ZN5mongo15MutableDocument7storageEv+0xE2) [0x1089504f2]
       mongod(_ZN5mongo15MutableDocument8setFieldENS_10StringDataERKNS_5ValueE+0x19) [0x10897fc99]
       mongod(_ZNK5mongo29parsed_aggregation_projection13InclusionNode17addComputedFieldsEPNS_15MutableDocumentEPNS_9VariablesE+0x2CA) [0x108a4a47a]
       mongod(_ZNK5mongo29parsed_aggregation_projection15ParsedAddFields15applyProjectionENS_8DocumentEPNS_9VariablesE+0x7D) [0x108a42a6d]
       mongod(_ZNK5mongo29parsed_aggregation_projection15ParsedAddFields15applyProjectionENS_8DocumentE+0x7A) [0x108a4323a]
       mongod(_ZN5mongo29parsed_aggregation_projection27ParsedAggregationProjection19applyTransformationENS_8DocumentE+0x3C) [0x108a4305c]
       mongod(_ZN5mongo42DocumentSourceSingleDocumentTransformation7getNextEv+0x79) [0x1089d2d09]
       mongod(_ZN5mongo19DocumentSourceGroup10initializeEv+0x4B) [0x10898ba8b]
       mongod(_ZN5mongo19DocumentSourceGroup7getNextEv+0x2F) [0x10898b97f]
       mongod(_ZN5mongo8Pipeline7getNextEv+0x41) [0x108a4ff11]
       mongod(_ZN5mongo18PipelineProxyStage11getNextBsonEv+0x31) [0x10880ca31]
       mongod(_ZN5mongo18PipelineProxyStage6doWorkEPm+0x10F) [0x10880c90f]
       mongod(_ZN5mongo9PlanStage4workEPm+0x5D) [0x10880d17d]
       mongod(_ZN5mongo12PlanExecutor11getNextImplEPNS_11SnapshottedINS_7BSONObjEEEPNS_8RecordIdE+0x42E) [0x108ac0bde]
       mongod(_ZN5mongo12PlanExecutor7getNextEPNS_7BSONObjEPNS_8RecordIdE+0x49) [0x108ac0719]
       mongod(_ZN5mongo12_GLOBAL__N_115PipelineCommand9runParsedEPNS_16OperationContextERKNS_15NamespaceStringERKNS_18AggregationRequestERNS_7BSONObjERNSt3__112basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEERNS_14BSONObjBuilderE+0x36BC) [0x10877a09c]
       mongod(_ZN5mongo12_GLOBAL__N_115PipelineCommand3runEPNS_16OperationContextERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERNS_7BSONObjEiRSA_RNS_14BSONObjBuilderE+0x2E6) [0x1087764b6]
       mongod(_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE+0x806) [0x10871eb16]
       mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE+0xAD2) [0x10871d892]
       mongod(_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE+0x259) [0x108c52c29]
       mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x1496) [0x1088c8476]
       mongod(_ZN5mongo23ServiceEntryPointMongod12_sessionLoopEPNS_9transport7SessionE+0x17A) [0x108582a8a]
       mongod(_ZNSt3__110__function6__funcIZN5mongo23ServiceEntryPointMongod12startSessionEONS2_9transport7SessionEE3$_0NS_9allocatorIS7_EEFvPS5_EEclEOSA_+0x1B) [0x10858333b]
       mongod(_ZN5mongo12_GLOBAL__N_17runFuncEPv+0x276) [0x108fc04d6]
       mongod(_ZNSt3__114__thread_proxyINS_5tupleIJNS_6__bindIRFPvS3_EJPN5mongo12_GLOBAL__N_17ContextEEEEEEEEES3_S3_+0x61) [0x108fc0b41]
       libsystem_pthread.dylib(_pthread_body+0x83) [0x7fff90bca99d]
       libsystem_pthread.dylib(_pthread_body+0x0) [0x7fff90bca91a]
       libsystem_pthread.dylib(thread_start+0xD) [0x7fff90bc8351]
      -----  END BACKTRACE  -----
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marko.vojvodic Marko Vojvodic
              Reporter:
              stennie Stennie Steneker
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: