[Bug 1898493] [NEW] /dev/dri/card0 not closed when plasmashell forks

Keith Owens 1898493 at bugs.launchpad.net
Mon Oct 5 01:33:42 UTC 2020


Public bug reported:

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
ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
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)

** Affects: plasma-workspace (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to plasma-workspace in Ubuntu.
https://bugs.launchpad.net/bugs/1898493

Title:
  /dev/dri/card0 not closed when plasmashell forks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/plasma-workspace/+bug/1898493/+subscriptions



More information about the kubuntu-bugs mailing list