This is an archive of the discontinued LLVM Phabricator instance.

[Compiler-rt] Fix running ASan/TSan unit tests under macOS 12.0.
ClosedPublic

Authored by delcypher on Aug 3 2021, 4:45 PM.
Tokens
"Orange Medal" token, awarded by gasawayquin.

Details

Summary

On macOS the unit tests currently rely on libmalloc being used for
allocations (due to no functioning interceptors) but also having the
ASan/TSan allocator initialized in the same process.

This leads to crashes with the macOS 12.0 libmalloc nano allocator so
disable use of the allocator while running unit tests as a workaround.

rdar://80086125

Diff Detail

Event Timeline

delcypher created this revision.Aug 3 2021, 4:45 PM
delcypher requested review of this revision.Aug 3 2021, 4:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2021, 4:45 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
yln accepted this revision.Aug 3 2021, 5:16 PM
This revision is now accepted and ready to land.Aug 3 2021, 5:16 PM