Skip to content

TLS accesses aren't async-signal-safe #43146

@alexcrichton

Description

@alexcrichton

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:

Unfortunately I don't really know the best way to solve this...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-thread-localsArea: Thread local storage (TLS)C-bugCategory: This is a bug.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions