Ensure that the signal processing thread is started when dumping stack traces

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • SP Prioritized List
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In SERVER-91012 we found that startSignalProcessingThread() is called in mongod_main.cpp, which does not run for unittests. Therefore, sigTid == -1, so we couldn't call terminateThread in stacktrace_threads.cpp, so the system deadlocks.

      We should invariant() that the signal processing thread is started in printAllThreadStacksBlocking() to avoid a deadlock.

            Assignee:
            Unassigned
            Reporter:
            Brad Cater
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: