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

Shutting down SingleServerDiscoveryMonitor can lead to a nullptr dereference

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding 2021-06-28
    • 12

    Description

      SingleServerDiscoveryMonitor::_executor is reset as part of SingleServerDiscoveryMonitor::shutdown() but may still be referenced by a task running on the task executor.

      It looks like a similiar issue also affects the non-streamable version of the SingleServerDiscoveryMonitor (--setParameter replicaSetMonitorProtocol=sdam).

      Attachments

        Activity

          People

            haley.connelly@mongodb.com Haley Connelly
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: