[pulseaudio-tickets] [Bug 104729] New: An existing *-runtime.tmp link blocks server startup
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jan 22 13:34:12 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=104729
Bug ID: 104729
Summary: An existing *-runtime.tmp link blocks server startup
Product: PulseAudio
Version: unspecified
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: daemon
Assignee: pulseaudio-bugs at lists.freedesktop.org
Reporter: kai.ruhnau at target-sg.com
QA Contact: pulseaudio-bugs at lists.freedesktop.org
CC: lennart at poettering.net
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
https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/pulsecore/core-util.c?h=v10.0#n1890
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20180122/d3850de7/attachment.html>
More information about the pulseaudio-bugs
mailing list