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

[v7.0] Mongod crashes when running aggregation

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 7.0.13
    • Affects Version/s: 7.0.12
    • Component/s: None
    • None
    • Environment:
      Ubuntu 20.04.5 LTS Focal, Windows 10 Enterprise
    • Query Execution
    • Fully Compatible
    • ALL
    • Hide

      Import attached json data into a collection and execute above mentioned query from Mongo Compass/NodeJS.

      Show
      Import attached json data into a collection and execute above mentioned query from Mongo Compass/NodeJS.
    • QE 2024-07-22

      Mongo DB server process crashes on execution of below query in version 7.0.12 Community Edition, This is happening on Ubuntu Linux, Microsoft Windows and Mac OS. The same query is working fine on MongoDB version 6.0.2 Community Edition.

       

      [
        {
          '$group': {
            '_id': '$group', 
            'keys': {
              '$push':
      {           'k': '$key',            'v': '$text'         }
            }
          }
        }, {
          '$group': {
            '_id': null, 
            'data1': {
              '$push': {
                'k': '$_id', 
                'v':
      {             '$arrayToObject': '$keys'           }
              }
            }
          }
        }
      ]
      

       

       

      Error log from Linux is below:

      *************************************

      {"t":

      {"$date":"2024-07-08T17:30:45.012+07:00"}

      ,"s":"F",  "c":"CONTROL",  "id":6384300, "ctx":"conn12","msg":"Writing fatal message","attr":{"message":"Invalid access at address: 0x12200000001\n"}}

      {"t":

      {"$date":"2024-07-08T17:30:45.012+07:00"}

      ,"s":"F",  "c":"CONTROL",  "id":6384300, "ctx":"conn12","msg":"Writing fatal message","attr":{"message":"Got signal: 11 (Segmentation fault).\n"}}

      *************************************

        1. data.json
          45 kB
          orphin dsilva

            Assignee:
            adi.agrawal@mongodb.com Adi Agrawal
            Reporter:
            orphin.dsilva.spean@gmail.com orphin dsilva
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: