[mpg123-devel] [ mpg123-Bugs-2838649 ] Segmentation fault when audio card is busy
Brought to you by:
sobukus
From: SourceForge.net <no...@so...> - 2011-04-08 08:24:36
|
Bugs item #2838649, was opened at 2009-08-16 22:30 Message generated for change (Settings changed) made by sobukus You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=733194&aid=2838649&group_id=135704 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mpg123 Group: 1.8.1 Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: demfloro (demfloro) Assigned to: Nobody/Anonymous (nobody) Summary: Segmentation fault when audio card is busy Initial Comment: Segmentation fault when sound card is busy with the error: $ mpg123 -vvvv 01\ -\ The\ Leper\ Affinity.mp3 Trying output module alsa. Trying output module esd. Trying output module sdl. Note: sdl is the last output option... showing you any error messages now. Segmentation fault ---------------------------------------------------------------------- Comment By: Thomas Orgis (sobukus) Date: 2009-09-16 00:16 Message: This looks like a crash in SDL / Alsa, not mpg123. So it's invalid here. ---------------------------------------------------------------------- Comment By: demfloro (demfloro) Date: 2009-08-17 13:58 Message: >I assume that the alsa device is occupied (or really not available)? Another process (mpd in my case) was using sound card. If it free mpg123 plays well. ---------------------------------------------------------------------- Comment By: demfloro (demfloro) Date: 2009-08-17 13:53 Message: (gdb) bt #0 0x00007fff31025130 in ?? () #1 0x00007fff318b5fa4 in snd_pcm_hw_open () from /usr/lib/libasound.so.2 #2 0x00007fff318b6423 in _snd_pcm_hw_open () from /usr/lib/libasound.so.2 #3 0x00007fff318ada94 in snd_pcm_open_conf () from /usr/lib/libasound.so.2 #4 0x00007fff318ae2df in snd1_pcm_open_named_slave () from /usr/lib/libasound.so.2 #5 0x00007fff318ddb18 in snd_pcm_dmix_open () from /usr/lib/libasound.so.2 #6 0x00007fff318ddfd6 in _snd_pcm_dmix_open () from /usr/lib/libasound.so.2 #7 0x00007fff318ada94 in snd_pcm_open_conf () from /usr/lib/libasound.so.2 #8 0x00007fff318ae190 in snd_pcm_open_noupdate () from /usr/lib/libasound.so.2 #9 0x00007fff318ae299 in snd1_pcm_open_named_slave () from /usr/lib/libasound.so.2 #10 0x00007fff318e891e in _snd_pcm_softvol_open () from /usr/lib/libasound.so.2 #11 0x00007fff318ada94 in snd_pcm_open_conf () from /usr/lib/libasound.so.2 #12 0x00007fff318ae2df in snd1_pcm_open_named_slave () from /usr/lib/libasound.so.2 #13 0x00007fff318c8060 in _snd_pcm_plug_open () from /usr/lib/libasound.so.2 #14 0x00007fff318ada94 in snd_pcm_open_conf () from /usr/lib/libasound.so.2 #15 0x00007fff318ae2df in snd1_pcm_open_named_slave () from /usr/lib/libasound.so.2 #16 0x00007fff318e5eb0 in _snd_pcm_asym_open () from /usr/lib/libasound.so.2 #17 0x00007fff318ada94 in snd_pcm_open_conf () from /usr/lib/libasound.so.2 #18 0x00007fff318ae2df in snd1_pcm_open_named_slave () from /usr/lib/libasound.so.2 ---Type <return> to continue, or q <return> to quit--- #19 0x00007fff318cffec in _snd_pcm_empty_open () from /usr/lib/libasound.so.2 #20 0x00007fff318ada94 in snd_pcm_open_conf () from /usr/lib/libasound.so.2 #21 0x00007fff318ae190 in snd_pcm_open_noupdate () from /usr/lib/libasound.so.2 #22 0x00007fff30fc733f in Audio_Available () from /usr/lib/libSDL-1.2.so.0 #23 0x00007fff30f995c0 in SDL_AudioInit () from /usr/lib/libSDL-1.2.so.0 #24 0x00007fff30f98465 in SDL_InitSubSystem () from /usr/lib/libSDL-1.2.so.0 #25 0x00007fff30f9852f in SDL_Init () from /usr/lib/libSDL-1.2.so.0 #26 0x00007fff31b3eae4 in init_sdl () from /usr/lib/mpg123/output_sdl.so #27 0x0000000000406e16 in open_output_module () #28 0x0000000000407224 in init_output () #29 0x000000000040f6d3 in main () (gdb) ---------------------------------------------------------------------- Comment By: Thomas Orgis (sobukus) Date: 2009-08-17 11:34 Message: I assume that the alsa device is occupied (or really not available)? In any case: Can you create a core dump and provide a backtrace to see where the segmentation fault occured? I would like to know if it is inside mpg123 or the SDL library. For a backtrace you need gdb installed. Then in the shell run: shell$ ulimit -c unlimited shell$ mpg123 -vvvv 01\ -\ The\ Leper\ Affinity.mp3 [... segmentation fault ...] shell$ gdb /usr/bin/mpg123 core gdb> bt The mpg123 run should create the file 'core' (or core.NUMBER) in the current directory. Replace /usr/bin/mpg123 with the correct full path to the mpg123 program. After starting gdb, you get a command prompt; there type 'bt' ... the lines of text appearing now are what I am interested in. Pasting them into a comment here would be useful. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=733194&aid=2838649&group_id=135704 |