Article View: linux.debian.bugs.dist
Article #3084Bug#1153019: libxkbregistry0: dangling libxml2 error handler crashes gnome-shell (upstream #529, fixed in 1.8.0)
From: Roland Steber
Date: Wed, 04 Nov 2026 14:30
Date: Wed, 04 Nov 2026 14:30
109 lines
8123 bytes
8123 bytes
--000000000000332521065f7406ee Content-Type: text/plain; charset="UTF-8" Package: libxkbregistry0 Version: 1.7.0-2 Severity: important Tags: upstream fixed-upstream Dear Maintainer, on trixie, gnome-shell (48.7-0+deb13u2, Wayland) repeatedly crashed with SIGSEGV about one second after login. The coredump shows the crash inside libxkbregistry, called from libxml2's error reporting while libgweather parses a weather response: #0 n/a (libxkbregistry.so.0 + 0x25ff) #1 n/a (libxkbregistry.so.0 + 0x28a2) #2 n/a (libxml2.so.2 + 0x36c0e) #3 __xmlRaiseError (libxml2.so.2 + 0x3873d) ... #8 xmlParseElement (libxml2.so.2) #9 xmlParseDocument (libxml2.so.2) #10 xmlParseMemory (libxml2.so.2) #11 n/a (libgweather-4.so.0 + 0x1d932) #12-#28 libgio / libsoup-3.0 callbacks #31 g_main_loop_run #32 meta_context_run_main_loop (libmutter-16.so.0) This is upstream issue https://github.com/xkbcommon/libxkbcommon/issues/529 rxkb_context_parse() installs a global libxml2 error handler that refers to the rxkb_context and does not reset it. Once the context is freed, any later libxml2 parse error in the same process (here: libgweather) crashes. Upstream fixed it in libxkbcommon 1.8.0 (NEWS: "Registry: Fixed libxml2 global error handler not reset after parsing, which could trigger a crash if the corresponding rxkb_context has been freed."). trixie-backports has 1.13.1, but trixie itself still ships 1.7.0-2. Whether the crash happens depends on the weather service response, so it appears random to users. Workaround: remove the weather location in GNOME Shell (gsettings set org.gnome.shell.weather locations "[]"). Could the upstream fix be backported to trixie via a stable update? Other versions involved: libxml2 2.12.7+dfsg+really2.9.14-2.1+deb13u3 libgweather-4-0t64 4.4.4-1 libsoup-3.0-0 3.6.5-3 libmutter-16-0 48.7-0+deb13u1 Thanks! --000000000000332521065f7406ee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div style=3D"line-break:after-white-space"><div style=3D"= width:71ch">Package: libxkbregistry0</div><div style=3D"width:71ch">Version= : 1.7.0-2</div><div style=3D"width:71ch">Severity: important</div><div styl= e=3D"width:71ch">Tags: upstream fixed-upstream</div><div style=3D"width:71c= h"><br></div><div style=3D"width:71ch">Dear Maintainer,</div><div style=3D"= width:71ch"><br></div><div style=3D"width:71ch">on trixie, gnome-shell (48.= 7-0+deb13u2, Wayland) repeatedly crashed with</div><div style=3D"width:71ch= ">SIGSEGV about one second after login. The coredump shows the crash inside= </div><div style=3D"width:71ch">libxkbregistry, called from libxml2's e= rror reporting while libgweather</div><div style=3D"width:71ch">parses a we= ather response:</div><div style=3D"width:71ch"><br></div><div style=3D"widt= h:71ch"> #0 n/a (libxkbregistry.so.0 + 0x25ff)</div><div style=3D"width:7= 1ch"> #1 n/a (libxkbregistry.so.0 + 0x28a2)</div><div style=3D"width:71ch= "> #2 n/a (libxml2.so.2 + 0x36c0e)</div><div style=3D"width:71ch"> #3 _= _xmlRaiseError (libxml2.so.2 + 0x3873d)</div><div style=3D"width:71ch"> ..= .</div><div style=3D"width:71ch"> #8 xmlParseElement (libxml2.so.2)</div>= <div style=3D"width:71ch"> #9 xmlParseDocument (libxml2.so.2)</div><div s= tyle=3D"width:71ch"> #10 xmlParseMemory (libxml2.so.2)</div><div style=3D"= width:71ch"> #11 n/a (libgweather-4.so.0 + 0x1d932)</div><div style=3D"wid= th:71ch"> #12-#28 libgio / libsoup-3.0 callbacks</div><div style=3D"width:= 71ch"> #31 g_main_loop_run</div><div style=3D"width:71ch"> #32 meta_conte= xt_run_main_loop (libmutter-16.so.0)</div><div style=3D"width:71ch"><br></d= iv><div style=3D"width:71ch">This is upstream issue</div><div style=3D"widt= h:71ch"><a href=3D"https://github.com/xkbcommon/libxkbcommon/issues/529" ta= rget=3D"_blank">https://github.com/xkbcommon/libxkbcommon/issues/529</a></d= iv><div style=3D"width:71ch">rxkb_context_parse() installs a global libxml2= error handler that refers</div><div style=3D"width:71ch">to the rxkb_conte= xt and does not reset it. Once the context is freed, any</div><div style=3D= "width:71ch">later libxml2 parse error in the same process (here: libgweath= er) crashes.</div><div style=3D"width:71ch"><br></div><div style=3D"width:7= 1ch">Upstream fixed it in libxkbcommon 1.8.0 (NEWS: "Registry: Fixed l= ibxml2</div><div style=3D"width:71ch">global error handler not reset after = parsing, which could trigger a crash</div><div style=3D"width:71ch">if the = corresponding rxkb_context has been freed."). trixie-backports has</di= v><div style=3D"width:71ch">1.13.1, but trixie itself still ships 1.7.0-2.<= /div><div style=3D"width:71ch"><br></div><div style=3D"width:71ch">Whether = the crash happens depends on the weather service response, so it</div><div = style=3D"width:71ch">appears random to users. Workaround: remove the weathe= r location in</div><div style=3D"width:71ch">GNOME Shell (gsettings set org= .gnome.shell.weather locations "[]").</div><div style=3D"width:71= ch"><br></div><div style=3D"width:71ch">Could the upstream fix be backporte= d to trixie via a stable update?</div><div style=3D"width:71ch"><br></div><= div style=3D"width:71ch">Other versions involved:</div><div style=3D"width:= 71ch"> libxml2 2.12.7+dfsg+really2.9.14-2.1+deb13u3</div><div style= =3D"width:71ch"> libgweather-4-0t64 4.4.4-1</div><div style=3D"width:71ch= "> libsoup-3.0-0 3.6.5-3</div><div style=3D"width:71ch"> libmutter-16-0 4= 8.7-0+deb13u1</div><div style=3D"width:71ch"><br></div><div style=3D"width:= 71ch">Thanks!</div><div style=3D"width:71ch"><span id=3D"m_-416691567954361= 4017none"></span></div></div> </div> --000000000000332521065f7406ee--
Technical Details
Message-ID:
<NVK9X-9Osq-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Roland Steber <rst@wad.org> Newsgroups: linux.debian.bugs.dist,linux.debian.maint.x Subject: Bug#1153019: libxkbregistry0: dangling libxml2 error handler crashes gnome-shell (upstream #529, fixed in 1.8.0) Date: Wed, 04 Nov 2026 15:30:01 +0100 Message-ID: <NVK9X-9Osq-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 4 14:29:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.649 Reply-To: Roland Steber <rst@wad.org>, 1153019@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-x@lists.debian.org X-Debian-Pr-Message: report 1153019 X-Debian-Pr-Package: libxkbregistry0 X-Debian-Pr-Keywords: fixed-upstream upstream X-Debian-Pr-Source: libxkbcommon X-Gm-Message-State: APuU4Z9mfCM7/9crcV2lg/5X2bwz50VPV953SJoVIEJP6TU9ze40G7+W Durn4BXqVJWMe/QmIDGmkGwMO4p7x2MkvnKKBNpPJUgLlkRFUJCr0v9CWspdOxVClkm7jWMN9xM WEpwWGRnmcUpx5CxuFDzhNOXt+5B3nfQ= X-Received: by 2002:a05:6214:5248:b0:91e:8cb1:b842 with SMTP id 6a1803df08f44-91e8cb1bb8fmr10771616d6.49.1793801785118; Wed, 04 Nov 2026 06:16:25 -0800 (PST) MIME-Version: 1.0 X-Gmail-Original-Message-ID: <CAFnzm_b240GXH=8agTp_FkpBfqvKO+aWvS41+tGbDy4mDCxPhA@mail.gmail.com> X-Gm-Features: AclHuK-rSJiQrf7FPYnJ26PTRWVW3tLPGu0-olgMdcQQJlhanbuyQ1bKsUlSp_k Content-Type: multipart/alternative; boundary="000000000000332521065f7406ee" X-Feas-Client-IP: 212.102.225.4 X-Fe-Last-Public-Client-IP: 212.102.225.4 X-Fe-Policy-ID: 1:10:0:SYSTEM X-Greylist: delayed 626 seconds by postgrey-1.37 at buxtehude; Wed, 04 Nov 2026 14:27:38 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000618 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 109 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 4 Nov 2026 15:15:58 +0100 X-Original-Message-ID: <CAFnzm_b240GXH=8agTp_FkpBfqvKO+aWvS41+tGbDy4mDCxPhA@mail.gmail.com>