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

QtCreator crashes on code-complete with Clang Code Model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 3.1.0
    • C/C++/Obj-C++ Support
    • None
    • Fedora 20

    Description

      Crashes only in a single file. Steps:
      1. Print the '#' sign.
      2. See auto-complete suggestions.
      3. Try to type 'include' and wait.

      The part of the stack-trace with assertion message:

      qtcreator: /home/user/Projects/llvm/tools/clang/lib/Lex/PPMacroExpansion.cpp:63: void clang::Preprocessor::setLoadedMacroDirective(clang::IdentifierInfo *, clang::MacroDirective *): Assertion `!StoredMD && "the macro history was modified before initializing it from a pch"' failed.

      clang::ASTReader::installPCHMacroDirectives(clang::IdentifierInfo*, clang::serialization::ModuleFile&, ...)
      clang::ASTReader::finishPendingActions()
      clang::ASTReader::FinishedDeserializing()
      clang::ASTReader::updateOutOfDateIdentifier(clang::IdentifierInfo&)
      ...
      clang_reparseTranslationUnit_Impl(void*)

      If you need the full stack-trace, I can build the Debug version of QtCreator and get symbolized trace from QtCreator itself. Otherwise, I have problems getting this stack-trace with GDB, since the auto-complete is a modal window which blocks futher interaction with desktop. So I have to run gdb in a raw tty.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            abyss.7 Ivan L
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes