Xwayland crashed with SIGSEGV in ProcXTestFakeInput()

Bug #2055176 reported by alexkoon
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xwayland (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When using VMWare Horizon and quickly switching windows (alt-tab), the Horizon app and other apps crashes (such as spotify (snap?) and zoom (native deb)). I can see a Segmentation Fault error in syslog. I have tried the last four versions of VMWare Horizon and have the same results. This was never a problem before 23.10.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 6.5.0-21.21-generic 6.5.8
Uname: Linux 6.5.0-21-generic x86_64
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Tue Feb 27 14:50:55 2024
DistUpgraded: Fresh install
DistroCodename: mantic
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, if not too technical
GraphicsCard:
 Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] [8086:3ea0] (rev 02) (prog-if 00 [VGA controller])
   Subsystem: Dell WhiskeyLake-U GT2 [UHD Graphics 620] [1028:08e0]
InstallationDate: Installed on 2024-02-03 (24 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-21-generic root=UUID=5f7a0ef6-50b2-480b-b0f3-1aed4dbdbd57 ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/03/2023
dmi.bios.release: 1.28
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.28.0
dmi.board.name: 0PYRY5
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.asset.tag: NAB612163
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.28.0:bd11/03/2023:br1.28:svnDellInc.:pnLatitude7300:pvr:rvnDellInc.:rn0PYRY5:rvrA00:cvnDellInc.:ct10:cvr:sku08E0:
dmi.product.family: Latitude
dmi.product.name: Latitude 7300
dmi.product.sku: 08E0
dmi.sys.vendor: Dell Inc.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.115-1
version.libgl1-mesa-dri: libgl1-mesa-dri 23.2.1-1ubuntu3.1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.7-3ubuntu2.7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
alexkoon (alexkoon) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It sounds like some part of the system has crashed. To help us find the cause of the crash please follow these steps:

1. Run these commands:
    journalctl -b0 > journal.txt
    journalctl -b-1 > prevjournal.txt
and attach the resulting text files here.

2. Look in /var/crash for crash files and if found run:
    ubuntu-bug YOURFILE.crash
Then tell us the ID of the newly-created bug.

3. If step 2 failed then look at https://errors.ubuntu.com/user/ID where ID is the content of file /var/lib/whoopsie/whoopsie-id on the machine. Do you find any links to recent problems on that page? If so then please send the links to us.

Please take care to avoid attaching .crash files to bugs as we are unable to process them as file attachments. It would also be a security risk for yourself.

affects: xorg (Ubuntu) → ubuntu
Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If the crashes are occurring inside the VM then please follow the above steps inside the VM.

Revision history for this message
alexkoon (alexkoon) wrote :

Attaching the results of the journalctl commands

Revision history for this message
alexkoon (alexkoon) wrote :

And the prev journal

Revision history for this message
alexkoon (alexkoon) wrote :
Download full text (5.3 KiB)

Ran the ubunut-bug command with the crash file, but seems to have failed. Checked the whoopsie id and got this id

48154af52a1ad74595dfd1a394e65ff5fc7131d588778dc4bacd36325d293f6280e12259a3c48ad31b56c7000ec68175ffe156d9c52de8bf78aaeb00eed11c0b

The syslog file has the following

2024-02-28T08:37:23.397803+00:00 laptop-one vmware-view.desktop[5560]: Xlib: extension "MIT-SCREEN-SAVER" missing on display ":0.0".
2024-02-28T08:37:33.399857+00:00 laptop-one vmware-view.desktop[5560]: message repeated 5 times: [ Xlib: extension "MIT-SCREEN-SAVER" missing on display ":0.0".]
2024-02-28T08:37:35.013833+00:00 laptop-one gnome-shell[3104]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55ad25df3c30] is on because it needs an allocation.
2024-02-28T08:37:35.013957+00:00 laptop-one gnome-shell[3104]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55ad26628730] is on because it needs an allocation.
2024-02-28T08:37:35.013996+00:00 laptop-one gnome-shell[3104]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55ad26f95a20] is on because it needs an allocation.
2024-02-28T08:37:35.014031+00:00 laptop-one gnome-shell[3104]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55ad2560bda0] is on because it needs an allocation.
2024-02-28T08:37:35.092245+00:00 laptop-one gnome-shell[4270]: (EE)
2024-02-28T08:37:35.092374+00:00 laptop-one gnome-shell[4270]: (EE) Backtrace:
2024-02-28T08:37:35.092469+00:00 laptop-one gnome-shell[4270]: (EE) 0: /usr/bin/Xwayland (0x56349dd87000+0x166202) [0x56349deed202]
2024-02-28T08:37:35.092506+00:00 laptop-one gnome-shell[4270]: (EE) 1: /usr/bin/Xwayland (0x56349dd87000+0x166304) [0x56349deed304]
2024-02-28T08:37:35.092542+00:00 laptop-one gnome-shell[4270]: (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7f0915a00000+0x42990) [0x7f0915a42990]
2024-02-28T08:37:35.092571+00:00 laptop-one gnome-shell[4270]: (EE)
2024-02-28T08:37:35.092600+00:00 laptop-one gnome-shell[4270]: (EE) Segmentation fault at address 0x0
2024-02-28T08:37:35.092656+00:00 laptop-one gnome-shell[4270]: (EE)
2024-02-28T08:37:35.092683+00:00 laptop-one gnome-shell[4270]: Fatal server error:
2024-02-28T08:37:35.092711+00:00 laptop-one gnome-shell[4270]: (EE) Caught signal 11 (Segmentation fault). Server aborting
2024-02-28T08:37:35.092737+00:00 laptop-one gnome-shell[4270]: (EE)
2024-02-28T08:37:35.750357+00:00 laptop-one gnome-shell[3104]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55ad242b3a50] is on because it needs an allocation.
2024-02-28T08:37:35.750471+00:00 laptop-one gnome-shell[3104]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55ad264051f0] is on because it needs an allocation.
2024-02-28T08:37:35.750528+00:00 laptop-one gnome-shell[3104]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55ad23a929b0] is on because it needs an allocation.
2024-02-28T08:37:35.750578+00:00 laptop-one gnome-shell[3104]: Can't update stage views actor <unnamed>[<ClutterActor>:0x55ad23e09ca0] is on because it needs an allocation.
2024-02-28T08:37:36.192287+00:00 laptop-one systemd[2830]: Starting update-notifier-crash.service - Notification regarding a crash report...
2024-02-28T08:37:36.192484+...

