Xorg crashed with SIGSEGV in __strstr_sse2_unaligned() from glamor_egl_init() from try_enable_glamor()

Bug #1796056 reported by Alan Pope 🍺🐧🐱 πŸ¦„
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Won't Fix
Medium
Timo Aaltonen
Cosmic
Won't Fix
Medium
Timo Aaltonen

Bug Description

https://errors.ubuntu.com/problem/80a261d57f137287204ff4f0f865866de3742560

---

Updated my Ubuntu 18.10 Virtual Machine running in VirtualBox. It now gets stuck on a black screen. here's dmesg - http://termbin.com/tcdg

[ 480.659815] gnome-shell[3432]: segfault at 0 ip 0000000000000000 sp 00007ffcbae14e48 error 14
[ 480.659817] Code: Bad RIP value.

ProblemType: Crash
DistroRelease: Ubuntu 18.10
Package: xserver-xorg-core 2:1.20.1-3ubuntu2
ProcVersionSignature: Ubuntu 4.18.0-8.9-generic 4.18.7
Uname: Linux 4.18.0-8-generic x86_64
ApportVersion: 2.20.10-0ubuntu11
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 4 10:22:42 2018
DistUpgraded: Fresh install
DistroCodename: cosmic
DistroVariant: ubuntu
ExecutablePath: /usr/lib/xorg/Xorg
ExecutableTimestamp: 1538505603
GraphicsCard: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter [80ee:beef] (prog-if 00 [VGA controller])
InstallationDate: Installed on 2018-09-22 (11 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Alpha amd64 (20180915)
Lsusb:
 Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: innotek GmbH VirtualBox
ProcCmdline: /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
ProcCwd: /home/snapcraft
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-8-generic root=UUID=5146014b-22b6-4cd4-aff0-b4db546225fc ro quiet splash
Signal: 6
SourcePackage: xorg-server
StacktraceTop:
 glamor_egl_init () from /usr/lib/xorg/modules/libglamoregl.so
 ?? () from /usr/lib/xorg/modules/drivers/modesetting_drv.so
 InitOutput ()
 ?? ()
 __libc_start_main (main=0x55ba12fc6640, argc=12, argv=0x7ffc057d30e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc057d30d8) at ../csu/libc-start.c:308
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:
dmi.product.family: Virtual Machine
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.94-1
version.libgl1-mesa-dri: libgl1-mesa-dri 18.2.1-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 18.2.1-1ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.1-3ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:18.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20171229-1build1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.15-3

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 glamor_egl_init (scrn=scrn@entry=0x55ba1510f610, fd=<optimized out>) at ../../../../../../glamor/glamor_egl.c:992
 try_enable_glamor (pScrn=0x55ba1510f610) at ../../../../../../../hw/xfree86/drivers/modesetting/driver.c:769
 PreInit (pScrn=0x55ba1510f610, flags=<optimized out>) at ../../../../../../../hw/xfree86/drivers/modesetting/driver.c:996
 InitOutput (pScreenInfo=pScreenInfo@entry=0x55ba131ee9c0 <screenInfo>, argc=argc@entry=12, argv=argv@entry=0x7ffc057d30e8) at ../../../../../../hw/xfree86/common/xf86Init.c:557
 dix_main (argc=12, argv=0x7ffc057d30e8, envp=<optimized out>) at ../../../../dix/main.c:193

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in xorg-server (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
information type: Private → Public
tags: added: rls-cc-incoming
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Re: Xorg crashed with SIGABRT in glamor_egl_init()

So this is the result of the new patch, but the bug is in either mesa or libglvnd. eglMakeCurrent doesn't seem to work if the server crashes like this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xorg-server (Ubuntu):
status: New → Confirmed
Timo Aaltonen (tjaalton)
Changed in xorg-server (Ubuntu):
assignee: nobody → Timo Aaltonen (tjaalton)
Will Cooke (willcooke)
tags: added: rls-cc-tracking
removed: rls-cc-incoming
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Note that Xorg catches its own crashes. So the real crash (signo=11) starts at frame #7:

#5 0x000055ba13137131 in OsSigHandler (signo=11, sip=<optimized out>, unused=<optimized out>) at ../../../../os/osinit.c:156
        unused = <optimized out>
        sip = <optimized out>
        signo = 11
#6 <signal handler called>
No locals.
#7 __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40
No locals.
#8 0x00007f49e51da1fd in glamor_egl_init (scrn=scrn@entry=0x55ba1510f610, fd=<optimized out>) at ../../../../../../glamor/glamor_egl.c:992
        glamor_egl = 0x55ba15112a40
        renderer = 0x0
#9 0x00007f49e54181a2 in try_enable_glamor (pScrn=0x55ba1510f610) at ../../../../../../../hw/xfree86/drivers/modesetting/driver.c:769
        ms = 0x55ba151101b0
        accel_method_str = <optimized out>
        do_glamor = 1
        ms = <optimized out>
        accel_method_str = <optimized out>
        do_glamor = <optimized out>

summary: - Xorg crashed with SIGABRT in glamor_egl_init()
+ Xorg crashed with SIGSEGV in __strstr_sse2_unaligned() from
+ glamor_egl_init() from try_enable_glamor()
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

upstream has a patch to fail more gracefully in this case

https://gitlab.freedesktop.org/xorg/xserver/merge_requests/37

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

Thank you for reporting this bug to Ubuntu.
Ubuntu 18.10 (cosmic) reached end-of-life on July 18, 2019.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in xorg-server (Ubuntu):
status: Confirmed → Won't Fix
Changed in xorg-server (Ubuntu Cosmic):
status: Confirmed → Won't Fix
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.