Re: Does Gnulib replace exit(3) under any circumstances?

Bruno Haible via Gnulib discussion list <[email protected]> Fri, 24 Jul 2026 07:09:07 +0200
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.printing.groff.general
Message-ID <9296916.SKYDtnEIZr@cagnes>
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"

References:
https://github.com/google/sanitizers/wiki/AddressSanitizer
https://clang.llvm.org/docs/AddressSanitizer.html

Bruno