This is an archive of the discontinued LLVM Phabricator instance.

[lsan] On Fuchsia, don't use atexit hook for leak checks
AbandonedPublic

Authored by mcgrathr on Sep 16 2020, 2:06 PM.

Details

Reviewers
None
Summary

This is a re-land of https://reviews.llvm.org/D86171.

Fuchsia's system libraries are instrumented and use the lsan
allocator for internal purposes. So leak checking needs to run
after all atexit hooks and after the system libraries' internal
exit-time hooks. The <zircon/sanitizer.h> hook API calls the
__sanitizer_process_exit_hook function at exactly the right time.

Diff Detail

Event Timeline

mcgrathr created this revision.Sep 16 2020, 2:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2020, 2:06 PM
Herald added subscribers: Restricted Project, phosek. · View Herald Transcript
mcgrathr requested review of this revision.Sep 16 2020, 2:06 PM
mcgrathr abandoned this revision.Sep 16 2020, 2:12 PM

bad upload

mcgrathr updated this revision to Diff 292681.Sep 17 2020, 5:48 PM

add windows stub

mcgrathr abandoned this revision.Sep 17 2020, 5:50 PM

bad upload