** Description changed:

+ [ Impact ]
+ 
+ gnome-shell can crash with SIGSEGV in xkb_keymap_mod_get_index() when the
+ input thread replaces the XKB keymap while the main thread is reading it.
+ The race is triggered by input-source changes, for example when a password
+ field gains or loses focus and GNOME Shell reloads the input sources.
+ This kills the session and every open application.
+ 
+ The fix keeps all XKB keymap access on the input thread and passes the
+ caps/num-lock mask indexes to the main thread in the ModifierState.
+ 
+ [ Test Plan ]
+ 
+ 1. On Ubuntu 26.04 with GNOME on Wayland, configure several input sources
+    (e.g. xkb us, xkb de, and an IBus engine).
+ 2. Repeatedly focus and blur a password field in a browser or password
+    manager to force keymap reloads; repeat at least a few hundred times.
+ 3. Verify gnome-shell does not crash and that switching layouts and
+    Caps/Num Lock still work.
+ 4. Regression check: lock keys and layout switching behave correctly
+    after suspend/resume and input-device hotplug.
+ 
+ [ Where problems could occur ]
+ 
+ The change touches native keymap and modifier-state handling. A
+ regression would show up as incorrect Caps/Num Lock state, a layout that
+ does not switch, or a keymap update not being applied. Test layout
+ switching, lock keys, and input-source changes.
+ 
+ [ Other info ]
+ 
  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
gnome-shell.  This problem was most recently seen with package version 
50.1-0ubuntu1, the problem page at 
https://errors.ubuntu.com/problem/7500c0924977c9ce75bad610ae7608bb0d0dc5ab 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.
  
  ---
  External link: https://warthogs.atlassian.net/browse/UDENG-12317

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

Title:
  gnome-shell crashed with SIGSEGV in xkb_atom_lookup() from
  xkb_keymap_mod_get_index() from update_state_from_modifier_state()
  from update_keymap_in_main() from g_main_dispatch()

To manage notifications about this bug go to:
https://bugs.launchpad.net/mutter/+bug/2152175/+subscriptions


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

Reply via email to