Strange SDL problems that we can't track down

Hi,

I’ve encountered some really strange SDL problems, and I have no clue
what to do.
When I try to backtrace after it segfaults, I get something weird with a
message explaining why.

#0 0x40324661 in select () from /lib/libc.so.6
#1 0x40067c14 in JCR_LIST () from /usr/lib/libSDL-1.2.so.0
#2 0x08157330 in ?? ()
#3 0x40b1da5c in ?? ()
#4 0x00000001 in ?? ()
#5 0x0000000c in ?? ()
Previous frame inner to this frame (corrupt stack?)

The game that makes this error crop up is at

Sorry I didn’t have the time to make a simple program to show the error,
the one simple one I made works. A few developers and I have been
laboring over this for a while but we haven’t made any headway.

Any ideas?

Thank you,
Andrei
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040111/3c51a9b5/attachment.pgp

I should also note it works perfectly in Windows with VC++, only on
Linux with gcc does it fail. It’s the newest version of SDL.

Thanks,
Andrei
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040111/41e16027/attachment.pgp

Andrei Barbu wrote:

When I try to backtrace after it segfaults, I get something weird with a
message explaining why.

#0 0x40324661 in select () from /lib/libc.so.6
#1 0x40067c14 in JCR_LIST () from /usr/lib/libSDL-1.2.so.0
#2 0x08157330 in ?? ()
#3 0x40b1da5c in ?? ()
#4 0x00000001 in ?? ()
#5 0x0000000c in ?? ()
Previous frame inner to this frame (corrupt stack?)

Did you try compiling with maximum debugability? For GCC you should
use “-O0 -g3” (and make sure nothing overrides these parameters). If
that doesn’t help you might want to compile SDL with the same
parameters. At least, frame #2 looks like it’s from a part in your
program, so probably only some symbols are missing due to inlining
or so.–
Christian
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040112/6a948596/attachment.pgp