Comment #7 on issue 379 by
earth...@google.com: Leak sanitizer support for
For the record, I've recently added a new interface function which allows
multiple leak checks:
// Check for leaks now. Returns zero if no leaks have been found or if
leak
// detection is disabled, non-zero otherwise.
// This function may be called repeatedly, e.g. to periodically check a
// long-running process. It prints a leak report if appropriate, but does
not
// terminate the process. It does not affect the behavior of
// __lsan_do_leak_check() or the end-of-process leak check, and is not
// affected by them.
int __lsan_do_recoverable_leak_check();
> 1. Make lsan work on AArch64 Linux. I don't know the status of this, but
> it should be easy to accomplish.
Recently this was done for MIPS. I invite you (vairavans) to take a look at
those patches to get an idea of the scope of work. Basically you will have
to:
- port stoptheworld (reimplementing internal_clone() will probably be the
bulk of this),
- port the TLS discovery code,
- pick up a few platform-dependent bits and pieces in lsan_common.