[LLVMdev] How do I add suppressions to LSan when testing LLVM with ASan enabled?

Sergey Matveev
2015-01-14T14:39:01Z

Run it with the slow unwinder (ASAN_OPTIONS=fast_unwind_on_malloc=0) to
identify the call site, then wrap the call in an __lsan::ScopedDisabler.

- Sergey

On Wed, Jan 14, 2015 at 1:27 PM, Chandler Carruth <chandlerc at
google.com>
wrote:

> I get leaks from a system library:
>
> ==16272==ERROR: LeakSanitizer: detected memory leaks
>
> Direct leak of 148 byte(s) in 2 object(s) allocated from:
>     #0 0x4a3172 in __interceptor_malloc
> .../build/../projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3
>     #1 0x7f575d8df1fe in wcsdup (/lib64/libedit.so.0+0x1c1fe)
>
> I don't think I can fix this... ;]
>
> -Chandler
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20150114/a906cf92/attachment.html>