HomePhabricator

[GWP-ASan] Add locking around unwinder for atfork protection.

Authored by hctim on Feb 2 2021, 2:32 PM.

Description

[GWP-ASan] Add locking around unwinder for atfork protection.

Unwinders (like libc's backtrace()) can call their own locks (like the
libdl lock). We need to let the unwinder release the locks before
forking. Wrap a new lock around the unwinder for atfork protection.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D95889

Details

Committed
hctimFeb 2 2021, 2:44 PM
Reviewer
eugenis
Differential Revision
D95889: [GWP-ASan] Add locking around unwinder for atfork protection.
Parents
rG9dc06762470c: [GWP-ASan] Add aligned allocations.
Branches
Unknown
Tags
Unknown