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

Data race in the BalancerCommandsScheduler destructor may cause an exception

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • 5.1 Required
    • None
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2021-09-20
    • 68

    Description

      The destructor of the BalancerCommandsScheduler includes logic to end an internal thread, which is then detached.
      This situation may lead to segmentation faults when the internal thread outlives the parent object and tries to access already deleted resources.

      Attachments

        Activity

          People

            paolo.polato@mongodb.com Paolo Polato
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: