Re: [hatari-devel] ASAN issues with tests

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


Am Sun, 31 Jul 2022 05:38:04 +0000
schrieb Thomas Huth <th.huth@xxxxxxxxx>:

> Am Sun, 31 Jul 2022 02:02:38 +0300
> schrieb Eero Tamminen <oak@xxxxxxxxxxxxxx>:
> > 
> > On 30.7.2022 23.29, Nicolas Pomarède wrote:  
[...]
> > > maybe some memory is allocated by SDL for audio in all cases, but not 
> > > correctly free'd when "sound = off" ?    
> > 
> > Sounds plausible.  
> 
> Yes, that sounds likely. If it does not show the correct location, it often
> means that it is somewhere in one of the system libraries.

It's definitely a bug in the SDL library. I can reproduce leaks here,
too, if I just compile this simple program with -fsanitize=address and run
it:

#include <stdio.h>
#include <SDL2/SDL.h>

int main()
{
  SDL_Init(SDL_INIT_VIDEO);
  SDL_Quit();
  return 0;
}

Maybe related to https://github.com/libsdl-org/SDL/issues/5759 ... I added
a comment there.

 Thomas



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