Hi Markus, Thanks for the report.Unfortunatelly ASAN documentation is not very precise about manual poisoning/unpoisoning, however I think memory must be *unpoisoned* before freeing, just because memory is not poisoned when allocated.
Should be fixed by https://git.gnunet.org/libmicrohttpd.git/commit/?id=1a46bfd6e0929e2004ffda318282cbf21d9f5299
Please check whether it fixed the issue for you. -- Evgeny On 07.03.2022 20:11, Markus Doppelbauer wrote:
> + Added '--enable-sanitizers[=address,undefined,leak,user-poison]' > configure parameter (instead of '--enable-sanitizer'), > implemented custom memory poisoning for memory pools. We get strange asan aborts (maybe once per 30min): ERROR: AddressSanitizer: use-after-poison on address 0xdeadbeef My question (sorry I can't find any docs on this issue): MHD calls '_MHD_POISON_MEMORY()' before 'free()'. Other code calls 'ASAN_UNPOISON_MEMORY_REGION()' before free, e.g.:https://github.com/AlxHnr/CRegion/blob/1347314d953e8b5e26eed3b0fe3151e482958c39/src/mempool.c#L69 <https://github.com/AlxHnr/CRegion/blob/1347314d953e8b5e26eed3b0fe3151e482958c39/src/mempool.c#L69>
OpenPGP_signature
Description: OpenPGP digital signature