SDL-1.2.10 Segmentation fault

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
:frowning: 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

Le Wed, 07 Jun 2006 16:58:56 +0200
SirMike a ?crit:

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. [snip]

Any ideas what’s wrong?

See http://bugzilla.libsdl.org/show_bug.cgi?id=242
You’re not the only one having this bug.

loaded by SDL.

I did not try dynamically loading libGL, it seems like anybody having
the problem is statically linking to libGL.>From my pov, the nvidia libgl does not like libX11 being dynamically


Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Patrice Mandin wrote:

See http://bugzilla.libsdl.org/show_bug.cgi?id=242
You’re not the only one having this bug.

Thanks for the info. I searched bugzilla but couldn’t find it :)–
SirMike