[LLVMbugs] [Bug 11500] New: clang_saveTranslationUnit() crashes, when saving TU with precompiledPreamble.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 7 05:32:14 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=11500

             Bug #: 11500
           Summary: clang_saveTranslationUnit() crashes, when saving TU
                    with precompiledPreamble.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: michal.fizek at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


There is a problem, when i try to save TU, that was parsed and then
reparsed(!!) with following flags 0x14(CX_TranslationUnit_precompiledPreamble |
CX_TranslationUnit_CXXprecompiledPreamble) (it works the same also when only
first flag is set, however reparse is mandatory(im suspecting, that first parse
doesnt take into account the above mentioned flag)).

After calling clang_saveTranslationUnit() and assertion condition is met, at
the program that called this function crashes completely with SIGABRT.

Following message is written to output:
ASTWriter.cpp:3422: clang::serialization::DeclID
clang::ASTWriter::getDeclID(const clang::Decl*): Assertion `DeclIDs.find(D) !=
DeclIDs.end() && "Declaration not emitted!"' failed.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list