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

race in destruction of user cache invalidation thread can cause use-after-free in MongoS shutdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.5, 3.3.3
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Integration 11 (03/14/16)

      Description

      Exposed by fixing SERVER-22950. When we return from mongoSMain, the UserCacheInvalidator is still running, but we have already destroyed its state, since it is created on the stack. This causes a segfault when it tries to access its members (such as its mutex).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: