<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - PulseAudio hangs after the first stream is ended"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97874">97874</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PulseAudio hangs after the first stream is ended
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>ARM
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>daemon
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>amigo.elite@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=126661" name="attach_126661" title="strace -Tttyy -s 111111 -o pa.strace -f -p `pidof pulseaudio`">attachment 126661</a> <a href="attachment.cgi?id=126661&action=edit" title="strace -Tttyy -s 111111 -o pa.strace -f -p `pidof pulseaudio`">[details]</a></span>
strace -Tttyy -s 111111 -o pa.strace -f -p `pidof pulseaudio`
Description:
PulseAudio hangs after hangs after the first input stream has ended.
Reproducibility: 95%
Steps to reproduce:
1. Setup new pulseaudio in system mode
2. Exec following:
# LANG=C PULSE_LOG_TIME=1 PULSE_LOG=4 paplay /usr/share/sounds/alsa/Noise.wav
3. Repeat step 2
Actual result:
# LANG=C PULSE_LOG_TIME=1 PULSE_LOG=4 paplay /usr/share/sounds/alsa/Noise.wav
( 0.000| 0.000) Parsing configuration file '/etc/pulse/client.conf'
( 0.002| 0.002) Using shared memory pool with 1024 slots of size 64.0 KiB
each, total size is 64.0 MiB, maximum usable slot size is 65496
( 0.003| 0.001) Not doing autospawn since we are root.
( 0.004| 0.000) Trying to connect to /run/user/0/pulse/native...
( 0.005| 0.000) connect(): No such file or directory (2)
( 0.005| 0.000) Trying to connect to /var/run/pulse/native...
( 0.007| 0.002) SHM possible: yes
( 0.010| 0.002) Protocol version: remote 30, local 30
( 0.011| 0.000) Negotiated SHM: no
( 30.057| 30.045) Failed to drain stream: Timeout
Expected result:
# LANG=C PULSE_LOG_TIME=1 PULSE_LOG=4 paplay /usr/share/sounds/alsa/Noise.wav
( 0.000| 0.000) Parsing configuration file '/etc/pulse/client.conf'
( 0.002| 0.002) Using shared memory pool with 1024 slots of size 64.0 KiB
each, total size is 64.0 MiB, maximum usable slot size is 65496
( 0.003| 0.001) Not doing autospawn since we are root.
( 0.004| 0.000) Trying to connect to /run/user/0/pulse/native...
( 0.004| 0.000) connect(): No such file or directory (2)
( 0.005| 0.000) Trying to connect to /var/run/pulse/native...
( 0.006| 0.001) SHM possible: yes
( 0.009| 0.002) Protocol version: remote 30, local 30
( 0.009| 0.000) Negotiated SHM: no
Additional info:
Sometimes PA accepts second stream without any timeouts but I can't find any
particular conditions in which it was happening.
While PA is in a hang I can still use HTTP/CLI protocols (pactl, Web UI).
Please note that PA system mode is because because I want to use my RPi device
as a network media player.
I'm using Fedora 23 on RPi 2 and here are some details:
# cat /etc/fedora-release
Fedora release 23 (Twenty Three)
# cat /proc/version
Linux version 4.1.16-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303
(prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #833
SMP Wed Jan 27 14:32:22 GMT 2016
# rpm -qa | grep pulse
pulseaudio-libs-7.1-1.fc23.1.armv7hl
pulseaudio-7.1-1.fc23.1.armv7hl
pulseaudio-utils-7.1-1.fc23.1.armv7hl
# gdb -p `pidof pulseaudio` -ex 'thr a a bt f' #while PA in hang
[..]
#0 0x767f1d54 in ppoll () from /lib/libc.so.6
No symbol table info available.
#1 0x76ef4c94 in pa_rtpoll_run () from /lib/libpulsecore-7.1.so
No symbol table info available.
#2 0x71e9228c in thread_func () from
/usr/lib/pulse-7.1/modules/libalsa-util.so
No symbol table info available.
#3 0x76d20940 in internal_thread_func () from
/usr/lib/pulseaudio/libpulsecommon-7.1.so
No symbol table info available.
#4 0x7694f0fc in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5 0x767fe370 in ?? () from /lib/libc.so.6
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 1 (Thread 0x76232000 (LWP 3064)):
#0 0x767f1d54 in ppoll () from /lib/libc.so.6
No symbol table info available.
#1 0x76e8d3f0 in pa_mainloop_poll () from /lib/libpulse.so.0
No symbol table info available.
#2 0x76e8da90 in pa_mainloop_iterate () from /lib/libpulse.so.0
No symbol table info available.
#3 0x76e8db68 in pa_mainloop_run () from /lib/libpulse.so.0
No symbol table info available.
#4 0x54b197bc in main ()
No symbol table info available.
I've also attached a complete output of strace and all related configs.
Thanks for any suggestions!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>