Re: [hatari-devel] ASAN issues with tests

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 31/07/2022 à 13:57, Nicolas Pomarède a écrit :


Maybe there's an ASAN option to ignore leaks from SDL lib ? (in my case I'm using sdl 2.0.20)

This seems possible : https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer

If I create asan_ignore.txt with just one line

leak:SDL_InitSubSystem_REAL

running the test prints just :

-----------------------------------------------------
Suppressions used:
  count      bytes template
     33       3125 SDL_InitSubSystem_REAL
-----------------------------------------------------

test is started adding "LSAN_OPTIONS=suppressions=asan_ignore.txt"

eg :

ASAN_OPTIONS="fast_unwind_on_malloc=0" LSAN_OPTIONS=suppressions=asan_ignore.txt ../../src/hatari --log-level fatal --fast-forward on --sound off --run-vbls 1000 --tos none blitemu.ttp

thomas, does it work for you ?

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/