** Description changed: - Since upgrading to Ubuntu 26.04, GNOME Shell (Wayland) crashes repeatedly when - using the touchscreen, which ends the whole session (back to login screen). - Happened 4 times within ~30 minutes on a Fujitsu LIFEBOOK T939 (convertible). + [ Impact ] - Steps: - 1. Use the touchscreen to interact with apps (e.g. tap a link/notification/dock - icon that activates another window) - 2. gnome-shell segfaults, session is lost + gnome-shell can crash with SIGSEGV in touch_can_grab_surface() when the + touch focus surface is NULL. This can be reached through + xdg-toplevel-drag: dragging and re-attaching a browser tab with touch + sends CLUTTER_TOUCH_CANCEL and leaves the touch info without a focus + surface. The xdg-activation path (an activation token created from a + touch event whose surface has since gone away) is also covered. On + devices with a touchscreen this ends the session. - Backtrace (symbolized via debuginfod): - #6 touch_can_grab_surface (touch_info=..., surface=...) at ../src/wayland/meta-wayland-touch.c:659 - #7 meta_wayland_touch_find_grab_sequence (surface=..., serial=1221) at ../src/wayland/meta-wayland-touch.c:691 - #8 meta_wayland_seat_get_grab_info (require_pressed=0) at ../src/wayland/meta-wayland-seat.c:609 - #9 token_can_activate (token=...) at ../src/wayland/meta-wayland-activation.c:307 - #10 maybe_activate (token_str="..._TIME0") at ../src/wayland/meta-wayland-activation.c:355 - #11 activation_activate () at ../src/wayland/meta-wayland-activation.c:459 + The fix returns FALSE when the touch info has no focus surface instead of + dereferencing it. - So an xdg_activation_v1.activate request whose token was created from a touch - event leads to an invalid touch_info access in touch_can_grab_surface(). + [ Test Plan ] - Versions: - gnome-shell 50.1-0ubuntu1.3 - mutter / libmutter-18-0 50.1-0ubuntu2.4 - libinput10 1.31.1-1ubuntu1.2 - Kernel 7.0.0-38-generic + 1. On a device with a touchscreen (e.g. a 2-in-1 laptop) running + Ubuntu 26.04 with GNOME on Wayland, open Chromium (or another browser + that implements xdg-toplevel-drag) with at least two tabs. + 2. Use touch to drag a tab out of the window and re-attach it, or drag it + to another window. This exercises the xdg-toplevel-drag path and sends + CLUTTER_TOUCH_CANCEL. + 3. Without the fix, gnome-shell crashes with SIGSEGV in + touch_can_grab_surface(); with the fix, the tab re-attaches and the + session survives. + 4. Repeat several times. + 5. Also exercise the xdg-activation path: tap links, notifications, and + dock icons that activate other windows, and verify no crash. + 6. Regression check: touch drag, touch popups, and touch focus changes + still behave correctly. - ProblemType: Bug - DistroRelease: Ubuntu 26.04 - Package: mutter (not installed) - ProcVersionSignature: Ubuntu 7.0.0-38.38-generic 7.0.14 - Uname: Linux 7.0.0-38-generic x86_64 - ApportVersion: 2.34.1-0ubuntu0.1 - Architecture: amd64 - CasperMD5CheckResult: pass - CurrentDesktop: ubuntu:GNOME - Date: Mon Oct 5 21:47:52 2026 - InstallationDate: Installed on 2023-12-01 (1040 days ago) - InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1) - ProcEnviron: - LANG=de_DE.UTF-8 - PATH=(custom, no user) - SHELL=/bin/bash - TERM=xterm-256color - XDG_RUNTIME_DIR=<set> - SourcePackage: mutter - UpgradeStatus: Upgraded to resolute on 2026-10-05 (0 days ago) + [ Where problems could occur ] + + The change is in Wayland touch/grab handling. A regression could show up + as touch not grabbing, activation not working, or touch events being + ignored. Test touch drag, popups, and activation.
** Changed in: mutter (Ubuntu Resolute) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2169630 Title: gnome-shell crashed with SIGSEGV in touch_can_grab_surface() when activating a window after touch input To manage notifications about this bug go to: https://bugs.launchpad.net/mutter/+bug/2169630/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
