Bug 756383 - delay closing sound device
Summary: delay closing sound device
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-23 12:22 UTC by Pádraig Brady
Modified: 2012-08-07 16:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 16:59:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
pulseaudio --dump-conf (1.10 KB, application/octet-stream)
2011-11-23 12:22 UTC, Pádraig Brady
no flags Details
alsa-info (31.30 KB, application/octet-stream)
2011-11-23 12:27 UTC, Pádraig Brady
no flags Details

Description Pádraig Brady 2011-11-23 12:22:52 UTC
Created attachment 535455 [details]
pulseaudio --dump-conf

When using `play` or `mplayer`, there is a delay at exit,
as there is an exponential backoff done waiting on futexes.
Here is `strace -T` output when exiting from:
`AUDIODRIVER=pulseaudio play test.wav`

select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout) <0.000068>
write(7, "W", 1)                        = 1 <0.000066>
write(5, "x", 1)                        = 1 <0.000021>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000061>
write(7, "W", 1)                        = 1 <0.000057>
write(7, "W", 1)                        = 1 <0.000021>
write(7, "W", 1)                        = 1 <0.000021>
write(7, "W", 1)                        = 1 <0.000022>
write(7, "W", 1)                        = 1 <0.000021>
write(7, "W", 1)                        = 1 <0.000021>
write(7, "W", 1)                        = 1 <0.000021>
write(7, "W", 1)                        = 1 <0.000022>
write(7, "W", 1)                        = 1 <0.000020>
write(7, "W", 1)                        = 1 <0.000021>
write(7, "W", 1)                        = 1 <0.000019>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000121>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 11, NULL, 0x9c0a70) = -1 EAGAIN (Resource temporarily unavailable) <0.000038>
futex(0x99b0e4, FUTEX_WAIT_PRIVATE, 11, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000040>
futex(0x9c0a70, FUTEX_LOCK_PI_PRIVATE, 1) = 0 <0.000028>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000029>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 13, NULL, 0x9c0a70) = -1 EAGAIN (Resource temporarily unavailable) <0.000028>
futex(0x99b0e4, FUTEX_WAIT_PRIVATE, 13, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000027>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000027>
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout) <0.000031>
read(3, "\201\377\210\377\327\377\256\377m\377\272\377\256\0_\1\5\1\343\0i\1\35\1'\0\354\3779\0\7\0"..., 4096) = 982 <0.000032>
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout) <0.000032>
write(7, "W", 1)                        = 1 <0.000080>
write(5, "x", 1)                        = 1 <0.000031>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000031>
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout) <0.000031>
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout) <0.000032>
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout) <0.000030>
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout) <0.000040>
In:100%  00:00:00.54 [00:00:00.00] Out:8.68k [ -====|====- ]        Clip:0    ) = 79 <0.000067>
write(2, "\n", 1
)                       = 1 <0.000065>
munmap(0x7f37fa890000, 528384)          = 0 <0.000089>
write(2, "Done.\n", 6Done.
)                  = 6 <0.000064>
lseek(3, 17410, SEEK_SET)               = 17410 <0.000028>
close(3)                                = 0 <0.000031>
munmap(0x7f37fcf9c000, 4096)            = 0 <0.000063>
write(7, "W", 1)                        = 1 <0.000055>
write(5, "x", 1)                        = 1 <0.000041>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000067>
write(7, "W", 1)                        = 1 <0.000086>
write(7, "W", 1)                        = 1 <0.000030>
write(7, "W", 1)                        = 1 <0.000041>
write(7, "W", 1)                        = 1 <0.000040>
write(7, "W", 1)                        = 1 <0.000040>
write(7, "W", 1)                        = 1 <0.000040>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000144>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 15, NULL, 0x9c0a70) = 0 <0.004608>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000021>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 17, NULL, 0x9c0a70) = 0 <0.000189>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000045>
futex(0x99b0e0, FUTEX_WAKE_PRIVATE, 1)  = 1 <0.000072>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 19, NULL, 0x9c0a70) = -1 EAGAIN (Resource temporarily unavailable) <0.000019>
futex(0x99b0e4, FUTEX_WAIT_PRIVATE, 19, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000045>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000044>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 21, NULL, 0x9c0a70) = 0 <0.009874>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000013>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 23, NULL, 0x9c0a70) = 0 <0.020151>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000021>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 25, NULL, 0x9c0a70) = 0 <0.040720>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000035>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 27, NULL, 0x9c0a70) = 0 <0.084931>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000114>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 29, NULL, 0x9c0a70) = 0 <0.160620>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000045>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 31, NULL, 0x9c0a70) = 0 <0.241148>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000043>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 33, NULL, 0x9c0a70) = 0 <0.010042>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000045>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 35, NULL, 0x9c0a70) = 0 <0.020265>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000045>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 37, NULL, 0x9c0a70) = 0 <0.040595>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000079>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 39, NULL, 0x9c0a70) = 0 <0.080864>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000038>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 41, NULL, 0x9c0a70) = 0 <0.159914>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000062>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 43, NULL, 0x9c0a70) = 0 <0.319451>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000015>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 45, NULL, 0x9c0a70) = 0 <0.640880>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000038>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 47, NULL, 0x9c0a70) = 0 <0.960116>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000046>
write(7, "W", 1)                        = 1 <0.000116>
write(7, "W", 1)                        = 1 <0.000081>
write(7, "W", 1)                        = 1 <0.000050>
write(7, "W", 1)                        = 1 <0.000043>
write(7, "W", 1)                        = 1 <0.000044>
write(7, "W", 1)                        = 1 <0.000043>
write(7, "W", 1)                        = 1 <0.000051>
write(7, "W", 1)                        = 1 <0.000054>
write(7, "W", 1)                        = 1 <0.000041>
write(7, "W", 1)                        = 1 <0.000054>
write(7, "W", 1)                        = 1 <0.000043>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000254>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 49, NULL, 0x9c0a70) = 0 <0.000206>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000035>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 51, NULL, 0x9c0a70) = 0 <0.000104>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000045>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 53, NULL, 0x9c0a70) = 0 <0.001639>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000042>
futex(0x99b0e0, FUTEX_WAKE_PRIVATE, 1)  = 1 <0.000082>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 55, NULL, 0x9c0a70) = -1 EAGAIN (Resource temporarily unavailable) <0.000105>
futex(0x99b0e4, FUTEX_WAIT_PRIVATE, 55, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000037>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000037>
write(7, "W", 1)                        = 1 <0.000060>
write(7, "W", 1)                        = 1 <0.000054>
write(7, "W", 1)                        = 1 <0.000041>
write(7, "W", 1)                        = 1 <0.000075>
write(7, "W", 1)                        = 1 <0.000045>
write(7, "W", 1)                        = 1 <0.000046>
write(7, "W", 1)                        = 1 <0.000046>
write(7, "W", 1)                        = 1 <0.000049>
write(7, "W", 1)                        = 1 <0.000044>
write(7, "W", 1)                        = 1 <0.000044>
write(7, "W", 1)                        = 1 <0.000045>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000045>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 57, NULL, 0x9c0a70) = 0 <0.000214>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000015>
futex(0x99b0e0, FUTEX_WAKE_PRIVATE, 1)  = 1 <0.000017>
futex(0x99b0e4, FUTEX_WAIT_REQUEUE_PI_PRIVATE, 59, NULL, 0x9c0a70) = -1 EAGAIN (Resource temporarily unavailable) <0.000019>
futex(0x99b0e4, FUTEX_WAIT_PRIVATE, 59, NULL) = -1 EAGAIN (Resource temporarily unavailable) <0.000014>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000051>
write(7, "W", 1)                        = 1 <0.000045>
write(7, "W", 1)                        = 1 <0.000073>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000033>
futex(0x9c0a70, FUTEX_LOCK_PI_PRIVATE, 1) = 0 <0.000059>
write(7, "W", 1)                        = 1 <0.000036>
futex(0x9c0a70, FUTEX_UNLOCK_PI_PRIVATE, 0) = 0 <0.000059>
write(5, "x", 1)                        = 1 <0.000014>
write(5, "x", 1)                        = 1 <0.000013>
close(8)                                = 0 <0.000022>
munmap(0x7f37f6689000, 67112960)        = 0 <0.000033>
unlink("/dev/shm/pulse-shm-733573785")  = 0 <0.000047>
close(6)                                = 0 <0.000014>
close(7)                                = 0 <0.000018>
close(5)                                = 0 <0.000013>
close(4)                                = 0 <0.000017>
ioctl(0, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, {B38400 opost isig icanon echo ...}) = 0 <0.000017>
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 <0.000013>
munmap(0x7f37fa911000, 2111408)         = 0 <0.000027>
munmap(0x7f37fad3e000, 2106480)         = 0 <0.000028>
munmap(0x7f37fab15000, 2261936)         = 0 <0.000033>
munmap(0x7f37faf41000, 2111408)         = 0 <0.000032>
munmap(0x7f37fb145000, 2107384)         = 0 <0.000025>
munmap(0x7f37fb348000, 2111224)         = 0 <0.000029>
munmap(0x7f37fb54c000, 2111408)         = 0 <0.000026>
munmap(0x7f37fb750000, 2111408)         = 0 <0.000025>
munmap(0x7f37fb954000, 2102120)         = 0 <0.000062>
munmap(0x7f37fbb56000, 2111408)         = 0 <0.000059>
munmap(0x7f37fbd5a000, 2102776)         = 0 <0.000059>
munmap(0x7f37fbf5c000, 2111408)         = 0 <0.000076>
munmap(0x7f37fc160000, 2111408)         = 0 <0.000059>
munmap(0x7f37fc364000, 2102496)         = 0 <0.000154>
munmap(0x7f37fc566000, 2108928)         = 0 <0.000142>
munmap(0x3873a00000, 2126992)           = 0 <0.000166>
munmap(0x7f37fc769000, 2111408)         = 0 <0.000263>
munmap(0x7f37fc96d000, 2111408)         = 0 <0.000142>
munmap(0x7f37fcb71000, 2102152)         = 0 <0.000071>
munmap(0x3860e00000, 2132512)           = 0 <0.000027>
munmap(0x7f37fcd73000, 2108952)         = 0 <0.000029>
exit_group(0)                           = ?

Comment 1 Pádraig Brady 2011-11-23 12:27:06 UTC
Created attachment 535457 [details]
alsa-info

Comment 2 Fedora End Of Life 2012-08-07 16:59:07 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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