[SDL] A problem with 1.2.10 dynamic X11 load
Gabriele Greco
gabriele.greco at darts.it
Thu Jun 8 06:37:40 PDT 2006
It seems that the dynamic X11 libraries load feature of .10 breaks
compatibility with applications using both SDL and GTK (tried both with
1.x and 2.x), any workaround?
Here is a minimal example:
#include <gtk/gtk.h>
#include "SDL.h"
int main(int argc, char *argv[])
{
gtk_init(&argc, &argv);
SDL_Init(SDL_INIT_VIDEO);
}
[gabry at nevada tmp]$ gcc -o test test.c `sdl-config --cflags --libs`
`gtk-config --cflags --libs`
[gabry at nevada tmp]$ ./test
Segmentation fault
[gabry at nevada tmp]$ gdb test
[...]
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x400504a4 in XSetErrorHandler () from /usr//lib/libSDL-1.2.so.0
#2 0x4025d30c in gdk_init_check () from /usr//lib/libgdk-1.2.so.0
#3 0x401a1081 in gtk_init_check () from /usr//lib/libgtk-1.2.so.0
#4 0x401a1586 in gtk_init () from /usr//lib/libgtk-1.2.so.0
#5 0x08048628 in main ()
#6 0x403e354d in __libc_start_main () from /lib/libc.so.6
More information about the SDL
mailing list