Take a shared_ptr to Trackers in IndexBuildsCoordinator before calling waitUntilNoIndexBuildsRemain

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.9
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-03-11
    • 83
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      We have memory errors in the IndexBuildsCoordinator's use of the CollectionIndexBuildsTracker and DatabaseIndexBuildsTracker objects where we call waitUntilNoIndexBuildsRemain through hash map iterators rather than acquiring a safe shared_ptr to call wait upon, leading to a use after free when the entry is removed from the hash map and the caller of waitUntilNoIndexBuildsRemain does not have a shared_ptr instance to keep the object in memory.

            Assignee:
            Dianna Hohensee (Inactive)
            Reporter:
            Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: