Hello,
Doing some other things (actually in Python and Pygame) I had some
strange problem that I could reproduce, I think.
Problem: when I’m using the function Mix_SetMusicPosition(aleatori) the
program is crashing every now and then. See the attached brief code
code. Usually it crash before 300 iterations, but it depends. I’m always
using the same seed to generate the random numbers and it’s crashing in
different points, so it’s not particular case.
If I change:
Mix_SetMusicPosition(aleatori);
by:
Mix_SetMusicPosition(0.0);
Then it’s not crashing anymore.
I’ve tested it in two computers with the same results (always Debian
GNU/Linux)
The backtrace looks like:
Program terminated with signal 11, Segmentation fault.
[New process 28318]
[New process 27029]
#0 0xb7da0cac in memcpy () from /lib/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7da0cac in memcpy () from /lib/i686/cmov/libc.so.6
#1 0xb7aa6eee in MPEGstream::copy_data () from /usr/lib/libsmpeg-0.4.so.0
#2 0xb7aabbae in MPEGaudio::fillbuffer () from /usr/lib/libsmpeg-0.4.so.0
#3 0xb7abc8bb in MPEGaudio::loadheader () from /usr/lib/libsmpeg-0.4.so.0
#4 0xb7abcb24 in MPEGaudio::run () from /usr/lib/libsmpeg-0.4.so.0
#5 0xb7abcd38 in Decode_MPEGaudio () from /usr/lib/libsmpeg-0.4.so.0
#6 0xb7eebf7b in ?? () from /usr/lib/libSDL-1.2.so.0
#7 0x08085048 in ?? ()
#8 0xb7abccb0 in ?? () from /usr/lib/libsmpeg-0.4.so.0
#9 0x08084808 in ?? ()
#10 0xb7f44840 in ?? () from /usr/lib/libSDL-1.2.so.0
#11 0x00000000 in ?? ()
(gdb)
I’m using a Debian Testing/Unstable, with this quite recent versions:
ii libsdl-mixer1.2 1.2.8-4 mixer library for Simple DirectMedia Layer 1
ii libsdl-mixer1.2-dev 1.2.8-4 development files for SDL1.2 mixer library
I haven’t tested using SVN version
Do you want that I report this somewhere else? (like some mail, bug
tracking system, etc.)
Thanks,–
Carles Pina i Estany GPG id: 0x17756391
http://pinux.info
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl-mixer-crash.c
Type: text/x-csrc
Size: 1385 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20081207/9afb96c9/attachment.c