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

Fix destructor race in `ReplicaSetMonitorManager`

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.4.18, 3.6.9, 4.0.4, 4.1.4
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6, v3.4, v3.2
    • Service Arch 2018-10-08
    • 12

    Description

      The `_taskExecutor` pointer is destroyed before the `_monitors` members which refer to it, causing them to trip over uses of destroyed memory in some cases.

      Simply reversing the order of these members should be sufficient to effect a fix.

      Attachments

        Activity

          People

            adam.martin@mongodb.com ADAM Martin (Inactive)
            adam.martin@mongodb.com ADAM Martin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: