Hi,
On 29.7.2022 17.20, Nicolas Pomarède wrote:
but tests are still failing for me (many more than in your cases).
They all report this :
Direct leak of 920 byte(s) in 5 object(s) allocated from:
#0 0x7f562d0b8757 in calloc (/lib64/libasan.so.8+0xb8757)
#1 0x7f562bacb4df
(/home/npomarede/src/hatari.git/src/hatari+0x78984df)
...
Indirect leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7f562d0b8d6f in __interceptor_malloc
(/lib64/libasan.so.8+0xb8d6f)
#1 0x7f562baddae5
(/home/npomarede/src/hatari.git/src/hatari+0x78aaae5)
unfortunately, there's no indication of what part of th code it is.
Maybe your ASAN version is configured differently from mine, and does
not report leak backtraces by default?
ASAN has huge amount of options, which can be set in its env var, and
which you can see with:
ASAN_OPTIONS=help=1 src/hatari
You could try something like:
ASAN_OPTIONS=malloc_context_size=8:detect_leaks=1:leak_check_at_exit=1