← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1926737] [NEW] Lack of permissions to access display on X11 causes QT to dump core

 

Public bug reported:

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)

** Affects: qtbase-opensource-src (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal third-party-packages

** Description changed:

- Lack of permissions to access the display causes X11 to dump core.
+ Lack of permissions to access the display causes QT to dump core.
  
  You get
  
- Qt WARNING: could not connect to display 
+ 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)

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtbase-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1926737

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

Status in qtbase-opensource-src package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1926737/+subscriptions