/dev/dri/card0 not closed when plasmashell forks

Bug #1898493 reported by Keith Owens

This bug report will be marked for expiration in 20 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
plasma-workspace (Ubuntu)
Incomplete
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
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)

Revision history for this message
Keith Owens (kaos-ubuntu) wrote :
Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

This bug is very old, if it is still an issue please update the bug with info from a supported release.

Changed in plasma-workspace (Ubuntu):
status: New → Incomplete
Revision history for this message
Keith Owens (kaos-ubuntu) wrote :

Retested on plasma-workspace 4:5.24.7-0ubuntu0.1. xterm no longer inherits /dev/dri/card0. Close the bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.