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

QGuiApplication sigsegv in constructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • 6.5.1
    • GUI: Other
    • None
    • ArchLinux
    • Linux/X11

    Description

      When trying to run CMake, the project generated by QtDesignStudio received a segmentation error at the stage of creating the QGuiApplication object.
      I checked after that on the simplest program, got a crash again on the QGuiApplication constructor.
      Here is the code of the simplest program:

      int main(int argc, char *argv[])
      {
        QGuiApplication app(argc, argv);
        return 0;
      }
      

      This behavior appeared after updating Qt to version 6.5.1. I checked the build kit 6.4.3, the applications start and work fine.

       

      Callstack with crash:

      1 QGuiApplicationPrivate::setPalette(QPalette const&)                0x7ffff4bb156a 
      2 QGuiApplicationPrivate::updatePalette()                            0x7ffff4bb2d73 
      3 QGuiApplicationPrivate::init()                                     0x7ffff4ba840f 
      4 QGuiApplication::QGuiApplication(int&, char * *, int)              0x7ffff4ba01fb 
      5 main                                                  main.cpp 135 0x55555555ad0f 
      

      In journal:

      kernel: test[89975]: segfault at 0 ip 00007f9aeffb156a sp 00007fff24f7ab30 error 4 in libQt6Gui.so.6.5.1[7f9aeff0b000+5c0000] likely on CPU 5 (core 6, socket 0)
      kernel: Code: 8b 06 48 8b 80 98 00 00 00 48 39 d0 0f 85 0e 02 00 00 48 8b 3d a7 30 68 00 48 85 ff 0f 84 96 01 00 00 48 8b 07 31 f6 ff 50 50 <48> 8b 10 8b 40 08 48 89 54 24 10 89 44 24 18 f0 83 02 01 4c 8d 64
      systemd[1]: Started Process Core Dump (PID 89978/UID 0).
      systemd-coredump[89979]: [🡕] Process 89975 (test) of user 1000 dumped core.
      
                                                              Stack trace of thread 89975:
                                                              #0  0x00007f9aeffb156a _ZN22QGuiApplicationPrivate10setPaletteERK8QPalette (libQt6Gui.so.6 + 0x1b156a)
                                                              #1  0x00007f9aeffb2d73 _ZN22QGuiApplicationPrivate13updatePaletteEv (libQt6Gui.so.6 + 0x1b2d73)
                                                              #2  0x00007f9aeffa840f _ZN22QGuiApplicationPrivate4initEv (libQt6Gui.so.6 + 0x1a840f)
                                                              #3  0x00007f9aeffa01fb _ZN15QGuiApplicationC2ERiPPci (libQt6Gui.so.6 + 0x1a01fb)
                                                              #4  0x00005572af575d0f n/a (/home/build/test/Desktop-Debug/test + 0x6d0f)
                                                              #5  0x00007f9aef239850 n/a (libc.so.6 + 0x23850)
                                                              #6  0x00007f9aef23990a __libc_start_main (libc.so.6 + 0x2390a)
                                                              #7  0x00005572af575925 n/a (/home/build/test/Desktop-Debug/test + 0x6925)
                                                              ELF object binary architecture: AMD x86-64
      
      

       

      Attachments

        1. core.LauncherApp.1000.61f4862712d3444d99222d6f7c348b6e.13948.1688721299000000
          21.48 MB
        2. installed.txt
          30 kB
        3. Launcher.tar.gz
          220 kB
        4. nvidia_module_info.txt
          3 kB
        5. nvidia-debugdump.txt
          0.3 kB
        6. pci.txt
          12 kB
        7. SDDM_Enlightenment_LauncherApp.gif
          SDDM_Enlightenment_LauncherApp.gif
          433 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            santhoshkumar Santhosh Kumar Selvaraj
            gecheim Andrey Tsarkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes