Re: ASAN_OPTIONS

Bruno Haible via Gnulib discussion list <[email protected]> Fri, 24 Jul 2026 14:32:37 +0200
Newsgroups gmane.comp.lib.gnulib.bugs
Message-ID <3920880.y1PWrYsiD0@cagnes>
Simon Josefsson wrote:
> I think the recommended parameter separator is ':' not ' ' though?

Both work. See https://stackoverflow.com/questions/77901419/ .

> > 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

Yes. But beware that this is 7 years old.

> However I don't see 'allocator_may_return_null' in any of those pages.

It's documented here:
https://learn.microsoft.com/en-us/cpp/sanitizers/asan-flags

Bruno