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

ProgramRegistry::_handles access isn't thread safe

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • Affects Version/s: 3.2.0-rc2
    • Component/s: Shell
    • None
    • Fully Compatible
    • Windows
    • Platform C (11/20/15)
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      There is one global program registry in the shell for managing processes. That registry has a mutex, and uses it to protect it's internal lookup tables against concurrent access.

      On windows, it additionally has a map from pid to HANDLE, but offers this as a public member and makes no effort to ensure thread safe access. We need to bury access to that type behind methods and use the registry mutex to guard _handle inside.

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: