Files
swift-mirror/stdlib/public/runtime/CrashHandlerLinux.cpp
Carl Peto 56bc2b627e [Backtracing] [Linux] Fix/improve sporadic inability to capture all threads in backtrace.
Sometimes crashing programs on Linux were failing to capture threads with message "swift-runtime: failed to suspend thread."

RCA suggested the issue may be libraries such as glibc masking all signals for the process during pthread_create and similar circumstances.

This patch just tries a few times to find a suitable signal.

The patch does not have unit tests, however there is good coverage of the issue in the multi threaded crash unit tests of the soon to be released swift-symbolicate program.

rdar://169803867
2026-02-11 14:33:21 +00:00

20 KiB