Read more...

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ): Re: Xwayland crashed with SIGSEGV

The crash is:

https://errors.ubuntu.com/oops/db625975-d614-11ee-ba81-fa163e171f02

which redirects to:

https://errors.ubuntu.com/problem/6f7f5ecff946fe5688552ca69996f4dd662baec8

which only started crashing in Xwayland version 2:23.2.0-1ubuntu0.4

Please try installing the debug symbols:

https://launchpad.net/ubuntu/+archive/primary/+files/xwayland-dbgsym_23.2.0-1ubuntu0.4_amd64.ddeb

and then report the crash again.

Also you should be able to work around it by selecting 'Ubuntu on Xorg' at the login screen.

summary: - Apps crash out when switching windows and using VMWare Horizon
+ Xwayland crashed with SIGSEGV
affects: ubuntu → xwayland (Ubuntu)
tags: added: regression-update
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The bucket is new for 2:23.2.0-1ubuntu0.4 anyway. If the crash also happened before then and just landed in a different bucket then it wouldn't be a regression-update.

Revision history for this message
alexkoon (alexkoon) wrote :

Edited original post, I had a typo. It should say I never experienced this before 23.10.

description: updated
Revision history for this message
alexkoon (alexkoon) wrote :

I installed the debug symbols in the above and experienced the crash. Ran the crash (failed but got the whoopsie id)

https://errors.ubuntu.com/user/48154af52a1ad74595dfd1a394e65ff5fc7131d588778dc4bacd36325d293f6280e12259a3c48ad31b56c7000ec68175ffe156d9c52de8bf78aaeb00eed11c0b

I have deterministically recreate the bug/crash. It occurs when quickly switching to the VMWare Horizon client. For instance a quick alt-tab to the client. Or the other way is to have the VMWare horizon client as the 'next' window, such that closing/killing the current window will quickly switch to the horizon client will crash the horizon client and some other apps (predominantly the snap of Spotify which I have running or the deb install of Zoom).

Revision history for this message
alexkoon (alexkoon) wrote :
Revision history for this message
alexkoon (alexkoon) wrote :

The workaround to use X11 doesn't really work out for me as the performance is really poor on X11 (screen updates slow, media playback is poor etc).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the additional information. It looks like we have a better idea of the crash location now:

?? ()
ProcXTestFakeInput (client=<optimized out>) at ../Xext/xtest.c:440
Dispatch () at ../dix/dispatch.c:545
dix_main (envp=<optimized out>, argv=<optimized out>, argc=<optimized out>) at ../dix/main.c:271
main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at ../dix/stubmain.c:34

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

Found it:
https://gitlab.freedesktop.org/xorg/xserver/-/issues/1574

The first fix went into Xwayland 23.2.1 but that also needed fixing in 23.2.4.

Changed in xwayland (Ubuntu):
status: Incomplete → New
status: New → Fix Released
tags: added: fixed-in-xwayland-23.2.4 fixed-upstream
tags: added: rls-mm-incoming
summary: - Xwayland crashed with SIGSEGV
+ Xwayland crashed with SIGSEGV in ProcXTestFakeInput()
Changed in xwayland (Ubuntu):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.