Lack of permissions to access display on X11 causes QT to dump core

Bug #1926737 reported by Sergio Callegari
6
This bug affects 1 person
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-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

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+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 5.8.0-50.56~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-50-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
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-opensource-src
UpgradeStatus: Upgraded to focal on 2020-05-23 (342 days ago)

Revision history for this message
Sergio Callegari (callegar) wrote :
description: updated
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.