Difficult segfault to pin down (seems related to SDL audio)

Hello everyone!

First time poster here. I am working on a game
using SDL and I have stumbled into one of those
bugs that is difficult to figure out.

It isn't easy to reproduce either, but it happens
enough that I'm not going to just sweep it under the rug.

Doing a "backtrace" in gdb has helped me solve segfaults
quickly up until now. This time, it just leaves me with
more questions than answers, as it does not lead to any
code written by me! And some of the functions are helpfully
labeled as "??"

The trace suggests it is something to do with SDL audio.

1
2
3
4
5
6
7
8
9
10
11
12
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb2c35b90 (LWP 11142)]
0xb7f3d678 in ?? () from /usr/lib/libSDL-1.2.so.0
(gdb) backtrace
#0  0xb7f3d678 in ?? () from /usr/lib/libSDL-1.2.so.0
#1  0xb7f3d61a in SDL_MixAudio () from /usr/lib/libSDL-1.2.so.0
#2  0xb7ecbe2e in ?? () from /usr/lib/libSDL_mixer-1.2.so.0
#3  0xb7f3ace2 in ?? () from /usr/lib/libSDL-1.2.so.0
#4  0xb7f4283b in ?? () from /usr/lib/libSDL-1.2.so.0
#5  0xb7f9071d in ?? () from /usr/lib/libSDL-1.2.so.0
#6  0xb7ace4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb7d1649e in clone () from /lib/tls/i686/cmov/libc.so.6 


Google isn't alot of help here either (or my google-fu is just
weak today).

If anyone has even a ghost of a clue, or a direction to go in
for debugging, I am all ears!

Thanks

~G
Read the thread right before yours entitled "long term bug advice". The same suggestions apply.
Topic archived. No new replies allowed.