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

Fix-after-free of OperationContext in query_planner_bm

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • 200

      When originally written, query_planner_bm had a helper which constructed a CanonicalQuery. It constructed an OperationContext in the helper, which was destroyed upon the function return. This was ok since nothing in the query planner referenced the opCtx. This changed in SERVER-89583 which introduced interrupt checks during bounds building.

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: