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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.0-rc2
    • Affects Version/s: 3.6.0-rc1
    • Component/s: Querying
    • None
    • Fully Compatible
    • ALL
    • 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 }}]});
    • Query 2017-11-13
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

              Assignee:
              James Wahlin
              Reporter:
              James Wahlin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: