Skip to content

[libc][bug] c++abi tls dtors are not called on main thread exit #135204

@SchrodingerZhu

Description

@SchrodingerZhu

Image

The above is the behavior of registered dtors on main thread exiting. As for llvm-libc, the dtors registered using __cxa hooks are never called if main thread exits without calling pthread_exit.

Solution is being investigated at #133641

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions