Article View: linux.debian.bugs.dist
Article #1451Bug#1151390: Subject: kwin-wayland: segfault in ColorManagementOutputV1 when a monitor is unplugged (fixed upstream in 6.4.5)
From: Hefee
Date: Tue, 20 Oct 2026 14:30
Date: Tue, 20 Oct 2026 14:30
130 lines
6997 bytes
6997 bytes
--nextPartEE2UmFSLQJKrFpRMDcfhrg
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Hefee <hefee@debian.org>
To: Berg Mann <underbergmann@yahoo.com>, 1151390@bugs.debian.org
Date: Tue, 20 Oct 2026 16:20:05 +0200
Message-ID: <7_wLVQlHTkCkNUna5qK3vA@debian.org>
In-Reply-To: <406591584.385533.1792501288591@mail.yahoo.com>
References: <406591584.385533.1792501288591@mail.yahoo.com>
MIME-Version: 1.0
control: forcemerge 1150067 1151390
Hey,
your issue and fix was already reported at #1147212.
https://bugs.debian.org/1147212
> Could these be included in a trixie point release?
Yes, a request for a proposed upload is already running #1150067
https://bugs.debian.org/1150067
> This report was drafted with an AI assistant (Claude Opus 5.5).
Please try harder next time to find if a issue that was already reported does
have the same subject so it is easy to spot. It is work on our side to handle
the requests.
It is read like a AI crafted mail: too long explanation what happens and why.
But the most relevant information is missing, does those two patches are fixing
your issue? How did you test that these two patches did fix you issue?
Regards,
hefee
--
On Dienstag, 20. Oktober 2026 15:01 Berg Mann wrote:
> Package: kwin-wayland
> Version: 4:6.3.6-1
> Severity: important
> Tags: patch fixed-upstream trixie
> Control: forwarded -1 https://bugs.kde.org/show_bug.cgi?id=504959
>
> Dear Maintainer,
>
> kwin_wayland 6.3.6 in trixie crashes with SIGSEGV when external monitors
> are removed, taking down the whole Plasma session. On my machine this
> happens when unplugging a Thunderbolt dock with two monitors attached.
>
> Cause: wl_output removal is racy. A client (Firefox, Chromium, Electron
> apps, anything using wp_color_manager_v1) can send
> wp_color_manager_v1.get_output for a wl_output whose backing output KWin
> has already removed. ColorManagerV1::wp_color_manager_v1_get_output()
> then calls OutputInterface::get(output)->handle(), which is null, and
> the ColorManagementOutputV1 constructor dereferences it
> (src/wayland/colormanagement_v1.cpp:580 in 6.3.6).
>
> Key frames from the symbolized backtrace of the first crash (client was
> firefox-esr; core no longer available):
>
> #4 KWin::ColorManagementOutputV1::ColorManagementOutputV1(wl_client*,
> uint, uint, KWin::Output*) (output=0x0) at
> src/wayland/colormanagement_v1.cpp:580
> ... libffi / libwayland-server
> #10 wl_event_loop_dispatch
> #11 KWin::Display::dispatchEvents()
>
> All three crashes fault at the same address (libkwin.so.6 + 0x5a8130).
> Closing Firefox before unplugging does not avoid it, since other
> clients send the same request.
>
> Upstream fix (KDE bug 504959, fixed in 6.4.5), two small commits:
>
> e1fd647b979df7f0bd10065932a614a2aa806e87
> wayland: Make ColorManagementOutputV1 handle output removal better
>
> https://invent.kde.org/plasma/kwin/-/commit/e1fd647b979df7f0bd10065932a614a
> 2aa806e87
>
> 172f8f2e71d93a27f23586587d9cf86cbfee8615
> wayland: Check for nullptr output in ColorManagementOutputV1
>
> https://invent.kde.org/plasma/kwin/-/commit/172f8f2e71d93a27f23586587d9cf86
> cbfee8615
>
> (Cherry-picked to Plasma/6.4 as 598438b9 and 5baacbef.) Both only touch
> src/wayland/colormanagement_v1.{cpp,h}, which is the same code that
> 6.3.6 ships, so they should backport cleanly.
>
> Could these be included in a trixie point release?
>
> This report was drafted with an AI assistant (Claude Opus 5.5). The crashes,
> versions and backtraces are from my system; I checked that the upstream
> patches apply to the 6.3.6 source.
>
> System: Debian 13 (trixie), amd64, kernel 6.12.113+deb13-amd64
> kwin-wayland 4:6.3.6-1
> libqt6core6t64 6.8.2+dfsg-9+deb13u2
> libwayland-server0 1.23.1-3
> Hardware: Dell XPS 15 9510 (Intel + NVIDIA), Dell SD25TB4 dock
>
> Thanks!
--nextPartEE2UmFSLQJKrFpRMDcfhrg
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEOewRoCAWtykmSRoG462wCFBgVjYFAmrXeJUACgkQ462wCFBg
VjZ8lxAApfqwXDNpNvBdJQKylVmbtdOLch5FufnCsD5HwDQ2yAU6JJwjLGcymDBg
Yj8dF3wLt4DMXhf34t0hCWTEWiYNI0N5c8v3m4iUY2EgAn7pcWDhJHucJ6BDDWNa
UhzDnhl4Bl9Xb3NOEfRxWcu1Y9W4eDBeo4/2k4U48V0jVEYKFabPRZjPl3m/5Hsc
7mVblC7YQfnbkHn18CBBUgSJNPbecpCc0rzNo6btlQlas+WNFdo5RqzwuPiLAfa8
1a/SBxuMFiZEziyw7Kcb+Is+t4fDxKSAbAzwydU5uBj9pUh+gBD3cYjvaruwDYeO
vp+Fr9WhPoFZxMcZlfo3Iv0geq1i6q9I3+ikG3bNL7ASTUIyYXfP9o9pffy988k2
HiKX+sTsJmGKXjYhH1n7yXeWfZaefilf8Sa8gy9lhwpXS5DoL9K25EQtvMqifkEl
5uIThUrWdy/HquURT4v0x9rQnmupywYtS5XE3TZQ38G/2bg0NVluXS/63nd7uoHP
OtDbR6ZZH8tgp+OJyz8t38l+AAUnfsLlka5+1FAkeCC1iZLLv6ul7fmBm2Vww6F1
8L2TOZoxSjNDx28zh/fPBsV5rvOLCltD0Tre+kh4dluhf0jsvnJ4nSwn1focDfdM
Vxxxi2q+uqCPzFmNZzcGh+1x+YJRJ1GFnC+0yqnslBaykl4vBXo=
=eGLl
-----END PGP SIGNATURE-----
--nextPartEE2UmFSLQJKrFpRMDcfhrg--
Technical Details
Message-ID:
<NQj0J-6Msd-3@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!robomodReferences:
<NQj0J-6Msd-5@gated-at.bofh.it> <NQj0J-6Msd-5@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#1151390: Subject: kwin-wayland: segfault in ColorManagementOutputV1 when a monitor is unplugged (fixed upstream in 6.4.5) Date: Tue, 20 Oct 2026 16:30:01 +0200 Message-ID: <NQj0J-6Msd-3@gated-at.bofh.it> References: <NQj0J-6Msd-5@gated-at.bofh.it> <NQj0J-6Msd-5@gated-at.bofh.it> X-Original-To: Berg Mann <underbergmann@yahoo.com>, 1151390@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Oct 20 14:23:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Hefee <hefee@debian.org>, 1151390@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-qt-kde@lists.debian.org X-Debian-Pr-Message: followup 1151390 X-Debian-Pr-Package: kwin-wayland X-Debian-Pr-Keywords: fixed-upstream patch trixie X-Debian-Pr-Source: kwin MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPartEE2UmFSLQJKrFpRMDcfhrg"; 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/1997696 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 130 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 20 Oct 2026 16:20:05 +0200 X-Original-Message-ID: <7_wLVQlHTkCkNUna5qK3vA@debian.org> X-Original-References: <406591584.385533.1792501288591@mail.yahoo.com> <406591584.385533.1792501288591@mail.yahoo.com>