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

Fix destructor race in `ReplicaSetMonitorManager`

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.18, 3.6.9, 4.0.4, 4.1.4
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6, v3.4, v3.2
    • Sprint:
      Service Arch 2018-10-08
    • Linked BF Score:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: