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

Segfault if create QApplication with new in function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.2
    • None
    • Linux/X11

    Description

      Segfault on widget show() 

       

      cmake .; make; ./qttest

      #0 0x00007ffff69d5b3a in __strlen_sse2 () from /usr/lib/libc.so.6
      #1 0x00007ffff70aeabc in QCoreApplication::arguments() () from /usr/lib/libQt5Core.so.5
      #2 0x00007ffff3848102 in ?? () from /usr/lib/libQt5XcbQpa.so.5
      #3 0x00007ffff38485ed in QXcbIntegration::wmClass() const () from /usr/lib/libQt5XcbQpa.so.5
      #4 0x00007ffff385ec31 in QXcbWindow::create() () from /usr/lib/libQt5XcbQpa.so.5
      #5 0x00007ffff38498a0 in QXcbIntegration::createPlatformWindow(QWindow*) const ()
      from /usr/lib/libQt5XcbQpa.so.5
      #6 0x00007ffff7487ac8 in QWindowPrivate::create(bool, unsigned long long) () from /usr/lib/libQt5Gui.so.5
      #7 0x00007ffff7aa6998 in QWidgetPrivate::create_sys(unsigned long long, bool, bool) ()
      from /usr/lib/libQt5Widgets.so.5
      #8 0x00007ffff7aa6ff0 in QWidget::create(unsigned long long, bool, bool) () from /usr/lib/libQt5Widgets.so.5
      #9 0x00007ffff7ab463b in QWidgetPrivate::setVisible(bool) () from /usr/lib/libQt5Widgets.so.5
      #10 0x0000555555556336 in main (argc=1, argv=0x7fffffffe908) at /home/vvv/tests/qt/main.cpp:13

      Attachments

        1. CMakeLists.txt
          0.3 kB
        2. main.cpp
          0.4 kB
        3. main.pro
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            vyacheslav.vanin Vyacheslav Vanin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes