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

aggregate cmd crashes server with empty pipeline argument

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: 2.1.1
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • ALL

      Run cmd:

      db.agg.runCommand("aggregate", {  pipeline:[{}] } )
      

      mongod output:

      mongod: src/third_party/boost/boost/smart_ptr/intrusive_ptr.hpp:161: T* boost::intrusive_ptr<T>::operator->() const [with T = mongo::DocumentSource]: Assertion `px != 0' failed.
      Fri Jun  8 11:35:24 Got signal: 6 (Aborted).
      
      Fri Jun  8 11:35:24 Backtrace:
      0x7b3913 0x57ad90 0x7f575fc38420 0x7f575fc383a5 0x7f575fc3bb0b 0x7f575fc30d4d 0x5670b4 0x6639aa 0x8bdc95 0x64f92f 0x650480 0x651554 0x9b915a 0x9bbd5f 0x80b8c5 0x58a18d 0x92cdf5 0x7f576074befc 0x7f575fce559d 
       ./mongod(_ZN5mongo15printStackTraceERSo+0x23) [0x7b3913]
       ./mongod(_ZN5mongo10abruptQuitEi+0x350) [0x57ad90]
       /lib/x86_64-linux-gnu/libc.so.6(+0x36420) [0x7f575fc38420]
       /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f575fc383a5]
       /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f575fc3bb0b]
       /lib/x86_64-linux-gnu/libc.so.6(__assert_fail+0xdd) [0x7f575fc30d4d]
       ./mongod() [0x5670b4]
       ./mongod(_ZN5mongo8Pipeline12parseCommandERSsRNS_7BSONObjERKN5boost13intrusive_ptrINS_17ExpressionContextEEE+0xb5a) [0x6639aa]
       ./mongod(_ZN5mongo15PipelineCommand3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x55) [0x8bdc95]
       ./mongod(_ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRNS_14BSONObjBuilderEb+0x3f) [0x64f92f]
       ./mongod(_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x7b0) [0x650480]
       ./mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x264) [0x651554]
       ./mongod(_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x3a) [0x9b915a]
       ./mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_+0x70f) [0x9bbd5f]
       ./mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xab5) [0x80b8c5]
       ./mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x7d) [0x58a18d]
       ./mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x2c5) [0x92cdf5]
       /lib/x86_64-linux-gnu/libpthread.so.0(+0x7efc) [0x7f576074befc]
       /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f575fce559d]
      

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: