[cfe-dev] using a faster libunwind on linux for LSAN_OPTIONS=fast_unwind_on_malloc=false ?
Milian Wolff via cfe-dev
cfe-dev at lists.llvm.org
Sat Oct 17 06:53:33 PDT 2020
I'm regularly using LSAN on user applications where some third party
dependencies are compiled without framepointers (and without sanitizers). In
such cases, the leak reports from LSAN are usually garbage, and the fix is to
use `LSAN_OPTIONS=fast_unwind_on_malloc=false`. But that comes at a hefty
performance price, which makes it infeasible for me to have it enabled all the
I wonder - would it be possible to use libunwind  (not the one from LLVM),
or alternatively improve the LLVM-libunwind to apply similar caching
I'm using libunwind in heaptrack, where I also record backtraces for every
single heap allocation. I have the feeling that the performance impact of that
is much lower compared to using `LSAN_OPTIONS=fast_unwind_on_malloc=false`.
Has this ever been discussed?
mail at milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: This is a digitally signed message part.
More information about the cfe-dev