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

Shutdown race with use after free in DeadlineFuture

    • Fully Compatible
    • ALL
    • v5.2, v4.4
    • 170

      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.

            Assignee:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Reporter:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: