Sometimes I find that if the application segfaults, it does not crash. I
have tried to force this condition for testing purposes - using this
all-powerful command which does the all-impressive
*(int *)NULL = BigLong (0x55303052); // W00T
(read SDL_SwapBE32 for BigLong, except that BigLong will extend signs and
SDL won’t, a minor nit about SDL’s byteorder code…)
Okay, seriously now. =) It basically doesn’t die, and here’s the
backtrace:
#0 0x400eba9e in sigsuspend () from /lib/libc.so.6
#1 0x4008e659 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
#2 0x4008b8b1 in pthread_join () from /lib/libpthread.so.0
#3 0x40061dff in SDL_SYS_WaitThread () from /usr/lib/libSDL-1.2.so.0
#4 0x40061be0 in SDL_WaitThread () from /usr/lib/libSDL-1.2.so.0
#5 0x4002ca48 in SDL_AudioQuit () from /usr/lib/libSDL-1.2.so.0
#6 0x4002b80e in SDL_QuitSubSystem () from /usr/lib/libSDL-1.2.so.0
#7 0x4002b87c in SDL_Quit () from /usr/lib/libSDL-1.2.so.0
#8 0x4002c0e4 in SDL_Error () from /usr/lib/libSDL-1.2.so.0
#9 0x4008ed34 in pthread_sighandler () from /lib/libpthread.so.0
#10 0x400eb8d8 in sigaction () from /lib/libc.so.6
#11 0x08055dc2 in Cmd_ExecuteString (text=0xbffff5ac “crash”) at cmd.c:882
Now threads aren’t my area of expertise, but it looks to me like SDL isn’t
being very successful at killing the sound thread. Is there a workaround
or something I may be doing wrong? I’m using SDL 1.2.2 here.–
Joseph Carter Free software developer
$you = new YOU;
honk() if $you->love(perl)
– Seen on Slashdot
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20011031/16cf71f9/attachment.pgp