[SRU] gnome-shell crashed with SIGTRAP in meta_wayland_compositor_new() from meta_context_start() from main() ["Failed to start X Wayland: Directory \"/tmp/.X11-unix\" is not writable"]
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
mutter (Ubuntu) | Status tracked in Plucky | |||||
Oracular |
Fix Committed
|
High
|
Nathan Teodosio | |||
Plucky |
Fix Released
|
High
|
Nathan Teodosio |
Bug Description
If you are hitting this bug, please write your case in https:/
[Impact]
This causes one of the top Gnome-Shell crashes as caught by Ubuntu error tracker.
It happens when /tmp/.X11-unix is accessible by the user but does not pass a stricter permission check Mutter makes.
In the typical Ubuntu setup, both /tmp and /tmp/.X11-unix are root:root rwxrwxrwt, so it passes that stricter permission check.
[Test case]
1. Stop GDM:
systemctl stop gdm
This will bring you to the virtual console (i.e. without a graphical environment, only command-line).
2. Install mutter, gir1.2-mutter-15, libmutter-15-0, mutter-common, mutter-common-bin from proposed (the exact steps to enable proposed are laid down by the SRU bot comment to this bug).
3. Execute:
chmod 1007 /tmp/.X11-unix
4. Execute:
MUTTER_DEBUG=all G_DEBUG=1 dbus-run-session -- gnome-shell --display-server --wayland &>log
Gnome-Shell must start and Mutter (you can look for them in 'ps aux' output if you are not acquainted with the looks of those pieces of software).
5. Now open xterm and kill the graphical environment by executing:
pkill wayland
Verify that there are no mentions of the issue directory in the log, i.e. 'grep X11-unix log' returns nothing.
[Where problems could occur]
In Mutter or Gnome-Shell, particularly at launch phase. Also make sure Xorg applications behave normally (that's why xterm is included in test case), without failing to open or delays.
---------------
The Ubuntu Error Tracker has been receiving reports about a problem regarding gnome-shell. This problem was most recently seen with package version 46.0-0ubuntu5.1, the problem page at https:/
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://
summary: |
- /usr/bin/gnome- - shell:5:meta_wayland_compositor_new:meta_context_start:main + gnome-shell crashed with SIGTRAP in meta_wayland_compositor_new() from + meta_context_start() from main() |
summary: |
gnome-shell crashed with SIGTRAP in meta_wayland_compositor_new() from - meta_context_start() from main() + meta_context_start() from main() ["Failed to start X Wayland: Directory + \"/tmp/.X11-unix\" is not writable"] |
description: | updated |
Changed in mutter (Ubuntu): | |
milestone: | none → ubuntu-25.04 |
no longer affects: | gnome-shell (Ubuntu) |
Changed in mutter (Ubuntu Oracular): | |
milestone: | none → oracular-updates |
importance: | Undecided → High |
status: | New → Triaged |
Changed in mutter (Ubuntu Plucky): | |
status: | In Progress → Fix Committed |
Changed in mutter (Ubuntu Oracular): | |
assignee: | nobody → Nathan Teodosio (nteodosio) |
status: | Triaged → In Progress |
description: | updated |
summary: |
- gnome-shell crashed with SIGTRAP in meta_wayland_compositor_new() from - meta_context_start() from main() ["Failed to start X Wayland: Directory - \"/tmp/.X11-unix\" is not writable"] + [SRU] gnome-shell crashed with SIGTRAP in meta_wayland_compositor_new() + from meta_context_start() from main() ["Failed to start X Wayland: + Directory \"/tmp/.X11-unix\" is not writable"] |
Changed in mutter (Ubuntu Oracular): | |
status: | In Progress → Triaged |
description: | updated |
Changed in mutter (Ubuntu Oracular): | |
status: | Triaged → In Progress |
tags: | added: udeng-4319 |
Status changed to 'Confirmed' because the bug affects multiple users.