Page MenuHomePhabricator

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

Authored by mcgrathr on Wed, Sep 16, 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.Wed, Sep 16, 2:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptWed, Sep 16, 2:06 PM
Herald added subscribers: Restricted Project, phosek. · View Herald Transcript
mcgrathr requested review of this revision.Wed, Sep 16, 2:06 PM
mcgrathr abandoned this revision.Wed, Sep 16, 2:12 PM

bad upload

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

add windows stub

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

bad upload