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

Make logging work during thread destruction

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • 2.5.1
    • None
    • Logging
    • None
    • Fully Compatible
    • ALL
    • Platforms 2016-10-10

    Description

      When a thread terminates, objects pointed to by Thread Specific Pointers (TSPs), also known as Thread Local Storage (TLS), are deleted. One of these thread-local objects is used for logging. If the logging TSP is deleted before another TSP and the later TSP tries to log anything in its destructor, this can cause a segfault.

      The code should be modified to guarantee that the TSP used for logging is the last TSP to be deleted so that other thread-local objects can use the logging system during object destruction.

      Attachments

        Issue Links

          Activity

            People

              andrew.morrow@mongodb.com Andrew Morrow
              tad Tad Marshall
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: