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

Shutdown race with use after free in DeadlineFuture

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.12, 5.2.2
    • None
    • Fully Compatible
    • ALL
    • v5.2, v4.4
    • 170

    Description

      The callback in DeadlineFuture is using the _mutex before checking that the callback itself is canceled.
      We do wait properly in the HealthObserver for the thread pool termination, the DeadlineFuture instance is guaranteed to be available if the callback args are checked. Also, would be nice to check the cancelation token as well.

      Attachments

        Activity

          People

            andrew.shuvalov@mongodb.com Andrew Shuvalov
            andrew.shuvalov@mongodb.com Andrew Shuvalov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: