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

Invalid $expr within $and can segfault on call to optimize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.0-rc1
    • Fix Version/s: 3.6.0-rc2
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      db.coll.drop();
      db.coll.insert({});
      db.coll.find({$and: [{x: 1}, {$expr: { $anyElementTrue: undefined }}]});
      

      Show
      db.coll.drop(); db.coll.insert({}); db.coll.find({$and: [{x: 1}, {$expr: { $anyElementTrue: undefined }}]});
    • Sprint:
      Query 2017-11-13
    • Linked BF Score:
      0

      Description

      This is only an issue in 3.5/3.6 and not in 3.4 or earlier.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: