Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
Qt Creator 13.0.0-beta1
-
None
Description
i've seen two (possibly related) crashes in qtc-13, that do not occur in qtc-12:
when opening a session on the welcome screen i get this crash:
Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault. 0x00007fffe8f27774 in Tasking::GroupItem::GroupItem(Tasking::GroupItem const&) () from /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libCore.so (gdb) bt #0 0x00007fffe8f27774 in Tasking::GroupItem::GroupItem(Tasking::GroupItem const&) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libCore.so #1 0x00007fffe90aa8b9 in Core::Internal::Locator::refresh(QList<Core::ILocatorFilter*> const&) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libCore.so #2 0x00007fffe9077b8f in Core::DirectoryFilter::setDirectories(QList<Utils::FilePath> const&) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libCore.so #3 0x00007fffe9077cb9 in Core::DirectoryFilter::addDirectory(Utils::FilePath const&) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libCore.so #4 0x00007fffe8755e65 in QtPrivate::QCallableObject<ProjectExplorer::AllProjectFilesFilter::AllProjectFilesFilter()::$_0, QtPrivate::List<ProjectExplorer::Project*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libProjectExplorer.so #5 0x00007ffff63a9e17 in void doActivate<false>(QObject*, int, void**) () at /home/tim/bin/qt-6.6/lib/libQt6Core.so.6 #6 0x00007fffe876b1d2 in ProjectExplorer::ProjectManager::addProject(ProjectExplorer::Project*) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libProjectExplorer.so #7 0x00007fffe873e436 in ProjectExplorer::ProjectExplorerPlugin::openProjects(QList<Utils::FilePath> const&) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libProjectExplorer.so #8 0x00007fffe87704eb in QtPrivate::QCallableObject<ProjectExplorer::ProjectManager::ProjectManager()::$_0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libProjectExplorer.so #9 0x00007ffff63a9e17 in void doActivate<false>(QObject*, int, void**) () at /home/tim/bin/qt-6.6/lib/libQt6Core.so.6 #10 0x00007fffe912f078 in Core::SessionManager::loadSession(QString const&, bool) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libCore.so #11 0x00007fffe913b0ae in Core::SessionModel::switchToSession(QString const&) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libCore.so #12 0x00007fffe879ca16 in ProjectExplorer::Internal::SessionDelegate::editorEvent(QEvent*, QAbstractItemModel*, QStyleOptionViewItem const&, QModelIndex const&) () at /home/tim/dev/qt-creator/build_clang/lib/qtcreator/plugins/libProjectExplorer.so #13 0x00007ffff767bab0 in QAbstractItemViewPrivate::sendDelegateEvent(QModelIndex const&, QEvent*) const () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #14 0x00007ffff767eeae in QAbstractItemView::edit(QModelIndex const&, QAbstractItemView::EditTrigger, QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #15 0x00007ffff767b6d8 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #16 0x00007ffff76f73ce in QTreeView::mouseReleaseEvent(QMouseEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #17 0x00007ffff73e8db9 in QWidget::event(QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #18 0x00007ffff747a9f5 in QAbstractScrollArea::viewportEvent(QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #19 0x00007ffff767a359 in QAbstractItemView::viewportEvent(QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #20 0x00007ffff76f3213 in QTreeView::viewportEvent(QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #21 0x00007ffff63543b0 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Core.so.6 #22 0x00007ffff738e3ed in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #23 0x00007ffff7390d3a in QApplication::notify(QObject*, QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #24 0x00007ffff63540f1 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Core.so.6 #25 0x00007ffff738eb83 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #26 0x00007ffff73fed31 in QWidgetWindow::event(QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #27 0x00007ffff738e401 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #28 0x00007ffff738f45e in QApplication::notify(QObject*, QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Widgets.so.6 #29 0x00007ffff63540f1 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Core.so.6 #30 0x00007ffff6ba81c6 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /home/tim/bin/qt-6.6/lib/libQt6Gui.so.6 #31 0x00007ffff6c0e8da in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/tim/bin/qt-6.6/lib/libQt6Gui.so.6 #32 0x00007ffff28abeca in xcbSourceDispatch(_GSource*, int (*)(void*), void*) [clone .llvm.9129179440159189994] () at /home/tim/bin/qt-6.6/plugins/platforms/../../lib/libQt6XcbQpa.so.6 #33 0x00007ffff591bd3b in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #34 0x00007ffff5971258 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #35 0x00007ffff59193e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #36 0x00007ffff6624eaa in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/tim/bin/qt-6.6/lib/libQt6Core.so.6 #37 0x00007ffff635e22a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/tim/bin/qt-6.6/lib/libQt6Core.so.6 #38 0x00007ffff6354714 in QCoreApplication::exec() () at /home/tim/bin/qt-6.6/lib/libQt6Core.so.6 #39 0x0000555555563855 in main ()
i could not reproduce it on a debug build (so it could be timing related), but on a debug build i get this crash on exit:
Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault. 0x00007ffff7757fcb in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x7f00f7e3f770) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:337 337 if (__atomic_load_n(__both_counts, __ATOMIC_ACQUIRE) == __unique_ref) (gdb) bt #0 0x00007ffff7757fcb in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() (this=0x7f00f7e3f770) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:337 #1 0x00007ffff775833a in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() (this=0x7ffff7e3f900 <Tasking::continueOnError+128>) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1071 #2 0x00007ffff7769959 in std::__shared_ptr<Tasking::LoopData, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() (this=0x7ffff7e3f8f8 <Tasking::continueOnError+120>) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524 #3 0x00007ffff7758305 in std::shared_ptr<Tasking::LoopData>::~shared_ptr() (this=0x7ffff7e3f8f8 <Tasking::continueOnError+120>) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr.h:175 #4 0x00007ffff77582e5 in Tasking::Loop::~Loop() (this=0x7ffff7e3f8f8 <Tasking::continueOnError+120>) at /home/tim/dev/qt-creator/src/libs/solutions/tasking/tasktree.h:100 #5 0x00007ffff77582c9 in std::_Optional_payload_base<Tasking::Loop>::_M_destroy() (this=0x7ffff7e3f8f8 <Tasking::continueOnError+120>) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:287 #6 0x00007ffff7757e07 in std::_Optional_payload_base<Tasking::Loop>::_M_reset() (this=0x7ffff7e3f8f8 <Tasking::continueOnError+120>) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:318 #7 0x00007ffff775ad29 in std::_Optional_payload<Tasking::Loop, false, false, false>::~_Optional_payload() (this=0x7ffff7e3f8f8 <Tasking::continueOnError+120>) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:439 #8 0x00007ffff775ad05 in std::_Optional_base<Tasking::Loop, false, false>::~_Optional_base() (this=0x7ffff7e3f8f8 <Tasking::continueOnError+120>) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:510 #9 0x00007ffff7751c85 in std::optional<Tasking::Loop>::~optional() (this=0x7ffff7e3f8f8 <Tasking::continueOnError+120>) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/optional:705 #10 0x00007ffff77542ed in Tasking::GroupItem::GroupData::~GroupData() (this=0x7ffff7e3f8a0 <Tasking::continueOnError+32>) at /home/tim/dev/qt-creator/src/libs/solutions/tasking/tasktree.h:236 #11 0x00007ffff7750a3d in Tasking::GroupItem::~GroupItem() (this=0x7ffff7e3f880 <Tasking::continueOnError>) at /home/tim/dev/qt-creator/src/libs/solutions/tasking/tasktree.h:196 #12 0x00007ffff5645a56 in __cxa_finalize (d=0x7ffff7e3b0e8) at ./stdlib/cxa_finalize.c:83 #13 0x00007ffff77380e7 in __do_global_dtors_aux () at /home/tim/dev/qt-creator/build_clang_debug/bin/../lib/qtcreator/libUtils.so.12 #14 0x00007fffffffda70 in () #15 0x00007ffff7fc924e in _dl_fini () at ./elf/dl-fini.c:142