🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #583

Bug#1150678: kwin: segfault in ColorManagementOutputV1 when output is removed (screen off / DPMS)

#583
From: Hefee
Date: Mon, 12 Oct 2026 10:40
116 lines
6463 bytes
--nextPartmDcV6iMsSgq5Cmru32VMUg
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Hefee <hefee@debian.org>
To: 1150678@bugs.debian.org
Cc: 1150678-owner@bugs.debian.org
Date: Mon, 12 Oct 2026 12:28:52 +0200
Message-ID: <jf__OoVNTTi-bPWhxisdnw@debian.org>
MIME-Version: 1.0

Control: forcemerge 1147212 -1

Hey,

thanks for reporting the bug. Your reported issue is already reported in 
#1147212 and there is an ongoing proposed-update for Trixie ( see #1150067 ) 
to bring the fix to Trixie. The proposed fix is the backport of upstream commits 
e1fd647b and 172f8f2e.

Best regards,

hefee

--

On Montag, 12. Oktober 2026 09:19 Phil Gees wrote:
> Source: kwin
> Version: 4:6.3.6-1
> Severity: important
> Tags: patch
> X-Debbugs-Cc: philgees@hotmail.com
> 
> Dear Maintainer,
> 
> kwin_wayland segfaults when a display output is removed and then
> re-enabled, e.g. via Power Management's "Turn off screen" idle action,
> or DPMS screen-off followed by wake. All running applications (Firefox
> in particular) crash along with the compositor, so the whole Wayland
> session is lost.
> 
> This is an exact match for upstream KDE bug 504959, already fixed
> upstream by commit e1fd647b979df7f0bd10065932a614a2aa806e87
> ("wayland: Make ColorManagementOutputV1 handle output removal better",
> Vlad Zahorodnii, 2025-05-30). The fix is included in Plasma 6.4, but
> trixie ships 6.3.6, which is affected.
> 
> Since wl_output removal is racy, a client can request
> wp_color_manager_v1.get_output() after KWin has destroyed the
> underlying handle but before the wl_output resource is gone. KWin then
> dereferences a null pointer:
> 
> Core was generated by `/usr/bin/kwin_wayland --wayland-fd 7 ...'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> 
> #4  KWin::ColorManagementOutputV1::ColorManagementOutputV1
>       (this=0x55951f72c7d0, client=<optimized out>, id=76,
>        version=1, output=0x0)
>       at ./src/wayland/colormanagement_v1.cpp:580
> #5  ffi_call () from libffi.so.8
> #8  wl_closure_invoke () from libwayland-server.so.0
> #10 wl_event_loop_dispatch () from libwayland-server.so.0
> #11 KWin::Display::dispatchEvents () at ./src/wayland/display.cpp:121
> 
> Reproducible: always, when the screen is turned off by the idle action
> with Firefox running, then woken up.
> 
> Environment: Debian trixie, kwin-wayland 4:6.3.6-1, Intel graphics
> (i915), Mesa 25.0.7, Wayland session.
> 
> Request: please backport the upstream fix (a small null-safety change
> in src/wayland/colormanagement_v1.cpp/h) to the trixie package.
> Upstream bug: https://bugs.kde.org/show_bug.cgi?id=504959
> Upstream fix:
> https://invent.kde.org/plasma/kwin/-/commit/e1fd647b979df7f0bd10065932a614a
> 2aa806e87
> 
> I can provide the full coredump on request.
> 
> 
> -- System Information:
> Debian Release: 13.7
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
> 'stable-debug'), (500, 'stable') Architecture: amd64 (x86_64)
> 
> Kernel: Linux 6.12.111+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
> LANGUAGE=en_AU:en Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled


--nextPartmDcV6iMsSgq5Cmru32VMUg
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOewRoCAWtykmSRoG462wCFBgVjYFAmrMtmQACgkQ462wCFBg
VjZhWg/8CLKJ3XBTfm4zWEWCYvdL4Mp83XpHjZpaSv7LsG3I4UARAEgxKKlOuGU7
AbT62yKrpCLGVhkbgQFHe84f6Orq2qBY5TyhsI2FMxKE6+B/QjjPXYOaQCk3g2sB
avEub1olZEsnF4lYh7aKooUimp8MQRLt2ge9jwi1VgZF6zKfN7/DjtI/vBXjHcv6
CUmkA8dX72a7FylDmyTNfPoHnpjnCKCez89J4dwqc+J2ZI0+P50vX7fvRuxBXPHc
spxu6Y5hNRLaP5yOGVBzbhH9laXAt6HAeecOJsKzmFUad7D1WOcgJU1B+NuJ7Cp1
4tyOVQS/sXIxKkeyt9+aQKVMw2RXM2cfle+En0APhNlqZzUCMvmBLhAJfs/BR0YP
OgyFKY5qINbBJH5koF1ktXC9IwGbnmyLqOTKOH6HChDLpfMOqaxrv463lwEpoWUI
5ZLbh5GJpEVEOMqvXewvh/v2Pj5cyoon3KGwE3o9RWvtKTqSoeN/cb63/ah6YA2n
KrhFsTFmim1fxvlFGWH20fjmr+5ryfFuhNLA59y+nLDNP/QW5BumKkqZ3pynQFo3
yQBpQmOn1NsC6UbxmfIYAXEjUzjn8o1/BB/LrBVuvtb5p3PGC2qkYPumA1GmiIle
oaHo77hReMonMRYEakEGBPE44WSpxxuSGJj4SlDvhH6vjYRKbyw=
=RyQX
-----END PGP SIGNATURE-----

--nextPartmDcV6iMsSgq5Cmru32VMUg--
Technical Details
Message-ID: <NNlBL-53z8-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NNiDT-526t-1@gated-at.bofh.it> <NNiDT-526t-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Hefee <hefee@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1150678: kwin: segfault in ColorManagementOutputV1 when output is removed (screen off / DPMS)
Date: Mon, 12 Oct 2026 12:40:01 +0200
Message-ID: <NNlBL-53z8-11@gated-at.bofh.it>
References: <NNiDT-526t-1@gated-at.bofh.it> <NNiDT-526t-1@gated-at.bofh.it>
X-Original-To: 1150678@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Oct 12 10:31:15 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Hefee <hefee@debian.org>, 1150678@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-qt-kde@lists.debian.org
X-Debian-Pr-Message: followup 1150678
X-Debian-Pr-Package: src:kwin
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: kwin
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPartmDcV6iMsSgq5Cmru32VMUg";
 micalg="pgp-sha512"; protocol="application/pgp-signature"
X-Debian-User: hefee
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996390
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 116
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1150678-owner@bugs.debian.org
X-Original-Date: Mon, 12 Oct 2026 12:28:52 +0200
X-Original-Message-ID: <jf__OoVNTTi-bPWhxisdnw@debian.org>
X-Original-References: <179178957182.12298.9103871233280000967.reportbug@Boddah-Debian.philgees.com> <179178957182.12298.9103871233280000967.reportbug@Boddah-Debian.philgees.com>