https://bugs.kde.org/show_bug.cgi?id=529131
Bug ID: 529131
Summary: kded6 SIGSEGV on session teardown when activated by
Dolphin outside Plasma; KCrash restart holds the user
D-Bus for 90 s
Classification: Frameworks and Libraries
Product: frameworks-kded
Version First 6.32.0
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 198669
--> https://bugs.kde.org/attachment.cgi?id=198669&action=edit
log
DESCRIPTION
kded6 crashes with SIGSEGV during session teardown when it was D-Bus-activated
by Dolphin in a non-Plasma Wayland session (Noctalia shell on Umbriel). KCrash
immediately restarts it, but the Wayland display is already gone, so the
restarted process fails with "Failed to create wl_display" and keeps the
org.kde.kded6 D-Bus name alive until systemd finally SIGKILLs it at
final-sigterm, about 90 seconds later.
A control reboot with no Dolphin/kded6 process takes 374 ms, so the delay is
caused by this crash/restart path.
STEPS TO REPRODUCE
1. Gentoo, KDE Frameworks 6.32.0, Wayland session Umbriel 0.1.0 with Noctalia
v5.5.0 (not Plasma).
2. Open Dolphin and leave it running. It activates kded6 over D-Bus:
Nov 20 02:07:34.671326 dbus-daemon[1022]: Activating service
name='org.kde.kded6' requested by ':1.45' (uid=1000 pid=6699
comm="/usr/bin/dolphin --new-window --select /home/datex")
3. Request shutdown/reboot from the shell.
4. Observe the shutdown stall.
OBSERVED RESULT
Nov 20 02:17:05.098323 umbriel[1047]: [session] shutdown requested:
compositor=Umbriel
Nov 20 02:17:05.101... umbriel[1047]: [session] shutdown: systemctl poweroff
launched
Nov 20 02:17:05.135187 systemd[944]: Stopping Dolphin file manager...
Nov 20 02:17:05.144243 systemd[944]: Stopped Dolphin file manager.
Nov 20 02:17:05.149742 org.kde.kded6[7039]: kf.notifications: Failed to play
sound with canberra: IO error
Nov 20 02:17:05.149742 org.kde.kded6[7039]: org.kde.pulseaudio: context kaput
Nov 20 02:17:05.149742 org.kde.kded6[7039]: org.kde.pulseaudio: No object for
name
"alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__Speaker__sink"
returning nullptr
Nov 20 02:17:06.165618 org.kde.kded6[7039]: KCrash: Attempting to start
/usr/bin/kded6
Nov 20 02:17:06.166779 org.kde.kded6[7039]: KCrash: Application 'kded6'
crashing... crashRecursionCounter = 2
Nov 20 02:17:06.170791 systemd-coredump[27117]: Process 7039 (kded6) of user
1000 terminated abnormally with signal 11/SEGV, processing...
Nov 20 02:17:06.172433 org.kde.kded6[27116]: Failed to create wl_display (No
such file or directory)
Nov 20 02:18:35.257476 systemd[944]: dbus.service: State 'final-sigterm' timed
out. Killing.
Nov 20 02:18:35.257546 systemd[944]: dbus.service: Killing process 27116
(kded6) with signal SIGKILL.
Nov 20 02:18:35.258698 systemd[944]: dbus.service: Failed with result
'timeout'.
Total shutdown: 02:17:05.098 -> 02:18:35.259 = 90.16 seconds.
Control run without kded6:
02:28:15.008 [session] reboot requested
02:28:15.018 systemd-logind[729]: System is rebooting.
02:28:15.382 last journal line (374 ms).
EXPECTED RESULT
kded6 should exit cleanly on session teardown, or KCrash should not restart a
Wayland client after the compositor/display is gone, and the user D-Bus should
not be held for 90 seconds by a restarted process that cannot connect.
SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux (rolling), systemd 262, kernel 7.3.5-cachyos-r1
KDE Plasma Version: not used in this session (Noctalia v5.5.0 on Umbriel 0.1.0)
KDE Frameworks Version: 6.32.0 (kded-6.32.0, kcrash-6.32.0,
knotifications-6.32.0)
Qt Version: 6.11.3
Graphics Platform: Wayland
Applications: dolphin-26.08.3, pulseaudio-qt-1.9.0
Hardware: MSI Modern 14 H D13MG, Intel iGPU, single eDP-1 output
ADDITIONAL INFORMATION
The PulseAudio warnings immediately before the crash ("context kaput", missing
Speaker/Mic objects) are a plausible trigger because kf.notifications tries to
play a sound while the audio devices are going away, but this is only an
observation, not a proven cause.
No backtrace is attached: the earlier attempt was cut off by the reboot ("SEGV,
processing..." is the last coredump line), and coredumpctl has no kded6 core.
To get one, reproduce with logout instead of reboot and attach `coredumpctl
info kded6` / `coredumpctl debug kded6`.
Local workarounds: a Noctalia hook runs `pkill -TERM -x kded6` before
reboot/shutdown, and a user drop-in sets `dbus.service TimeoutStopSec=5s`. The
latter only caps the 90 s wait; it does not fix the crash.
--
You are receiving this mail because:
You are watching all bug changes.