Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28440

Clicking the autotests after a (finished) test run crashes with a segfault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • Qt Creator 9.0.0-rc1
    • Qt Creator 8.0.2
    • Test Integration
    • None
    • Linux/X11

    Description

      When running the google tests, integrated in my project via the auto test buttons:

       

       

      The first time the tests run just fine. When the run is finished, (with or without changing any code) when I click the same button again, Qt creator segfaults.

      The issue is less prevalent when running the same binary through GDB. I can provide a coredump if required.

      Backtrace while running in gdb:

       

       

      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
       0x00007ffff652eb98 in QSortFilterProxyModel::parent(QModelIndex const&) const () from /usr/lib/libQt6Core.so.6
       (gdb) bt
       #0 0x00007ffff652eb98 in QSortFilterProxyModel::parent(QModelIndex const&) const () at /usr/lib/libQt6Core.so.6
       #1 0x00007fffe3b5f4e8 in QModelIndex::parent() const (this=0x7fffffffc3b0) at /usr/include/qt6/QtCore/qabstractitemmodel.h:480
       #2 Autotest::Internal::TestResultDelegate::clearCache() (this=0x5555567010a0)
       at /usr/src/debug/qt-creator-opensource-src-8.0.2/src/plugins/autotest/testresultdelegate.cpp:186
       #3 0x00007fffe3b6bf32 in Autotest::Internal::TestResultsPane::clearContents() (this=0x555556541300)
       at /usr/src/debug/qt-creator-opensource-src-8.0.2/src/plugins/autotest/testresultspane.cpp:345
       #4 0x00007fffe3b75d9f in Autotest::Internal::TestRunner::prepareToRunTests(Autotest::TestRunMode)
       (this=0x555555e8e838, mode=Autotest::TestRunMode::Run)
       at /usr/src/debug/qt-creator-opensource-src-8.0.2/src/plugins/autotest/testrunner.cpp:389
       #5 0x00007ffff63805c3 in () at /usr/lib/libQt6Core.so.6
       #6 0x00007ffff6ec8c17 in QAction::triggered(bool) () at /usr/lib/libQt6Gui.so.6
       #7 0x00007ffff63805c3 in () at /usr/lib/libQt6Core.so.6
       #8 0x00007ffff6ec8c17 in QAction::triggered(bool) () at /usr/lib/libQt6Gui.so.6
       #9 0x00007ffff63805c3 in () at /usr/lib/libQt6Core.so.6
       #10 0x00007ffff6ec8c17 in QAction::triggered(bool) () at /usr/lib/libQt6Gui.so.6
       #11 0x00007ffff6ecc079 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt6Gui.so.6
       #12 0x00007ffff74744e2 in () at /usr/lib/libQt6Widgets.so.6
       #13 0x00007ffff7481635 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt6Widgets.so.6
       #14 0x00007ffff75813df in QToolButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt6Widgets.so.6
       #15 0x00007ffff73bda05 in QWidget::event(QEvent*) () at /usr/lib/libQt6Widgets.so.6
       #16 0x00007ffff7375b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt6Widgets.so.6
       #17 0x00007ffff736e4d9 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt6Widgets.so.6
       #18 0x00007ffff632a408 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt6Core.so.6
       #19 0x00007ffff736ae39 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /usr/lib/libQt6Widgets.so.6
       #20 0x00007ffff73cbc4e in () at /usr/lib/libQt6Widgets.so.6
       #21 0x00007ffff73ccf45 in () at /usr/lib/libQt6Widgets.so.6
       #22 0x00007ffff7375b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt6Widgets.so.6
       #23 0x00007ffff632a408 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt6Core.so.6
       --Type <RET> for more, q to quit, c to continue without paging--

      Attachments

        Issue Links

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

          Activity

            People

              cstenger Christian Stenger
              vanelstdjd R van Elst
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes