Sdl in debian-sid crashes SDL_PollEvent

Hi, i don’t know much about sdl, but tried to find out why my qemu crashed since
today. I reduced the problem to the following lines:

#include <stdlib.h>
#include “SDL.h”

main(int argc, char *argv[])
{
if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
fprintf(stderr, “Unable to init SDL: %s\n”, SDL_GetError());
exit(1);
}
atexit(SDL_Quit);

SDL_SetVideoMode(100, 100, 0, SDL_HWSURFACE);

while (1)
{
	SDL_Event ev;
	while (SDL_PollEvent(&ev)) 
	{
	}
}	

}
I’ve got a callstack, but currently no self-compiled sdl, so just functions:
SDL_PumpEvents - X11_PumpEvents - X11_SetKeyboardState - X11_TranslateKey -
XLookupString - Segmentation Fault

The crash happens sometimes on start, otherwise always as soon as the mouse
enters the sdl-windows.

Oh, half an hour later i got a new sdl in the debian repositories. It’s fixed
with those. You’re just too fast for me :slight_smile:

Hrm, it was still crashing for me last night. I guess I’ll aptitude upgrade
again this evening. :slight_smile:

-bill!
(who thought he totally hosed Tux Paint for a minute ;^) )On Wed, Mar 01, 2006 at 01:37:38AM +0000, Michael Zeilfelder wrote:

Oh, half an hour later i got a new sdl in the debian repositories. It’s fixed
with those. You’re just too fast for me :slight_smile: