Skip to contentSkip to conversation

: Apparent race condition in snd_pcm_drain() sometimes hangs userspace processes

ALSA - driver 0001306 [email protected] 1 participant 1 message Aug 3, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1306>
======================================================================
Reported By: jdthood
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   1306
Category:                   CORE - pcm
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             08-03-2005 17:12 CEST
Last Modified:              08-03-2005 17:18 CEST

======================================================================
Summary: Apparent race condition in snd_pcm_drain() sometimes
hangs userspace processes
Description:
esd with libesd-alsa0 sometimes hangs userspace processes. Reproducible on i386 and powerpc.

bt of the hanged state of esd, stracing esd appears to remove the problem:

#0  0xffffe410 in ?? ()
#1  0xbfff9068 in ?? ()
#2  0xffffffff in ?? ()
#3  0x00000001 in ?? ()
#4  0xb7f1a4b5 in poll () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7dd3ca1 in snd_pcm_wait_nocheck () from /usr/lib/libasound.so.2
#6  0xb7e09a2d in _snd_pcm_dmix_open () from /usr/lib/libasound.so.2
#7  0xb7dd1a9c in snd_pcm_drain () from /usr/lib/libasound.so.2
#8  0xb7dee0ea in _snd_pcm_rate_open () from /usr/lib/libasound.so.2
#9  0xb7dd1a9c in snd_pcm_drain () from /usr/lib/libasound.so.2

#10 0xb7fd12f9 in esd_audio_flush () from /usr/lib/libesd.so.0 #11 0x0804bdd0 in clean_exit ()
#12 0x0804a927 in clean_exit ()
#13 0xb7e72e8a in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #14 0x08049751 in ?? ()
(gdb) cont
Continuing.
======================================================================

----------------------------------------------------------------------
tiwai - 08-03-05 17:18
----------------------------------------------------------------------
Which driver version?
There was a bug around semaphore races fixed in 1.0.9a.

Issue History
Date Modified Username Field Change
======================================================================
08-03-05 17:12 jdthood New Issue
08-03-05 17:18 tiwai Note Added: 0005634
======================================================================

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click