Re: [hatari-devel] ASAN issues with tests |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] ASAN issues with tests
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 31 Jul 2022 06:07:06 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1659247628; bh=tO/E5KsPmfGK+qZ6kIeqNcEWTFm/i0XI9NxndCq1t+w=; h=Date:From:To:Subject:From; b=HmG2eZWYoOqbLL8hmA1lfVKST0h1X5ZSigCjjPEz/zDoyl0XAbpnp9FThaLhjs+H0 Q+EwJWOEWxmAdGP8kbk/teCivEXuSt+DBio1SunuZrkdgEmvusCUmNVzGfEPdx7Eeq 8n/A2h3F7EUkxJ1QU71uYgM2HA76PwHjQFWnj7yUCJq7rZKo75ekrYjKE1Mwiv36/D i2+4Qby67OikoYlFJB2AKWAvNAxVX7W6wq48Hm5UOlvyIX9xWB3gevlzP9qa0Jjy9e 8UQk79z06XY/uc3kj4LQVw9SUXlju9SZ8MqD4XP2iYOJEEnzysu+YDqITu+fh6ZE+V NI9qIHw+k4Bmg==
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