Public bug reported:

Summary
gnome-shell aborts (SIGABRT) inside Mesa's libgallium (dri_flush) when an
external monitor is plugged in on a hybrid Intel + NVIDIA laptop. It happens in
the GDM greeter (gnome-shell --mode=gdm) and in a regular user session, and
GDM then restarts the greeter repeatedly until the machine is unusable for
several minutes.

Hardware
- Lenovo Legion laptop, Intel Core i9-13900HX (Raptor Lake-S UHD Graphics,
  i915) + NVIDIA GeForce RTX 4060 Laptop (AD107M, 10de:28e0), nvidia driver
  595.99.02 (open kernel module, linux-modules-nvidia-595-open)
- BIOS "Graphic Device" = Dynamic Graphics (hybrid). The internal panel (eDP-1)
  is on i915; every external port (HDMI-A-1, DP-1, DP-2) is wired to the
  NVIDIA card.

Software
- Ubuntu 26.04 (resolute)
- gnome-shell 50.1-0ubuntu1.5 (also 50.1-0ubuntu1.4), mutter 50.1-0ubuntu2.5,
  gdm3 50.1-0ubuntu0.1, Mesa/libgallium 26.0.8-1ubuntu0.3
- Kernels 7.0.0-38-generic and 7.0.0-43-generic (same crash on both)
- Wayland session; Secure Boot disabled

Steps to reproduce
1. Boot in Dynamic Graphics mode with no external monitor and log in (works).
2. Plug an external monitor into the HDMI port.
3. gnome-shell aborts. GDM restarts the greeter, which aborts again; after
   several restarts the desktop returns or the machine stays on the logo
   screen for minutes.

Expected: the monitor is detected and used.
Actual: gnome-shell crashes on every attempt.

Stack trace (top of the aborting thread, identical on both kernels and in both
the gdm greeter and the user session)
#0-2  pthread_kill / raise / abort (libc)
#3-6  libgallium-26.0.8-1ubuntu0.3.so (+0x16c7a6, +0x12e034b, +0x8c3818,
      +0x21f225)
#7    dri_flush (libgallium)
#8-10 libEGL_mesa.so.0
#11   libmutter-cogl-18.so.0
#12   libmutter-18.so.0
#13   cogl_onscreen_swap_buffers_with_damage (libmutter-cogl-18.so.0)
#14-18 libmutter-18 / libmutter-clutter-18 (clutter_frame_clock_dispatch)
#22   meta_context_run_main_loop

Workaround
Setting the BIOS to Discrete Graphics puts the panel and all external ports on
the NVIDIA GPU. The monitor is then detected and no crash occurs.

Additional information
The Mesa frames have no symbols; I can reproduce again with debug symbols if
that helps. Full core dumps from systemd-coredump are available on request.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: gnome-shell 50.1-0ubuntu1.5
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Nov 13 23:46:19 2026
DisplayManager: gdm3
InstallationDate: Installed on 2024-05-02 (926 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
RelatedPackageVersions: mutter-common 50.1-0ubuntu2.5
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to resolute on 2026-10-14 (31 days ago)

** Affects: gnome-shell (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

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

Title:
  gnome-shell aborts in libgallium dri_flush when an external monitor is
  hotplugged (Intel + NVIDIA hybrid, Dynamic Graphics)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2174468/+subscriptions


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

Reply via email to