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

Fix destructor race in `ReplicaSetMonitorManager`

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.18, 3.6.9, 4.0.4, 4.1.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6, v3.4, v3.2
    • Service Arch 2018-10-08
    • 12

      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.

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

              Created:
              Updated:
              Resolved: