Segfault in Sound_DecodeAll
Andreas Umbach
marvin at cyclops.webvision.ch
Sun Nov 25 12:17:17 EST 2001
Hi, I just tried to use Sound_DecodeAll(), and it segfaulted on me.
The program basically Loads a sample and then runs Sound_DecodeAll on it.
gdb output:
(gdb) run loop.mp3
Starting program: /home/marvin/Nebukadnezar/nk_test loop.mp3
[New Thread 1024 (LWP 6185)]
[New Thread 2049 (LWP 6186)]
[New Thread 1026 (LWP 6187)]
[New Thread 2051 (LWP 6188)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 6185)]
0x40199c27 in memcpy () from /lib/libc.so.6
(gdb) bt
#0 0x40199c27 in memcpy () from /lib/libc.so.6
#1 0x4001a6ac in Sound_DecodeAll (sample=0x805fb30) at SDL_sound.c:656
#2 0x8049200 in Sound::SourceSample::Load (this=0x805d8d8,
filename=0xbffff927 "loop.mp3") at sound/SourceSample.cpp:18
#3 0x8048ca5 in main (argc=2, argv=0xbffff79c) at main.cpp:36
#4 0x4013dbaf in __libc_start_main () from /lib/libc.so.6
(gdb)
- Andreas
--
Check out my 3D lightcycle game: http://www.gltron.org/
More than 200'000 Downloads of the latest version (0.61)
More information about the sdlsound
mailing list