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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

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

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: