SDL-1.3 (latest revision): Segmentation fault on any window event

Today I rebuilt SDL-1.3 from the latest revision (on ubuntu 10.10,
32bit). It seems that every window event now results in a segfault,
here’s what gdb is saying:

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) where
#0 0x00000000 in ?? ()
#1 0x0066dbdf in SDL_SetKeyboardFocus (window=0x0) at
src/events/SDL_keyboard.c:618
#2 0x006ef1b3 in X11_DispatchEvent (_this=0x80673e8) at
src/video/x11/SDL_x11events.c:171
#3 0x006ef968 in X11_PumpEvents (_this=0x80673e8) at
src/video/x11/SDL_x11events.c:503
#4 0x0066ba28 in SDL_PumpEvents () at src/events/SDL_events.c:434
#5 0x0066ba96 in SDL_WaitEventTimeout (event=0x80a2f90, timeout=0) at
src/events/SDL_events.c:468
#6 0x0066ba51 in SDL_PollEvent (event=0x80a2f90) at src/events/SDL_events.c:450

I don’t know that much about SDL internals, all I found out was that
this happens since this changeset
http://hg.libsdl.org/SDL/rev/e725a6a60c32, but I don’t know if it’s a
side effect or something else has changed.

Any pointers?

bw,
Martin

This is fixed, thanks!On Sat, Sep 18, 2010 at 10:35 AM, Martin Voigt <voigt.m at googlemail.com> wrote:

Today I rebuilt SDL-1.3 from the latest revision (on ubuntu 10.10,
32bit). It seems that every window event now results in a segfault,
here’s what gdb is saying:

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) where
#0 ?0x00000000 in ?? ()
#1 ?0x0066dbdf in SDL_SetKeyboardFocus (window=0x0) at
src/events/SDL_keyboard.c:618
#2 ?0x006ef1b3 in X11_DispatchEvent (_this=0x80673e8) at
src/video/x11/SDL_x11events.c:171
#3 ?0x006ef968 in X11_PumpEvents (_this=0x80673e8) at
src/video/x11/SDL_x11events.c:503
#4 ?0x0066ba28 in SDL_PumpEvents () at src/events/SDL_events.c:434
#5 ?0x0066ba96 in SDL_WaitEventTimeout (event=0x80a2f90, timeout=0) at
src/events/SDL_events.c:468
#6 ?0x0066ba51 in SDL_PollEvent (event=0x80a2f90) at src/events/SDL_events.c:450

I don’t know that much about SDL internals, all I found out was that
this happens since this changeset
http://hg.libsdl.org/SDL/rev/e725a6a60c32, but I don’t know if it’s a
side effect or something else has changed.

Any pointers?

bw,
Martin


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC