Bruno Haible via Gnulib discussion list <[email protected]> writes: > G. Branden Robinson wrote: >> Unfortunately, making groff ASAN-quiet is not a scheduled goal. >> ... >> "I see lots of memory leaks. > > ASAN is useful also when you don't care about memory leaks. > Just set > export ASAN_OPTIONS="detect_leaks=0 abort_on_error=1 > allocator_may_return_null=1"
Thanks for reminding me! I was just about giving up on using ASAN for wdiff which have memory leaks that are less important to fix. I think the recommended parameter separator is ':' not ' ' though? > References: > https://github.com/google/sanitizers/wiki/AddressSanitizer > https://clang.llvm.org/docs/AddressSanitizer.html There is also: https://github.com/google/sanitizers/wiki/AddressSanitizerFlags However I don't see 'allocator_may_return_null' in any of those pages. What does it do? /Simon
signature.asc
Description: PGP signature
