I use Slackware Linux (10.2). Tried with 2.4 and 2.6 kernel and with
several graphic drivers, even the latest (nvidia). I got Xorg 6.9
The problem is - segmentation fault when exit even from the simplest app.
Just like this one:
int main()
{
SDL_Init(SDL_INIT_VIDEO);
SDL_SetVideoMode(640, 480, 32, SDL_OPENGL); // resolution and bpp
doesn’t matter
SDL_Quit();
return 0;
}
It happens only when SDL_OPENGL is enabled.
If I try to render something it works perfectly and then at the end I
got SIGSEGV.
I debuged several apps in a very detail way and SIGSEGV occurs after the
last bracket
backtrace leads to libSDL
Also, Valgrind gives me something like this at the SDL_SetVideoMode:
==19294== Invalid read of size 4
==19294== at 0x43F2A77: (within /usr/lib/libGL.so.1.0.8756)
==19294== Address 0x54E7344 is 180 bytes inside a block of size 181 alloc’d
==19294== at 0x401C471: malloc (vg_replace_malloc.c:149)
==19294== by 0x43F2DB8: (within /usr/lib/libGL.so.1.0.8756)
==19294== by 0x44FCB8D: X11_GL_CreateContext (in
/usr/lib/libSDL-1.2.so.0.7.3)
==19294== by 0x4502C92: (within /usr/lib/libSDL-1.2.so.0.7.3)
==19294== by 0x44F02CE: SDL_SetVideoMode (in
/usr/lib/libSDL-1.2.so.0.7.3)
Any ideas what’s wrong?–
SirMike