Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125977

[Solved] Running qt applications with doas causes a segment fault (See comments)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.7.0
    • Core: Other
    • None
    • Linux/X11

    Description

      Hello. I am new to QT-Bug reporting, so please double-check some of the selections as they may not be fully accurate (ie components)

      When I go to run qt applications with doas (such as dolphin, dolphin-emu, randovania, etc), I get this error:

       

      Authorization required, but no authorization protocol specified
      
      qt.qpa.xcb: could not connect to display :0
      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      
      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
      
      Aborted (core dumped)
      

      I tested this on a hello world. The source code is as follows:

       

       

      #include <QApplication>
      #include <QLabel>
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
          QLabel hello("Hello world!");
          hello.show();
          return app.exec();
      }
      

       

      Ran via

      doas ./hello

      The backtrace I get from this is as followed:

       

      Thread 1 "hello" received signal SIGABRT, Aborted.
      
      0x00007ffff64a8e44 in ?? () from /usr/lib/libc.so.6
      
      (gdb) bt full
      
      #0  0x00007ffff64a8e44 in ?? () from /usr/lib/libc.so.6
      
      No symbol table info available.
      
      #1  0x00007ffff6450a30 in raise () from /usr/lib/libc.so.6
      
      No symbol table info available.
      
      #2  0x00007ffff64384c3 in abort () from /usr/lib/libc.so.6
      
      No symbol table info available.
      
      #3  0x00007ffff6a98143 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
      
      No symbol table info available.
      
      #4  0x00007ffff7132d77 in QGuiApplicationPrivate::createPlatformIntegration() () from /usr/lib/libQt5Gui.so.5
      
      No symbol table info available.
      
      #5  0x00007ffff7133421 in QGuiApplicationPrivate::createEventDispatcher() () from /usr/lib/libQt5Gui.so.5
      
      No symbol table info available.
      
      #6  0x00007ffff6cb327d in QCoreApplicationPrivate::init() () from /usr/lib/libQt5Core.so.5
      
      No symbol table info available.
      
      #7  0x00007ffff71334d7 in QGuiApplicationPrivate::init() () from /usr/lib/libQt5Gui.so.5
      
      No symbol table info available.
      
      #8  0x00007ffff7953586 in QApplicationPrivate::init() () from /usr/lib/libQt5Widgets.so.5
      
      No symbol table info available.
      
      #9  0x0000000100001211 in main ()
      
      No symbol table info available.
      
      (gdb) c
      
      Continuing.
      
      Couldn't get registers: No such process.
      
      (gdb) [Thread 0x7ffff34006c0 (LWP 162971) exited]
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            samus Linux Tester
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes