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

Crash on shutdown inside ClangCodeModel

    XMLWordPrintable

    Details

      Description

      Call stack from the crashed thread:

      Thread 1 (Thread 0x7fdbe77bf640 (LWP 193225)):
      #0  0x00007fdc0b0c9e02 in ClangCodeModel::Internal::ClangProjectSettings::useGlobalConfig (this=0x0) at /home/jarek/dev/creator-5/src/plugins/clangcodemodel/clangprojectsettings.cpp:93
      #1  0x00007fdc0b0da246 in ClangCodeModel::Internal::(anonymous namespace)::FileOptionsBuilder::addDiagnosticOptions (this=0x7fdbe77be570) at /home/jarek/dev/creator-5/src/plugins/clangcodemodel/clangutils.cpp:544
      #2  0x00007fdc0b0da076 in ClangCodeModel::Internal::(anonymous namespace)::FileOptionsBuilder::FileOptionsBuilder (this=0x7fdbe77be570, filePath=..., projectPart=...) at /home/jarek/dev/creator-5/src/plugins/clangcodemodel/clangutils.cpp:509
      #3  0x00007fdc0b0da6c3 in ClangCodeModel::Internal::createClangOptions (projectPart=..., filePath=...) at /home/jarek/dev/creator-5/src/plugins/clangcodemodel/clangutils.cpp:616
      #4  0x00007fdc0b0d8f08 in ClangCodeModel::Internal::createFileObject (buildDir=..., arguments=..., projectPart=..., projFile=..., purpose=ClangCodeModel::Internal::CompilationDbPurpose::CodeModel) at /home/jarek/dev/creator-5/src/plugins/clangcodemodel/clangutils.cpp:379
      #5  0x00007fdc0b0d976e in ClangCodeModel::Internal::generateCompilationDB (projectInfo=..., purpose=ClangCodeModel::Internal::CompilationDbPurpose::CodeModel) at /home/jarek/dev/creator-5/src/plugins/clangcodemodel/clangutils.cpp:414
      #6  0x00007fdc0b0c52fe in Utils::Internal::runAsyncReturnVoidDispatch<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose> (futureInterface=..., function=@0x812e378: 0x7fdc0b0d929d <ClangCodeModel::Internal::generateCompilationDB(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose)>) at /home/jarek/dev/creator-5/src/libs/utils/runextensions.h:250
      #7  0x00007fdc0b0c5240 in Utils::Internal::runAsyncQFutureInterfaceDispatch<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose> (futureInterface=..., function=@0x812e378: 0x7fdc0b0d929d <ClangCodeModel::Internal::generateCompilationDB(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose)>) at /home/jarek/dev/creator-5/src/libs/utils/runextensions.h:264
      #8  0x00007fdc0b0c5145 in Utils::Internal::runAsyncMemberDispatch<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose, void> (futureInterface=..., function=@0x812e378: 0x7fdc0b0d929d <ClangCodeModel::Internal::generateCompilationDB(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose)>) at /home/jarek/dev/creator-5/src/libs/utils/runextensions.h:274
      #9  0x00007fdc0b0c5052 in Utils::Internal::runAsyncImpl<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose> (futureInterface=..., function=@0x812e378: 0x7fdc0b0d929d <ClangCodeModel::Internal::generateCompilationDB(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose)>) at /home/jarek/dev/creator-5/src/libs/utils/runextensions.h:303
      #10 0x00007fdc0b0c4efc in Utils::Internal::AsyncJob<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo const&, ClangCodeModel::Internal::CompilationDbPurpose>::runHelper<0ul, 1ul, 2ul> (this=0x812e330) at /home/jarek/dev/creator-5/src/libs/utils/runextensions.h:372
      #11 0x00007fdc0b0c4de2 in Utils::Internal::AsyncJob<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo const&, ClangCodeModel::Internal::CompilationDbPurpose>::run (this=0x812e330) at /home/jarek/dev/creator-5/src/libs/utils/runextensions.h:352
      #12 0x00007fdc3ab4653d in Utils::Internal::RunnableThread::run (this=0x5cb1b90) at /home/jarek/dev/creator-5/src/libs/utils/runextensions.cpp:39
      #13 0x00007fdc38e35ee9 in QThreadPrivate::start (arg=0x5cb1b90) at /home/jarek/dev/qt-515/qtbase/src/corelib/thread/qthread_unix.cpp:329
      #14 0x00007fdc38090299 in start_thread () from /lib64/libpthread.so.0
      #15 0x00007fdc38906353 in clone () from /lib64/libc.so.6
      

      And main thread state:

      Thread 7 (Thread 0x7fdc3529c8c0 (LWP 192199)):
      #0  0x00007fdc1c54c342 in std::function<bool (ProjectExplorer::Node const*)>::operator()(ProjectExplorer::Node const*) const (this=0x7fdc1ca6bdc0 <ProjectExplorer::Project::SourceFiles>, __args#0=0x7fdbd189efc0) at /usr/include/c++/11/bits/std_function.h:560
      #1  0x00007fdc1c53da97 in ProjectExplorer::Project::files(std::function<bool (ProjectExplorer::Node const*)> const&) const (this=0x3ed3e10, filter=...) at /home/jarek/dev/creator-5/src/plugins/projectexplorer/project.cpp:655
      #2  0x00007fdc097e4755 in ModelEditor::Internal::ModelIndexer::forgetProject (this=0x22ffde0, project=0x3ed3e10) at /home/jarek/dev/creator-5/src/plugins/modeleditor/modelindexer.cpp:486
      #3  0x00007fdc097e3990 in ModelEditor::Internal::ModelIndexer::onAboutToRemoveProject (this=0x22ffde0, project=0x3ed3e10) at /home/jarek/dev/creator-5/src/plugins/modeleditor/modelindexer.cpp:385
      #4  0x00007fdc097ecdf4 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<ProjectExplorer::Project*>, void, void (ModelEditor::Internal::ModelIndexer::*)(ProjectExplorer::Project*)>::call (f=(void (ModelEditor::Internal::ModelIndexer::*)(ModelEditor::Internal::ModelIndexer * const, ProjectExplorer::Project *)) 0x7fdc097e3942 <ModelEditor::Internal::ModelIndexer::onAboutToRemoveProject(ProjectExplorer::Project*)>, o=0x22ffde0, arg=0x7fffe9eb9880) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobjectdefs_impl.h:152
      #5  0x00007fdc097ec765 in QtPrivate::FunctionPointer<void (ModelEditor::Internal::ModelIndexer::*)(ProjectExplorer::Project*)>::call<QtPrivate::List<ProjectExplorer::Project*>, void> (f=(void (ModelEditor::Internal::ModelIndexer::*)(ModelEditor::Internal::ModelIndexer * const, ProjectExplorer::Project *)) 0x7fdc097e3942 <ModelEditor::Internal::ModelIndexer::onAboutToRemoveProject(ProjectExplorer::Project*)>, o=0x22ffde0, arg=0x7fffe9eb9880) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobjectdefs_impl.h:185
      #6  0x00007fdc097eb735 in QtPrivate::QSlotObject<void (ModelEditor::Internal::ModelIndexer::*)(ProjectExplorer::Project*), QtPrivate::List<ProjectExplorer::Project*>, void>::impl (which=1, this_=0x22e43f0, r=0x22ffde0, a=0x7fffe9eb9880, ret=0x0) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobjectdefs_impl.h:418
      #7  0x00007fdc390b5b5f in QtPrivate::QSlotObjectBase::call (this=0x22e43f0, r=0x22ffde0, a=0x7fffe9eb9880) at ../../include/QtCore/../../../../qt-515/qtbase/src/corelib/kernel/qobjectdefs_impl.h:398
      #8  0x00007fdc390f524d in doActivate<false> (sender=0x1a69880, signal_index=6, argv=0x7fffe9eb9880) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobject.cpp:3886
      #9  0x00007fdc390eec41 in QMetaObject::activate (sender=0x1a69880, m=0x7fdc1ca43060 <ProjectExplorer::SessionManager::staticMetaObject>, local_signal_index=3, argv=0x7fffe9eb9880) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobject.cpp:3946
      #10 0x00007fdc1c280697 in ProjectExplorer::SessionManager::aboutToRemoveProject (this=0x1a69880, _t1=0x3ed3e10) at src/plugins/projectexplorer/ProjectExplorer_autogen/EWIEGA46WW/moc_session.cpp:300
      #11 0x00007fdc1c64226c in ProjectExplorer::SessionManager::removeProjects (remove=...) at /home/jarek/dev/creator-5/src/plugins/projectexplorer/session.cpp:733
      #12 0x00007fdc1c640da7 in ProjectExplorer::SessionManager::closeAllProjects () at /home/jarek/dev/creator-5/src/plugins/projectexplorer/session.cpp:560
      #13 0x00007fdc1c56eab9 in ProjectExplorer::ProjectExplorerPlugin::aboutToShutdown (this=0x1724af0) at /home/jarek/dev/creator-5/src/plugins/projectexplorer/projectexplorer.cpp:2145
      #14 0x00007fdc3ad5b640 in ExtensionSystem::Internal::PluginSpecPrivate::stop (this=0x16e4ac0) at /home/jarek/dev/creator-5/src/libs/extensionsystem/pluginspec.cpp:1114
      #15 0x00007fdc3ad3e1ca in ExtensionSystem::Internal::PluginManagerPrivate::loadPlugin (this=0x1622d70, spec=0x16e01a0, destState=ExtensionSystem::PluginSpec::Stopped) at /home/jarek/dev/creator-5/src/libs/extensionsystem/pluginmanager.cpp:1644
      #16 0x00007fdc3ad3a4ae in ExtensionSystem::Internal::PluginManagerPrivate::stopAll (this=0x1622d70) at /home/jarek/dev/creator-5/src/libs/extensionsystem/pluginmanager.cpp:1057
      #17 0x00007fdc3ad3c5cc in ExtensionSystem::Internal::PluginManagerPrivate::shutdown (this=0x1622d70) at /home/jarek/dev/creator-5/src/libs/extensionsystem/pluginmanager.cpp:1394
      #18 0x00007fdc3ad3643b in ExtensionSystem::PluginManager::shutdown () at /home/jarek/dev/creator-5/src/libs/extensionsystem/pluginmanager.cpp:409
      #19 0x00000000004163a9 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (*)()>::call(void (*&)(), void**) (f=@0x7fffe9eb9c48: 0x7fdc3ad36428 <ExtensionSystem::PluginManager::shutdown()>, arg=0x7fffe9eb9e70) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobjectdefs_impl.h:146
      #20 0x0000000000415dd9 in QtPrivate::FunctionPointer<void (*)()>::call<QtPrivate::List<>, void>(void (*)(), void*, void**) (f=0x7fdc3ad36428 <ExtensionSystem::PluginManager::shutdown()>, arg=0x7fffe9eb9e70) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobjectdefs_impl.h:209
      #21 0x00000000004153da in QtPrivate::QStaticSlotObject<void (*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x2c7dfe0, r=0x7fffe9eba0b0, a=0x7fffe9eb9e70, ret=0x0) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobject_impl.h:90
      #22 0x00007fdc390b5b5f in QtPrivate::QSlotObjectBase::call (this=0x2c7dfe0, r=0x7fffe9eba0b0, a=0x7fffe9eb9e70) at ../../include/QtCore/../../../../qt-515/qtbase/src/corelib/kernel/qobjectdefs_impl.h:398
      #23 0x00007fdc390f524d in doActivate<false> (sender=0x7fffe9eba0e0, signal_index=3, argv=0x7fffe9eb9e70) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobject.cpp:3886
      #24 0x00007fdc390eec41 in QMetaObject::activate (sender=0x7fffe9eba0e0, m=0x7fdc39494c40 <QCoreApplication::staticMetaObject>, local_signal_index=0, argv=0x7fffe9eb9e70) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qobject.cpp:3946
      #25 0x00007fdc390a8fcb in QCoreApplication::aboutToQuit (this=0x7fffe9eba0e0, _t1=...) at .moc/moc_qcoreapplication.cpp:254
      #26 0x00007fdc390a4ed3 in QCoreApplicationPrivate::execCleanup (this=0x12f0680) at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qcoreapplication.cpp:1395
      #27 0x00007fdc390a4e4e in QCoreApplication::exec () at /home/jarek/dev/qt-515/qtbase/src/corelib/kernel/qcoreapplication.cpp:1379
      #28 0x00007fdc3984494c in QGuiApplication::exec () at /home/jarek/dev/qt-515/qtbase/src/gui/kernel/qguiapplication.cpp:1867
      #29 0x00007fdc3a12f98d in QApplication::exec () at /home/jarek/dev/qt-515/qtbase/src/widgets/kernel/qapplication.cpp:2829
      #30 0x000000000040deb4 in main (argc=1, argv=0x7fffe9ebaa38) at /home/jarek/dev/creator-5/src/app/main.cpp:762
      

      Other threads look innocent.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jkobus Jarek Kobus
              Reporter:
              jkobus Jarek Kobus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes