🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.maint.x
2 messages
2 total messages Started by Roland Steber Wed, 04 Nov 2026 14:30
Bug#1153019: libxkbregistry0: dangling libxml2 error handler crashes gnome-shell (upstream #529, fixed in 1.8.0)
#13
Author: Roland Steber
Date: Wed, 04 Nov 2026 14:30
109 lines
8203 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&#39;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: &quot;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.&quot;). 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 &quot;[]&quot;).</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--
Bug#1153019: libxkbregistry0: dangling libxml2 error handler crashes gnome-shell
#15
Author: Martin de Vries
Date: Thu, 05 Nov 2026 08:40
72 lines
4559 bytes
Package: libxkbregistry0
Version: 1.7.0-2
Followup-For: Bug #1153019

Hi,

I hit this on Debian 13 (trixie) on 2026-11-05 with libxkbregistry0 1.7.0-2,
libxml2 2.12.7+dfsg+really2.9.14-2.1+deb13u3, gnome-shell 48.7-0+deb13u2 (Wayland).

Impact: it was impossible to log in graphically. After entering the password
in GDM the screen went black and returned to the greeter (6 times that
morning); afterwards the greeter was grey and unresponsive. Only a text
console login worked.

Trigger: api.met.no (the backend libgweather uses) returned "502 Bad Gateway"
as an HTML page. libgweather fed that to libxml2, libxml2 raised a parse
error, and the generic error handler that libxkbregistry had installed
earlier (with an already freed rxkb_context) was called. So any GNOME user
with a weather location configured (Clocks/Weather, or the weather in the
top bar calendar) can end up in a login loop whenever the weather service
has an outage. This is not something a user can easily diagnose.

Kernel log:
  gnome-shell[...]: general protection fault ... in libxkbregistry.so.0.0.0

Backtrace (shortened, from coredumpctl):
  #0  libxkbregistry.so.0      (xml error handler, dangling context)
  #3  __xmlRaiseError          (libxml2)
  #10 xmlParseMemory           (libxml2)
  #11 libgweather-4.so.0
  #14 libsoup-3.0.so.0

Workaround: from a text console, clear the weather locations
  gsettings set org.gnome.shell.weather automatic-location false
  gsettings set org.gnome.shell.weather locations '[]'
  gsettings set org.gnome.Weather locations '[]'
and restart gdm.

This is upstream issue #529, fixed in libxkbcommon 1.8.0
(https://github.com/xkbcommon/libxkbcommon/issues/529, fix in commit
a47961b15a2539a417bd6f20570074ec01aadec4). The version in trixie-backports
(1.13.1) contains the fix, but trixie itself still ships 1.7.0.

Given that an external service outage can lock users out of their desktop,
could the fix be backported to trixie via a stable point release?

Thanks!


-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.115+deb13.1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libxkbregistry0 depends on:
ii  libc6          2.41-12+deb13u4
ii  libxkbcommon0  1.7.0-2
ii  libxml2        2.12.7+dfsg+really2.9.14-2.1+deb13u3

libxkbregistry0 recommends no packages.

libxkbregistry0 suggests no packages.

-- no debconf information
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads