Lack of permissions to access display on X11 causes QT to dump core
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtbase-opensource-src (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Lack of permissions to access the display causes QT to dump core.
You get
Qt WARNING: could not connect to display
Qt FATAL: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-
Aborted (core dumped)
but this should not be a condition to abort with a core dump, rather a mere error on which the application should exit (as I believe it used to do until not long ago)
To trigger the issue it is enough to be on X11, su to another user (not having permission to use the display) try to launch a QT application from that user.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libqt5core5a 5.12.8+
ProcVersionSign
Uname: Linux 5.8.0-50-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Fri Apr 30 11:31:57 2021
EcryptfsInUse: Yes
InstallationDate: Installed on 2020-02-16 (439 days ago)
InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: qtbase-
UpgradeStatus: Upgraded to focal on 2020-05-23 (342 days ago)