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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • Programmability 2025-08-04
    • None
    • 3
    • None
    • 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:
              Billy Donahue
              Reporter:
              Brad Cater
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: