Update of bug #11754 (project wormux):
Status: None => Confirmed
Assigned to: None => gentildemon
Summary: Segfault if sound device is not available on
OpenBSD => Segfault if sound device is not available
_______________________________________________________
Follow-up Comment #1:
I confirmed the bug on a Linux Plateform. To test it, run a program using OSS
sound device.
Here is a backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219183984 (LWP 16513)]
0xb7f4f03b in Mix_VolumeChunk () from /usr/lib/libSDL_mixer-1.2.so.0
(gdb) bt
#0 0xb7f4f03b in Mix_VolumeChunk () from /usr/lib/libSDL_mixer-1.2.so.0
#1 0x0815af24 in JukeBox::PlaySample (this=0x82458a8, sample=0x0, level=1,
loop=0) at sound/jukebox.cpp:453
#2 0x0815b37c in JukeBox::Play (this=0x82458a8, [EMAIL PROTECTED],
[EMAIL PROTECTED], loop=1) at sound/jukebox.cpp:422
#3 0x08065430 in Character::Refresh (this=0x9908f48) at
character/character.cpp:589
#4 0x080853aa in Game::RefreshObject (this=0x8455a20) at game/game.cpp:268
#5 0x080857b6 in Game::MainLoop (this=0x8455a20) at game/game.cpp:467
#6 0x080858ad in Game::Run (this=0x8455a20) at game/game.cpp:395
#7 0x08086161 in Game::Start (this=0x8455a20) at game/game.cpp:109
#8 0x08105f5d in GameMenu::signal_ok (this=0xbfc559f8) at
menu/game_menu.cpp:132
#9 0x081114aa in Menu::mouse_ok (this=0xbfc559f8) at menu/menu.cpp:99
#10 0x08110c3e in Menu::BasicOnClickUp (this=0xbfc559f8,
[EMAIL PROTECTED]) at menu/menu.cpp:116
#11 0x08110ee9 in Menu::Run (this=0xbfc559f8, skip_menu=false) at
menu/menu.cpp:257
#12 0x080d4ab6 in AppWormux::Main (this=0x8220db0) at main.cpp:122
#13 0x080d510a in main (argc=1, argv=0xbfc55b84) at main.cpp:414
(gdb) frame 1
#1 0x0815af24 in JukeBox::PlaySample (this=0x82458a8, sample=0x0, level=1,
loop=0) at sound/jukebox.cpp:453
453 Mix_VolumeChunk(sample,
int(0.5+level*Config::GetInstance()->GetVolumeEffects()));
(gdb)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11754>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna