Xorg freeze (nouveau/ttm use-after-free with full-screen video)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since upgrading to Ubuntu 21.04 yesterday, I've noticed several hangs during full-screen video playback (watching Youtube videos in Chromium). Often, it happens just after or during the switch to full-screen.
The system stays running and I can connect via ssh, but restarting gdm3 has no effect and most of the time I've had to reboot. The latest hang recovered automatically when I left the machine alone for about 2 minutes, and produced the following messages in dmesg (I'll attach a more complete log):
```
[ 3520.856803] [TTM] Buffer eviction failed
[ 3520.856856] ------------[ cut here ]------------
[ 3520.856859] refcount_t: underflow; use-after-free.
[ 3520.856888] WARNING: CPU: 3 PID: 6842 at lib/refcount.c:28 refcount_
...
[ 3520.857292] Call Trace:
[ 3520.857305] ttm_bo_
[ 3520.857331] nouveau_
[ 3520.857611] ? nouveau_
[ 3520.857871] nouveau_
[ 3520.858133] ? nouveau_
[ 3520.858398] drm_ioctl_
[ 3520.858500] drm_ioctl+
[ 3520.858586] ? nouveau_
[ 3520.858850] ? __fget_
[ 3520.858864] ? __fget_
[ 3520.858879] nouveau_
[ 3520.859145] __x64_sys_
[ 3520.859158] do_syscall_
[ 3520.859170] entry_SYSCALL_
[ 3520.859182] RIP: 0033:0x7fce8ceb0317
```
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: xorg 1:7.7+22ubuntu1
ProcVersionSign
Uname: Linux 5.11.0-31-generic x86_64
NonfreeKernelMo
.tmp.unity_
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckR
CompizPlugins: No value set for `/apps/
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Mon Aug 16 23:36:04 2021
DistUpgraded: 2021-08-15 02:10:41,733 DEBUG Running PostInstallScript: '/usr/lib/
DistroCodename: hirsute
DistroVariant: ubuntu
ExtraDebuggingI
GpuHangFrequency: Several times a day
GpuHangReproduc
GpuHangStarted: Immediately after installing this version of Ubuntu
GraphicsCard:
NVIDIA Corporation GT218M [GeForce 310M] [10de:0a70] (rev a2) (prog-if 00 [VGA controller])
Subsystem: Samsung Electronics Co Ltd GT218M [GeForce 310M] [144d:c079]
InstallationDate: Installed on 2014-06-27 (2607 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
MachineType: SAMSUNG ELECTRONICS CO., LTD. Q430/Q530
ProcEnviron:
LANGUAGE=en_IE:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_IE.UTF-8
SHELL=/usr/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: Upgraded to hirsute on 2021-08-15 (1 days ago)
dmi.bios.date: 05/29/2010
dmi.bios.release: 2.0
dmi.bios.vendor: Phoenix Technologies Ltd.
dmi.bios.version: 02KF.M008.
dmi.board.
dmi.board.name: Q430/Q530
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.board.version: Not Applicable
dmi.chassis.
dmi.chassis.type: 9
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: Q430/Q530
dmi.product.
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.
version.compiz: compiz 1:0.9.14.
version.libdrm2: libdrm2 2.4.105-3~21.04.1
version.
version.
version.
version.
version.
version.
version.
xserver.bootTime: Sat Aug 14 22:37:51 2021
xserver.configfile: default
xserver.errors:
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
xserver.version: 2:1.20.
Thanks for the bug report. That's a kernel crash in the nouveau driver. But that driver is not well supported so we would usually recommend the official Nvidia driver instead. Unfortunately:
1. Your GeForce 310M GPU requires the Nvidia 340 driver only. Newer drivers don't support that GPU; and
2. The Nvidia 340 driver is no longer supported by Nvidia and no longer shipped in Ubuntu 21.04.
I suggest using only Ubuntu 20.04 on this machine, which has a working version of the Nvidia 340 driver that you can install via the 'Additional Drivers' app.