<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 - An existing *-runtime.tmp link blocks server startup"
href="https://bugs.freedesktop.org/show_bug.cgi?id=104729">104729</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>An existing *-runtime.tmp link blocks server startup
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>kai.ruhnau@target-sg.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>This is for v10.0, but the problematic code hasn't changed since.
I got myself into the following SD Card state on my embedded device (probably
through power cycling at the wrong moment):
$ ls -lah ~/.config/pulse
...
a811db6950f84a578b3674d9456012e8-card-database.arm-target-linux-gnueabi.simple
... a811db6950f84a578b3674d9456012e8-default-sink
... a811db6950f84a578b3674d9456012e8-default-source
...
a811db6950f84a578b3674d9456012e8-device-volumes.arm-target-linux-gnueabi.simple
... a811db6950f84a578b3674d9456012e8-runtime -> /tmp/pulse-bbkhoaNGbVPN
... a811db6950f84a578b3674d9456012e8-runtime.tmp -> /tmp/pulse-bbkhoaNGbVPN
...
a811db6950f84a578b3674d9456012e8-stream-volumes.arm-target-linux-gnueabi.simple
... cookie
Note that there is an additional *-runtime.tmp folder present. Both runtime
links point to a folder that doesn't exist anymore—it was on a tmpfs.
In this setup, the PulseAudio daemon doesn't start and hangs in
pa_get_runtime_dir() from core-util.c, because it doesn't timeout on the error
condition
<a href="https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/pulsecore/core-util.c?h=v10.0#n1890">https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/pulsecore/core-util.c?h=v10.0#n1890</a>
and continues to try again. The moment I delete the extra *-runtime.tmp file,
the server successfully continues its startup.
On my device, I have a couple of options like moving the XDG_RUNTIME_DIR to a
tmpfs (I don't need any persistence), but as it is now, this could be used for
a DOS for a normal user.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>