systemd-logind crash when suspend with nvidia-suspend.service masked, bringing session down with it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers-465 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Run `sudo apt install nvidia-driver-465`. Then, without a need for a restart, run `sudo apt autoremove nvidia-driver-465`.
2. Leaving the terminal open, suspend the machine.
Expected behavior: the machine suspend successfully and can be woken up successfully.
Actual behavior: the machine doesn't suspend. It either:
- hang with no respond other than SysRq+REISUB (or maybe network, but I didn't test), or
- return you back to the login screen. Upon logging in, you'll notice that the terminal you opened is gone.
Upon further inspection (on a session that doesn't hang), it's been found that X server died with:
Fatal server error:
[ 66.422] (EE) systemd-logind disappeared (stopped/
And checking journal for systemd-logind log, it said:
Error during inhibitor-delayed operation (already returned success to client): Unit nvidia-
before the new process takes it place.
The system is Ubuntu 20.04, X.org session.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: systemd 245.4-4ubuntu3.7
ProcVersionSign
Uname: Linux 5.11.0-22-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Tue Jun 29 03:34:00 2021
InstallationDate: Installed on 2021-03-15 (105 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
MachineType: LENOVO 82B5
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=th_TH.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/01/2021
dmi.bios.release: 1.31
dmi.bios.vendor: LENOVO
dmi.bios.version: EUCN31WW
dmi.board.
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0Q55756 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.ec.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: Legion 5 15ARH05
dmi.product.name: 82B5
dmi.product.sku: LENOVO_
dmi.product.
dmi.sys.vendor: LENOVO
Status changed to 'Confirmed' because the bug affects multiple users.