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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication

      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 Unassigned
            Reporter:
            brad.cater@mongodb.com Brad Cater
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: