Public bug reported:

Release: Ubuntu 26.04.1 LTS (resolute), Kubuntu / Plasma 6.6.7 Wayland
Package versions (apt-cache policy):
  libddcutil5 / ddcutil: 2.2.5-1 (resolute/universe)
  powerdevil: 4:6.6.7-0ubuntu0.1 (resolute-updates/universe)

Expected: when the external monitor reconnects, powerdevil keeps running and 
DDC/CI brightness control continues to work.
What happened instead: org_kde_powerdevil crashed with SIGSEGV inside 
libddcutil (details below).


libddcutil5 2.2.5-1 makes the KDE power management daemon (org_kde_powerdevil, 
powerdevil 4:6.6.7-0ubuntu0.1) crash with SIGSEGV when an external monitor 
disconnects and reconnects quickly. Trigger on 2026-11-29: the laptop lid was 
closed and the external monitor was the only output. I plugged a second 
computer into the monitor's DisplayPort input, and the monitor reset its USB-C 
link to the laptop for about 1.5 s. The monitor is a Dell U4323QE on USB-C with 
a built-in dock, on a ThinkPad X13 Gen 7, Plasma 6.6.7 Wayland, kernel 
7.0.0-44-generic.

It has happened twice, on 2026-11-25 and 2026-11-29. Both times the
faulting frame was the same, libddcutil.so.5+0x3a1a4:

Thread 1 (crashing, libddcutil recheck thread)
#6 ddc_initial_checks_by_dref (dref=..., newly_added=...) at 
ddc/ddc_initial_checks.c:566
#7 dw_recheck_dref (dref=...) at dw/dw_dref.c:201
#8 dw_recheck_displays_func (data=...) at dw/dw_recheck.c:182

Main thread (joining the thread above)
#7 g_thread_join (thread=<recheck thread>)
#8 dw_stop_watch_displays (wait=true, ...) at dw/dw_main.c:380
#9 dw_redetect_displays () at dw/dw_main.c:442
#10 ddca_redetect_displays () at libmain/api_displays.c:472
#11 ?? () from libpowerdevilcore.so

Sequence in the journal both times:
1. "Removing connected display on bus 18"
2. "Adding connected display with bus 16" (no DRM connector found)
3. ddc_initial_checks_by_dref() returns DDCRC_DISCONNECTED
4. a DISPLAY_CONNECTED event is still emitted, with an empty connector name
5. powerdevil calls ddca_redetect_displays()
6. the recheck thread segfaults about 1 s later

Upstream:
- https://github.com/rockowitz/ddcutil/issues/586 (follow-up to 
https://bugs.kde.org/show_bug.cgi?id=515906): the same crash location with 
powerdevil. The maintainer called it "an apparent race condition" and fixed it 
in the 2.2.6-dev branch. The issue was closed as fixed on 2026-07-27.
- https://github.com/rockowitz/ddcutil/pull/654: a related abort() on the same 
disconnect path, merged into 3.0.3-dev.

Request: update ddcutil in resolute to a fixed upstream release (2.2.6
or later), or backport the #586 fix to 2.2.5 as an SRU.

Workaround: Environment=POWERDEVIL_NO_DDCUTIL=1 in a user drop-in for
plasma-powerdevil.service. This disables DDC/CI brightness control in
Plasma.

Full gdb backtrace (all threads) attached.

** Affects: ddcutil (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 resolute

** Attachment added: "Full gdb backtrace (all threads), crash 2026-11-29 20:08"
   
https://bugs.launchpad.net/bugs/2178374/+attachment/6022087/+files/powerdevil-ddcutil-backtrace-2026-11-29.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178374

Title:
  libddcutil5 2.2.5: org_kde_powerdevil segfaults in
  ddc_initial_checks_by_dref() on monitor hotplug (upstream  fixed after
  2.2.5, ddcutil #586)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ddcutil/+bug/2178374/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to