Bug 203394 - ALSA hangs when network goes down
Summary: ALSA hangs when network goes down
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-soundcard
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-21 17:34 UTC by Bastien Nocera
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-04-10 12:33:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bastien Nocera 2006-08-21 17:34:43 UTC
I believe this is due to the way dmix/dsnoop works, and the way it is setup by
system-config-soundcard, hence the bug.

When the network goes down, all the ALSA using audio apps hang with this
backtrace (this is Rhythmbox, using GStreamer):
#0  0x00000038d85c3806 in poll () from /lib64/libc.so.6
#1  0x00000038df1828b7 in snd_pcm_direct_resume () from /lib64/libasound.so.2
#2  0x00000038df182c67 in snd_pcm_direct_server_create ()
   from /lib64/libasound.so.2
#3  0x00000038df17be6c in snd_pcm_dmix_open () from /lib64/libasound.so.2
#4  0x00000038df17c706 in _snd_pcm_dmix_open () from /lib64/libasound.so.2
#5  0x00000038df1502f8 in snd_pcm_free () from /lib64/libasound.so.2
#6  0x00000038df1508b4 in snd_pcm_free () from /lib64/libasound.so.2
#7  0x00000038df150973 in snd_pcm_open_slave () from /lib64/libasound.so.2
#8  0x00000038df184f89 in _snd_pcm_softvol_open () from /lib64/libasound.so.2
#9  0x00000038df1502f8 in snd_pcm_free () from /lib64/libasound.so.2
#10 0x00000038df1509a7 in snd_pcm_open_slave () from /lib64/libasound.so.2
#11 0x00000038df16835a in _snd_pcm_plug_open () from /lib64/libasound.so.2
#12 0x00000038df1502f8 in snd_pcm_free () from /lib64/libasound.so.2
#13 0x00000038df1509a7 in snd_pcm_open_slave () from /lib64/libasound.so.2
#14 0x00000038df182dd6 in _snd_pcm_asym_open () from /lib64/libasound.so.2
#15 0x00000038df1502f8 in snd_pcm_free () from /lib64/libasound.so.2
#16 0x00000038df1508b4 in snd_pcm_free () from /lib64/libasound.so.2
#17 0x00002aaab37e9b38 in ?? () from /usr/lib64/gstreamer-0.10/libgstalsa.so
#18 0x00002aaab32b8565 in gst_audio_sink_get_type ()
   from /usr/lib64/libgstaudio-0.10.so.0
#19 0x00002aaab32bf980 in gst_ring_buffer_open_device ()
   from /usr/lib64/libgstaudio-0.10.so.0
#20 0x00002aaab32bbf09 in gst_base_audio_sink_get_type ()
   from /usr/lib64/libgstaudio-0.10.so.0
<snip>

Comment 1 Bastien Nocera 2006-08-21 17:36:38 UTC
My ainit.conf looks like that:
# enable/disable ainit
#
enable = yes

#
# overwrite target files, if exists
#
overwrite = yes

#
# first config file - for dmix plugin
#
template_0 = /etc/alsa/pcm/dmix.template
target_0  = /etc/alsa/pcm/dmix.conf
target_back_0  = /etc/alsa/pcm/dmix.conf.back
target_root_file_0 = yes

#
# second config file - for dsnoop plugin
#
template_1 = /etc/alsa/pcm/dsnoop.template
target_1 = /etc/alsa/pcm/dsnoop.conf
target_back_1 = /etc/alsa/pcm/dsnoop.conf.back
target_root_file_1 = yes


Comment 2 Martin Stransky 2006-10-13 15:32:54 UTC
Could you please check it in FC6?


Note You need to log in before you can comment on or make changes to this bug.