/dev/dri/card0 not closed when plasmashell forks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
plasma-workspace (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
plasmashell forks xterm. xterm inherits /dev/dri/card0 open on fd 15.
Working as designed? Or forgot to close it/mark it as CLOEXEC?
# lsof -p 2624 | grep /dev/dri
plasmashe 2624 kaos 12u CHR 226,0 0t0 347 /dev/dri/card0
plasmashe 2624 kaos 13u CHR 226,0 0t0 347 /dev/dri/card0
plasmashe 2624 kaos 14u CHR 226,0 0t0 347 /dev/dri/card0
plasmashe 2624 kaos 15u CHR 226,0 0t0 347 /dev/dri/card0
xterm child on pid 3659
# lsof -p 3659 | grep /dev/dri
xterm 3659 kaos 15u CHR 226,0 0t0 347 /dev/dri/card0
strace 2624 shows no close for fd 12, 13, 14 but they are not inherited by 3659. So they are probably marked CLOEXEC. But fd 15 is left open and is inherited by all children of plasmashell.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: plasma-workspace 4:5.18.5-0ubuntu0.1
ProcVersionSign
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Mon Oct 5 12:24:05 2020
InstallationDate: Installed on 2017-07-12 (1180 days ago)
InstallationMedia: Kubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
SourcePackage: plasma-workspace
UpgradeStatus: Upgraded to focal on 2020-06-21 (105 days ago)
This bug is very old, if it is still an issue please update the bug with info from a supported release.