Xorg crashes in stdio functions under pci_device_vgaarb_set_target() from VGAGet() from VGAarbiterSpriteMoveCursor()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
X.Org X server |
Fix Released
|
Medium
|
|||
xorg-server (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Low
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned | ||
xorg-server-hwe-18.04 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Issue
xorg crashes, there doesn't seem to be any repeatable cause, it'll happen just watching hulu or youtube, it'll happen when using citrix, or when playing steam games.
Steps to reproduce
use xorg for a while
Expected behaviour
not crashing
Other information
issue only happens when using pci-e passthrough to qemu virtual machines
Has been an issue since setting up pci-e passthrough, have reinstalled Linux Mint (from XFCE version) but error persists, have changed numerous bios settings without having an impact
Upgraded bios to most recent version, also reset bios to factory defaults, didn't make a difference
Tried latest Linux 5.x kernels from uuku, same issue
The virtual machine doesn't have any problems, it never crashes and stays running when the host os xorg crashes.
System: Host: drac Kernel: 4.15.0-55-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 Desktop: Cinnamon 4.2.3
Distro: Linux Mint 19.2 Tina base: Ubuntu 18.04 bionic
Machine: Type: Server System: Supermicro product: Super Server v: 0123456789 serial: <filter>
Mobo: Supermicro model: X10SRL-F v: 1.01B serial: <filter> UEFI: American Megatrends v: 3.1c date: 05/02/2019
Graphics: Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: Micro-Star MSI driver: nvidia v: 430.34 bus ID: 03:00.0
Display: x11 server: X.Org 1.19.6 driver: nvidia resolution: 1920x1080~60Hz, 1920x1080~60Hz
OpenGL: renderer: GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 430.34 direct render: Yes
CPU: Topology: 6-Core model: Intel Xeon E5-1650 v4 bits: 64 type: MT MCP arch: Broadwell rev: 1 L2 cache: 15.0 MiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 86397
Speed: 1203 MHz min/max: N/A Core speeds (MHz): 1: 1203 2: 1206 3: 1330 4: 1200 5: 1201 6: 1201 7: 1200 8: 1200
9: 2046 10: 1202 11: 1202 12: 1201
Not using PPA builds
Linux Mint 19.2 (Upgraded from 19.1) 64bit
root@drac:/vms# apt-cache policy xorg
xorg:
Installed: 1:7.7+19ubuntu7.1
Candidate: 1:7.7+19ubuntu7.1
Version table:
*** 1:7.7+19ubuntu7.1 500
500 http://
100 /var/lib/
1:
500 http://
1070GTX - NVIDIA-
Left screen is a 60hz monitor, right screen is a 120hz monitor
Also have a 770GTX bound to vfio for virtual machine passthrough
Previously used the PPA from https:/
[xsession-
[xsession-
[lspci.txt](https:/
Syslog:
[kernel.log.txt](https:/
Grub: having mitigations on or off makes no difference
GRUB_CMDLINE_
Xorg crashdump traces: /var/crash/
Using host libthread_db library "/lib/x86_
Core was generated by `/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f34b8f87432 in __GI__IO_
389 genops.c: No such file or directory.
[Current thread is 1 (Thread 0x7f34b0c26700 (LWP 1320))]
(gdb) thread 2
[Switching to thread 2 (Thread 0x7f34bbc10600 (LWP 1196))]
#0 0x00007f34b92fb2b7 in __libc_write (fd=14, buf=0x7fffd039b2c0, nbytes=23) at ../sysdeps/
27 ../sysdeps/
Thread 1 backtrace:
#0 0x00007f34b8f87432 in __GI__IO_
#1 0x00007f34b8f7937e in __GI__IO_padn (fp=fp@
#2 0x00007f34b8f55f20 in _IO_vfprintf_
at vfprintf.c:1642
#3 0x00007f34b902b169 in ___vsnprintf_chk (s=0x7f34b0427890 "target PCI:\020\
format=
#4 0x00007f34b902b095 in ___snprintf_chk (s=<optimized out>, maxlen=<optimized out>, flags=<optimized out>, slen=<optimized out>, format=<optimized out>) at snprintf_chk.c:34
#5 0x00007f34bac5d68a in pci_device_
#6 0x000055d830d0d038 in VGAGet (pScreen=
#7 VGAarbiterSprit
#8 0x000055d830d0d04f in VGAarbiterSprit
***Last event #8 repeats***
Thread 2 backtrace:
#0 0x00007f34b92fb2b7 in __libc_write (fd=14, buf=0x7fffd039b2c0, nbytes=23) at ../sysdeps/
#1 0x00007f34bac5d4c0 in ?? () from /usr/lib/
#2 0x00007f34bac5d69f in pci_device_
#3 0x000055d830d0d038 in VGAGet (pScreen=
#4 VGAarbiterSprit
#5 0x000055d830d0d04f in VGAarbiterSprit
***Last event #5 repeats***
Changed in xorg-server (Ubuntu Disco): | |
status: | New → Fix Released |
Changed in xorg-server (Ubuntu Eoan): | |
status: | Confirmed → Fix Released |
Changed in xorg-server-hwe-18.04 (Ubuntu Bionic): | |
status: | New → Fix Released |
no longer affects: | xorg-server-hwe-18.04 (Ubuntu Disco) |
no longer affects: | xorg-server-hwe-18.04 (Ubuntu Eoan) |
Changed in xorg-server (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in xorg-server (Ubuntu Eoan): | |
importance: | High → Undecided |
Changed in xorg-server-hwe-18.04 (Ubuntu): | |
importance: | High → Undecided |
Changed in xorg-server: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Created attachment 133165
gdb log of Xorg execution and crash stacktrace
Steps to reproduce:
1) Have an AMD GPU as your display device (radeon or modesetting, doesn't matter)
2) Have an Intel iGPU, unused
3) Start an X session, grab a window corner and keep moving your mouse for a couple minutes, or just use your computer normally for up to a couple hours.
Xorg was compiled using GCC 4.9.4 with CFLAGS= "-march= core-avx2 -O2 -pipe -ggdb"