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

QtCreator crashes with Segmentation Fault on repeated unit test execution

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 8.0.2
    • Test Integration
    • None
    • QtCreator 8.0.2
      Ubtuntu 20.04
    • Linux/X11

    Description

      QtCreator 8.0.2 crashes on Ubuntu 20.04 when running a single unit test multiple times (by right click the test case name in the Test Results tab --> Run Test)

       

      Here is the gdb backtrace:

      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
      0x00007ffff653542e in QSortFilterProxyModel::parent(QModelIndex const&) const ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      (gdb) bt
      #0  0x00007ffff653542e in QSortFilterProxyModel::parent(QModelIndex const&) const ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #1  0x00007fffabbbc40c in ?? () from /opt/Qt/Tools/QtCreator/lib/qtcreator/plugins/libAutoTest.so
      #2  0x00007fffabbc6dbf in ?? () from /opt/Qt/Tools/QtCreator/lib/qtcreator/plugins/libAutoTest.so
      #3  0x00007fffabbd6fc5 in Autotest::Internal::TestRunner::prepareToRunTests(Autotest::TestRunMode) ()
         from /opt/Qt/Tools/QtCreator/lib/qtcreator/plugins/libAutoTest.so
      #4  0x00007ffff6315b5e in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #5  0x00007ffff6fc70f2 in QAction::triggered(bool) () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6
      #6  0x00007ffff6fc9e39 in QAction::activate(QAction::ActionEvent) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6
      #7  0x00007ffff7701aa2 in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #8  0x00007ffff7709161 in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #9  0x00007ffff759dd48 in QWidget::event(QEvent*) () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #10 0x00007ffff754a4d2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #11 0x00007ffff7552bb0 in QApplication::notify(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #12 0x00007ffff62b71ea in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #13 0x00007ffff7551e84 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPoi-Type <RET> for more, q to quit, c to continue without paging-
      nter<QWidget>&, bool, bool) () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #14 0x00007ffff75b02ed in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #15 0x00007ffff75b238b in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #16 0x00007ffff754a4d2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #17 0x00007ffff62b71ea in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #18 0x00007ffff6c07110 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6
      #19 0x00007ffff6c5b19c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6
      #20 0x00007ffff22e0b0a in ?? () from /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt6XcbQpa.so.6
      #21 0x00007ffff316517d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #22 0x00007ffff3165400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #23 0x00007ffff31654a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #24 0x00007ffff655c52a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #25 0x00007ffff62c349b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #26 0x00007ffff7706e74 in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #27 0x00007ffff7706f5f in QMenu::exec(QPoint const&, QAction*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #28 0x00007fffabbcc7de in ?? () from /opt/Qt/Tools/QtCreator/lib/qtcreator/plugins/libAutoTest.so
      #29 0x00007ffff6315b5e in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #30 0x00007ffff7584995 in QWidget::customContextMenuRequested(QPoint const&) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #31 0x00007ffff759ec50 in QWidget::event(QEvent*) () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #32 0x00007ffff76313e2 in QFrame::event(QEvent*) () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #33 0x00007ffff62b6f8a in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #34 0x00007ffff754a4c1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #35 0x00007ffff7553671 in QApplication::notify(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #36 0x00007ffff62b71ea in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #37 0x00007ffff75aff33 in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #38 0x00007ffff75b238b in ?? () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #39 0x00007ffff754a4d2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
      -Type <RET> for more, q to quit, c to continue without paging-
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Widgets.so.6
      #40 0x00007ffff62b71ea in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #41 0x00007ffff6c07110 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6
      #42 0x00007ffff6c5b19c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Gui.so.6
      #43 0x00007ffff22e0b0a in ?? () from /opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/../../lib/libQt6XcbQpa.so.6
      #44 0x00007ffff316517d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #45 0x00007ffff3165400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #46 0x00007ffff31654a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #47 0x00007ffff655c52a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #48 0x00007ffff62c349b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #49 0x00007ffff62bf05e in QCoreApplication::exec() () from /opt/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt6Core.so.6
      #50 0x000000000040cedb in ?? ()
      #51 0x00007ffff5c46083 in __libc_start_main (main=0x40a0d0, argc=1, argv=0x7fffffffdd88, init=<optimized out>, 
          fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdd78) at ../csu/libc-start.c:308
      #52 0x000000000040d56e in ?? ()

      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
              m.r Moritz Rösel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes