<div dir="ltr">Hi Jeffrey,<div><br></div><div>At one point we should go and document it on the wiki, for now I'll just briefly outline options here:</div><div><br></div><div>There are multiple ways to disable LeakSanitizer:</div><div>1) source-level annotations (see <sanitizer/lsan_interface.h> header) - mark specific objects as intentionally-leaked</div><div>2) link in</div><div>extern "C" int __lsan_is_turned_off() { return 1; }</div><div>into binary (see <sanitizer/lsan_interface.h>) you want to exclude from leak detection.</div><div>3) pass ASAN_OPTIONS=detect_leaks=0 environment variable to disable leak detection at run-time.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 5:03 PM, Jeffrey Walton <span dir="ltr"><<a href="mailto:noloader@gmail.com" target="_blank">noloader@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I recently upgraded from Clang 3.4 to 3.5. Clang 3.5 added a Leak<br>
Sanitizer, and its part of Asan.<br>
<br>
Leak Sanitizer is aborting a test suite because the developers don't<br>
think its important to fix a test program (sigh...). I want to disable<br>
Leak Sanitizer, but <a href="http://clang.llvm.org/docs/AddressSanitizer.html" target="_blank">http://clang.llvm.org/docs/AddressSanitizer.html</a><br>
and <a href="https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer" target="_blank">https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer</a><br>
does not discuss it.<br>
<br>
I don't really want to go through and write a suppression rule for<br>
each offending function. That's because there are 6 components in this<br>
suite, and the tests for them may change over time.<br>
<br>
How do I disable the Leak Sanitizer?<br>
<br>
Thanks in advance.<br>
_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div>