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

Crash on shutdown in QPlatformScreen destructor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.3.0
    • QPA: X11/XCB
    • None
    • Debian Wheezy 64bit

      A Qt 5.0 application embeds a QWindow within a QWidget using QWidget::createWindowContainer().
      When this application is terminated on linux then it crashes with the following stack trace:

      Program terminated with signal 11, Segmentation fault.
      (gdb) where
      #0 0x00007f9c28c8a6a7 in ?? () from /opt/Qt/5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
      #1 0x00007f9c28c8fef9 in ?? () from /opt/Qt/5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
      #2 0x00007f9c28c82db9 in ?? () from /opt/Qt/5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
      #3 0x00007f9c31b6bd23 in QWindow::create() () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Gui.so.5
      #4 0x00007f9c31b6f188 in QWindowPrivate::setScreen(QScreen*, bool) () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Gui.so.5
      #5 0x00007f9c31b6f362 in QWindow::screenDestroyed(QObject*) () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Gui.so.5
      #6 0x00007f9c3055c681 in QMetaObject::activate(QObject*, int, int, void**) () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
      #7 0x00007f9c3055d17f in QObject::destroyed(QObject*) () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
      #8 0x00007f9c3055ff81 in QObject::~QObject() () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
      #9 0x00007f9c31ed3f17 in QScreen::~QScreen() () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Gui.so.5
      #10 0x00007f9c31b5466a in QPlatformScreen::~QPlatformScreen() () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Gui.so.5
      #11 0x00007f9c28c8d4f9 in ?? () from /opt/Qt/5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
      #12 0x00007f9c28c7e738 in ?? () from /opt/Qt/5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
      #13 0x00007f9c28c7eb59 in ?? () from /opt/Qt/5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
      #14 0x00007f9c28c82eaf in ?? () from /opt/Qt/5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
      #15 0x00007f9c28c82f89 in ?? () from /opt/Qt/5.3.0/5.3/gcc_64/plugins/platforms/libqxcb.so
      #16 0x00007f9c31b5e5b6 in QGuiApplicationPrivate::~QGuiApplicationPrivate() () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Gui.so.5
      #17 0x00007f9c322e3799 in QApplicationPrivate::~QApplicationPrivate() () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Widgets.so.5
      #18 0x00007f9c3055fe7d in QObject::~QObject() () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Core.so.5
      #19 0x00007f9c322e5758 in QApplication::~QApplication() () from /opt/Qt/5.3.0/5.3/gcc_64/lib/libQt5Widgets.so.5
      #20 0x00000000004bb031 in main (argc=1, argv=0x7fff01dc9f08)

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

            paeglis Gatis Paeglis
            cyril4 Harald Prasser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes