[LLVMbugs] [Bug 20320] New: clang_reparseTranslationUnit crashes while serializing the AST

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 16 02:35:13 PDT 2014


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

            Bug ID: 20320
           Summary: clang_reparseTranslationUnit crashes while serializing
                    the AST
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Erik.Verbruggen at Me.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12773
  --> http://llvm.org/bugs/attachment.cgi?id=12773&action=edit
test.cpp

I ran the file test.cpp from the attached tarball through c-index-test, and
libclang consistently crashes:


erik at Road-Warrior:qtcreator_test$ env CINDEXTEST_EDITING=1 c-index-test
-test-load-source-reparse 5 local -x c++ ./test.cpp 
./test.cpp:1:10: error: 'skeletons/xcoder_exception.h' file not found with
<angled> include; use "quotes" instead
./skeletons/xcoder_exception.h:24:10: fatal error: 'Ice/ProxyF.h' file not
found
Assertion failed: (!T->isBeingDefined() && "Cannot serialize in the middle of a
type definition"), function VisitTagType, file
/Users/erik/dev/clang-llvm/llvm-git/tools/clang/lib/Serialization/ASTWriter.cpp,
line 269.
libclang: crash detected during reparsing
Assertion failed: (OutputFiles.empty() && "Still output files in flight?"),
function ~CompilerInstance, file
/Users/erik/dev/clang-llvm/llvm-git/tools/clang/lib/Frontend/CompilerInstance.cpp,
line 58.
0  libclang.3.5.dylib       0x0000000108289708
llvm::sys::PrintStackTrace(__sFILE*) + 40
1  libclang.3.5.dylib       0x0000000108289c04 SignalHandler(int) + 548
2  libsystem_platform.dylib 0x00007fff85a345aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 2052897392
4  libclang.3.5.dylib       0x00000001082899c6 abort + 22
5  libclang.3.5.dylib       0x00000001082899a1 __assert_rtn + 81
6  libclang.3.5.dylib       0x0000000107df2635
clang::CompilerInstance::~CompilerInstance() + 629
7  libclang.3.5.dylib       0x0000000107df239e
clang::CompilerInstance::~CompilerInstance() + 14
8  libclang.3.5.dylib       0x0000000108257b61
llvm::CrashRecoveryContext::~CrashRecoveryContext() + 145
9  libclang.3.5.dylib       0x0000000107baba2c clang_reparseTranslationUnit +
412
10 c-index-test             0x0000000107b8188f perform_test_reparse_source +
879
11 c-index-test             0x0000000107b857c6 cindextest_main + 8038
12 c-index-test             0x0000000107b86d34 thread_runner + 20
13 libclang.3.5.dylib       0x000000010828aa3d ExecuteOnThread_Dispatch(void*)
+ 13
14 libsystem_pthread.dylib  0x00007fff8d7fe899 _pthread_body + 138
15 libsystem_pthread.dylib  0x00007fff8d7fe72a _pthread_struct_init + 0
16 libsystem_pthread.dylib  0x00007fff8d802fc9 thread_start + 13
Illegal instruction: 4

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140716/3c847339/attachment.html>


More information about the llvm-bugs mailing list