[Bug sanitizer/59061] Port leaksanitizer

kcc at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 10 02:27:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59061

--- Comment #5 from Kostya Serebryany <kcc at gcc dot gnu.org> ---
(In reply to Joost VandeVondele from comment #4)
> That's great... works even for Fortran code :-)
Wow! 
> 
> One more question the docs mention:
> 
>  In performance-critical scenarios, LSan can also be used without ASan
> instrumentation. 
> 
> But it is unclear from that description how that would work.. any hints ?

Clang supports -fsanitize=leak which simply links a standalone lsan library
(no instrumentation at compile time required). 
Perhaps gcc can add such option too. 

But: we do not test -fsanitize=leak on anything other than tiny tests,
so we truly support only the lsan+asan use case.

We'll need to update the wiki page to have this all explained in detail, 
thanks for raising these questions.



More information about the Gcc-bugs mailing list