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

Crash in clangcodemodel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 5.0.1
    • C/C++/Obj-C++ Support
    • None
    • Linux/X11

    Description

      Qt Creator 5.0.1 seems to crash in clangcodemodel plugin when opening a project:

      #0  ClangCodeModel::Internal::ClangProjectSettings::useGlobalConfig (this=this@entry=0x0)
          at /home/qt/work/build/qt-creator/src/plugins/clangcodemodel/clangprojectsettings.cpp:93
      #1  0x00007fffc1b0e304 in ClangCodeModel::Internal::(anonymous namespace)::FileOptionsBuilder::addDiagnosticOptions (this=0x7fff78ff8a60)
          at /home/qt/work/build/qt-creator/src/plugins/clangcodemodel/clangutils.cpp:544
      #2  ClangCodeModel::Internal::(anonymous namespace)::FileOptionsBuilder::FileOptionsBuilder (
          projectPart=..., filePath=..., this=0x7fff78ff8a60)
          at /home/qt/work/build/qt-creator/src/plugins/clangcodemodel/clangutils.cpp:509
      #3  ClangCodeModel::Internal::createClangOptions (projectPart=..., filePath=...)
          at /home/qt/work/build/qt-creator/src/plugins/clangcodemodel/clangutils.cpp:616
      #4  0x00007fffc1b108d8 in ClangCodeModel::Internal::createFileObject (
          purpose=ClangCodeModel::Internal::CompilationDbPurpose::CodeModel, projFile=..., 
          projectPart=..., arguments=..., buildDir=...)
          at /home/qt/work/build/qt-creator/src/plugins/clangcodemodel/clangutils.cpp:379
      #5  ClangCodeModel::Internal::generateCompilationDB (projectInfo=..., 
          purpose=ClangCodeModel::Internal::CompilationDbPurpose::CodeModel)
          at /home/qt/work/build/qt-creator/src/plugins/clangcodemodel/clangutils.cpp:414
      #6  0x00007fffc1afb320 in Utils::Internal::runAsyncReturnVoidDispatch<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose>(std::integral_constant<bool, false>, QFutureInterface<ClangCodeModel::Internal::GenerateCompilationDbResult>, ClangCodeModel::Internal::GenerateCompilationDbResult (*&&)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo&&, ClangCodeModel::Internal::CompilationDbPurpose&&) (
          function=<unknown type in /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/ClangCodeModel.debug, CU 0xff10a3, DIE 0x10e4ca6>, futureInterface=...)
          at /home/qt/work/build/qt-creator/src/libs/utils/runextensions.h:250
      #7  Utils::Internal::runAsyncQFutureInterfaceDispatch<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose>(std::integral_constant<bool, false>, QFutureInterface<ClangCodeModel::Internal::GenerateCompilationDbResult>, ClangCodeModel::Internal::GenerateCompilationDbResult (*&&)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo&&, ClangCodeModel::Internal::CompilationDbPurpose&&) (
          function=<unknown type in /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/ClangCodeModel.debug, CU 0xff10a3, DIE 0x10e4bfd>, futureInterface=...)
          at /home/qt/work/build/qt-creator/src/libs/utils/runextensions.h:264
      #8  Utils::Internal::runAsyncMemberDispatch<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose, void>(QFutureInterface<ClangCodeModel::Internal::GenerateCompilationDbResult>, ClangCodeModel::Internal::GenerateCompilationDbResult (*&&)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo&&, ClangCodeModel::Internal::CompilationDbPurpose&&) (
          function=<unknown type in /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/ClangCodeModel.debug, CU 0xff10a3, DIE 0x10e4b54>, futureInterface=...)
          at /home/qt/work/build/qt-creator/src/libs/utils/runextensions.h:274
      #9  Utils::Internal::runAsyncImpl<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose>(QFutureInterface<ClangCodeModel::Internal::GenerateCompilationDbResult>, ClangCodeModel::Internal::GenerateCompilationDbResult (*&&)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo&&, ClangCodeModel::Internal::CompilationDbPurpose&&) (futureInterface=..., 
          function=function@entry=<unknown type in /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/ClangCodeModel.debug, CU 0xff10a3, DIE 0x10e4a78>, 
          args#0=args#0@entry=<unknown type in /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/ClangCodeModel.debug, CU 0xff10a3, DIE 0x10e4a9c>, 
          args#1=args#1@entry=<unknown type in /home/user/Qt/Tools/QtCreator/lib/qtcreator/plugins/ClangCodeModel.debug, CU 0xff10a3, DIE 0x10e4aac>)
          at /home/qt/work/build/qt-creator/src/libs/utils/runextensions.h:303
      ---Type <return> to continue, or q <return> to quit---
      #10 0x00007fffc1afb659 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=0x30b2130)
          at /home/qt/work/build/qt-creator/src/libs/utils/runextensions.h:372
      #11 Utils::Internal::AsyncJob<ClangCodeModel::Internal::GenerateCompilationDbResult, ClangCodeModel::Internal::GenerateCompilationDbResult (*)(CppTools::ProjectInfo, ClangCodeModel::Internal::CompilationDbPurpose), CppTools::ProjectInfo const&, ClangCodeModel::Internal::CompilationDbPurpose>::run (
          this=0x30b2130) at /home/qt/work/build/qt-creator/src/libs/utils/runextensions.h:352
      #12 0x00007ffff7864e6d in Utils::Internal::RunnableThread::run (this=0x2f559a0)
          at /home/qt/work/build/qt-creator/src/libs/utils/runextensions.cpp:39
      #13 0x00007ffff5609b35 in QThreadPrivate::start(void*) ()
         from /home/user/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #14 0x00007ffff3bc96ba in start_thread (arg=0x7fff78ff9700) at pthread_create.c:333
      #15 0x00007ffff49f251d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

      Attachments

        Issue Links

          Activity

            People

              kandeler Christian Kandeler
              poikelin Joni Poikelin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: