TLS accesses aren't async-signal-safe #43146
Labels
A-thread-locals
Area: Thread local storage (TLS)
C-bug
Category: This is a bug.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
On many Unix platforms we install a signal handler for SIGSEGV/SIGBUS to catch stack overflow. This starts off by accessing the thread-local stack guard which in turn will access a
thread_local!
. Unfortunately, though,thread_local!
is not async-signal-safe due to a number of reasons:with
function can panic.Unfortunately I don't really know the best way to solve this...
The text was updated successfully, but these errors were encountered: