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

Repeated clangbackend crashing (clang tidy related stacktraces)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.6.0
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None

      Description

      I get repeated errors every second: Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.

      This is after opening a project that works well with Qt Creator 4.5.0

      2018-03-29T11:55:25 Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.
       Error in ClangCodeModelServer::unregisterTranslationUnitsForEditor: Document '/home/michal/keeperrl/player_control.cpp' with the project part id '/home/michal/keeperrl/KeeperRL.creator KeeperRL' does not exists!
       terminate called after throwing an instance of 'std::invalid_argument'
       what(): stod
       #0 0x00007efff6679c7a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x19abc7a)
       #1 0x00007efff667807e llvm::sys::RunSignalHandlers() (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x19aa07e)
       #2 0x00007efff66781b8 SignalHandler(int) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x19aa1b8)
       #3 0x00007efff2b40390 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
       #4 0x00007efff1ef9428 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x35428)
       #5 0x00007efff1efb02a abort (/lib/x86_64-linux-gnu/libc.so.6+0x3702a)
       #6 0x00007efff283c84d __gnu_cxx::__verbose_terminate_handler() (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8f84d)
       #7 0x00007efff283a6b6 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8d6b6)
       #8 0x00007efff283a701 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8d701)
       #9 0x00007efff283a919 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x8d919)
       #10 0x00007efff286320f std::__throw_invalid_argument(char const*) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xb620f)
       #11 0x00007efff6720875 (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x1a52875)
       #12 0x00007efff66dbcf2 std::_Function_handler<clang::tidy::ClangTidyCheck* (llvm::StringRef, clang::tidy::ClangTidyContext*), void clang::tidy::ClangTidyCheckFactories::registerCheck<clang::tidy::misc::SuspiciousMissingCommaCheck>(llvm::StringRef)::\{lambda(llvm::StringRef, clang::tidy::ClangTidyContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::StringRef&&, clang::tidy::ClangTidyContext*&&) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x1a0dcf2)
       #13 0x00007efff68e2730 clang::tidy::ClangTidyCheckFactories::createChecks(clang::tidy::ClangTidyContext*, std::vector<std::unique_ptr<clang::tidy::ClangTidyCheck, std::default_delete<clang::tidy::ClangTidyCheck> >, std::allocator<std::unique_ptr<clang::tidy::ClangTidyCheck, std::default_delete<clang::tidy::ClangTidyCheck> > > >&) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x1c14730)
       #14 0x00007efff68e0b70 clang::tidy::ClangTidyASTConsumerFactory::CreateASTConsumer(clang::CompilerInstance&, llvm::StringRef) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x1c12b70)
       #15 0x00007efff5abb043 clang::tidy::ClangTidyPluginAction::CreateASTConsumer(clang::CompilerInstance&, llvm::StringRef) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0xded043)
       #16 0x00007efff54e92eb clang::FrontendAction::CreateWrappedASTConsumer(clang::CompilerInstance&, llvm::StringRef) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x81b2eb)
       #17 0x00007efff54ee62b clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x82062b)
       #18 0x00007efff54a39fc clang::ASTUnit::Parse(std::shared_ptr<clang::PCHContainerOperations>, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x7d59fc)
       #19 0x00007efff54a3ec9 clang::ASTUnit::LoadFromCompilerInvocation(std::shared_ptr<clang::PCHContainerOperations>, unsigned int, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x7d5ec9)
       #20 0x00007efff54a7029 clang::ASTUnit::LoadFromCommandLine(char const**, char const**, std::shared_ptr<clang::PCHContainerOperations>, llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>, llvm::StringRef, bool, bool, llvm::ArrayRef<std::pair<std::string, llvm::MemoryBuffer*> >, bool, unsigned int, clang::TranslationUnitKind, bool, bool, bool, bool, bool, bool, bool, llvm::Optional<llvm::StringRef>, std::unique_ptr<clang::ASTUnit, std::default_delete<clang::ASTUnit> >*, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x7d9029)
       #21 0x00007efff5272646 void llvm::function_ref<void ()>::callback_fn<clang_parseTranslationUnit2FullArgv::\{lambda()#1}>(long) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x5a4646)
       #22 0x00007efff6626ac9 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x1958ac9)
       #23 0x00007efff6626b34 RunSafelyOnThread_Dispatch(void*) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x1958b34)
       #24 0x00007efff667a20d ExecuteOnThread_Dispatch(void*) (/home/michal/qtcreator-4.6.0/libexec/qtcreator/../../lib/qtcreator/libclang.so.5+0x19ac20d)
       #25 0x00007efff2b366ba start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76ba)
       #26 0x00007efff1fcb3dd clone (/lib/x86_64-linux-gnu/libc.so.6+0x1073dd)
       "ClangCodeModelConnectionClient" LocalSocket Error: "QLocalSocket: Remote closed"
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              miki151 miki151
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes