Make logging work during thread destruction

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.5.1
    • Component/s: Logging
    • None
    • Fully Compatible
    • ALL
    • Platforms 2016-10-10
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Andrew Morrow (Inactive)
              Reporter:
              Tad Marshall
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: