[nvidia] Xorg crashed with SIGSEGV in xf86ScreenSetCursor(pCurs=NULL)

Bug #1863142 reported by Dmitrii Shcherbakov
44
This bug affects 6 people
Affects Status Importance Assigned to Milestone
NVIDIA Drivers Ubuntu
New
Undecided
Unassigned
nvidia-graphics-drivers (Ubuntu)
Expired
Undecided
Unassigned
nvidia-graphics-drivers-440 (Ubuntu)
Expired
Undecided
Unassigned
xorg-server (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

https://errors.ubuntu.com/problem/ea7655e8bec62deae73df2b30259cb413e61bef9

---

I observed the following on Eoan as well with nvidia drivers older than 440.

1) a windows 10 VM running in a qemu-kvm VM: pc-q35-3.1 machine type, QXL + SPICE:

    <graphics type='spice' autoport='yes'>
      <listen type='address'/>
      <image compression='off'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>

2) When a host is booted with `prime-select intel` observing guest video output works fine with both virt-viewer (over SPICE) and remmina (over RDP);

3) With `prime-select nvidia` Xorg crashes as described in https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1862895

ProblemType: Crash
DistroRelease: Ubuntu 20.04
Package: xserver-xorg-core 2:1.20.7-2ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-12.15-generic 5.4.8
Uname: Linux 5.4.0-12-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
.proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0000:01:00.0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 440.59 Thu Jan 30 01:00:41 UTC 2020
 GCC version: gcc version 9.2.1 20200203 (Ubuntu 9.2.1-28ubuntu1)
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CurrentDesktop: ubuntu:GNOME
Date: Thu Feb 13 20:16:07 2020
DistUpgraded: 2020-02-09 15:34:46,903 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py'
DistroCodename: focal
DistroVariant: ubuntu
DkmsStatus:
 fwts-efi-runtime-dkms, 20.01.00, 5.3.0-29-generic, x86_64: installed (WARNING! Diff between built and installed module!)
 fwts-efi-runtime-dkms, 20.01.00, 5.4.0-12-generic, x86_64: installed (WARNING! Diff between built and installed module!)
 nvidia, 440.59, 5.4.0-12-generic, x86_64: installed
ExecutablePath: /usr/lib/xorg/Xorg
ExecutableTimestamp: 1579009393
GraphicsCard:
 Intel Corporation HD Graphics 630 [8086:591b] (rev 04) (prog-if 00 [VGA controller])
   Subsystem: Razer USA Ltd. HD Graphics 630 [1a58:6755]
 NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] [10de:1c20] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Razer USA Ltd. GP106M [GeForce GTX 1060 Mobile] [1a58:6755]
InstallationDate: Installed on 2018-05-13 (641 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
MachineType: Razer Blade
ProcCmdline: /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
ProcCwd: /home/dima
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-12-generic root=UUID=8c1115d9-2cee-41a9-864f-d4e57d662706 ro rootflags=subvol=@ button.lid_init_state=open amdgpu.dpm=1 amdgpu.ppfeaturemask=0xffffffff
Signal: 6
SourcePackage: nvidia-graphics-drivers
StacktraceTop:
 System ()
 ()
 ()
 ()
 <signal handler called> () at /lib/x86_64-linux-gnu/libpthread.so.0
Title: Xorg crashed with SIGABRT in System()
UpgradeStatus: Upgraded to focal on 2020-02-09 (4 days ago)
UserGroups: adm cdrom dip libvirt lpadmin lxd microk8s plugdev sambashare sudo
dmi.bios.date: 02/22/2018
dmi.bios.vendor: Razer
dmi.bios.version: 4.02
dmi.board.name: Razer
dmi.board.vendor: Razer
dmi.chassis.type: 9
dmi.chassis.vendor: Razer
dmi.modalias: dmi:bvnRazer:bvr4.02:bd02/22/2018:svnRazer:pnBlade:pvr6.06:rvnRazer:rnRazer:rvr:cvnRazer:ct9:cvr:
dmi.product.family: 1A586755
dmi.product.name: Blade
dmi.product.sku: RZ09-01953E72
dmi.product.version: 6.06
dmi.sys.vendor: Razer
separator:

version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.100-4
version.libgl1-mesa-dri: libgl1-mesa-dri 19.3.3-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 19.3.3-1ubuntu1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.7-2ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20190815-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :
description: updated
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 xf86ScreenSetCursor (pScreen=pScreen@entry=0x561439422bd0, pCurs=pCurs@entry=0x0, x=x@entry=1096, y=y@entry=462) at ../../../../../../hw/xfree86/ramdac/xf86HWCurs.c:195
 xf86SetCursor (pScreen=pScreen@entry=0x561439422bd0, pCurs=pCurs@entry=0x0, x=x@entry=1096, y=y@entry=462) at ../../../../../../hw/xfree86/ramdac/xf86HWCurs.c:252
 xf86CursorSetCursor (pDev=0x561439e71840, pScreen=0x561439422bd0, pCurs=<optimized out>, x=1096, y=462) at ../../../../../../hw/xfree86/ramdac/xf86CursorRD.c:313
 miPointerUpdateSprite (pDev=0x561439e71840) at ../../../../mi/mipointer.c:468
 miPointerUpdateSprite (pDev=0x561439e71840) at ../../../../mi/mipointer.c:410

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gdm3 (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
summary: - [focal][nvidia][gdm3] Xorg crashes when virt-viewer or remmina are used
- to connect to a windows10 VM
+ Xorg crashed with SIGSEGV in xf86ScreenSetCursor
information type: Private → Public
no longer affects: gdm3 (Ubuntu)
tags: added: nvidia
summary: - Xorg crashed with SIGSEGV in xf86ScreenSetCursor
+ [nvidia] Xorg crashed with SIGSEGV in xf86ScreenSetCursor(pCurs=NULL)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-440 (Ubuntu):
status: New → Confirmed
Changed in xorg-server (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
description: updated
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Happened to me when using virt-viewer and connecting to an Ubuntu 18.04 VM via SPICE as well so this isn't specific to a guest VM it seems.

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Found another way to trigger this problem by opening up various documents in libreoffice and using zoom back and forth (also happens sometimes when comments are created).

https://errors.ubuntu.com/oops/a906d424-6cc2-11ea-aa90-fa163e983629

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

^^^
That is bug 1868519. Not this one.

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

I no longer get that issue with latest updates for Focal so something must have fixed it.

Setting to incomplete.

Changed in nvidia-graphics-drivers (Ubuntu):
status: Confirmed → Incomplete
Changed in nvidia-graphics-drivers-440 (Ubuntu):
status: Confirmed → Incomplete
Changed in xorg-server (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Nikon the Third (christian-berrer) wrote :

I am on Ubuntu 20.04 using package nvidia-driver-440 and I can consistently crash Xorg using Remmina. By connecting to a Windows Machine that has Photoshop installed and trying to use a tool that would change the mouse cursor, the session immediately crashes and I am returned to the login screen.

Revision history for this message
egor (egorchel) wrote :

I also consistently run into the issue running gnome on xorg in Fedora. Nvidia drivers 440.82. Although this is on Fedora, but posting here since it's been going on a while and no resolution or other useful threads I can find. Symptoms appear to be the same.
The issue is triggered by Remmina and can also be triggered by KRDC for me when run in Gnome on Xorg. KDE on Xorg does not appear to trigger the bug, not it is triggered on Wayland.

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

[Expired for nvidia-graphics-drivers (Ubuntu) because there has been no activity for 60 days.]

Changed in nvidia-graphics-drivers (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nvidia-graphics-drivers-440 (Ubuntu) because there has been no activity for 60 days.]

Changed in nvidia-graphics-drivers-440 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xorg-server (Ubuntu) because there has been no activity for 60 days.]

Changed in xorg-server (Ubuntu):
status: Incomplete → Expired
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.