[LLVMbugs] [Bug 19114] New: clang_reparseTranslationUnit crashes when reparsing SemaCodeComplete.cpp

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 12 07:38:31 PDT 2014


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

            Bug ID: 19114
           Summary: clang_reparseTranslationUnit crashes when reparsing
                    SemaCodeComplete.cpp
           Product: clang
           Version: trunk
          Hardware: Macintosh
                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 12214
  --> http://llvm.org/bugs/attachment.cgi?id=12214&action=edit
c-index-test.crash.txt

SemaCodeComplete.cpp will crash libclang when calling
clang_reparseTranslationUnit on it. This is reproducable with c-index-test:

env CINDEXTEST_EDITING=1 ./bin/c-index-test -test-load-source-reparse 5 local \
-x c++ -std=gnu++11 \
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \
-F/System/Library/Frameworks -F/Library/Frameworks
-I/Users/erik/dev/clang-llvm/llvm-git/include
-I/Users/erik/dev/clang-llvm/llvm-git/tools/clang/include
-I/Users/erik/dev/builds/llvm-debug-build/include
-I/Users/erik/dev/builds/llvm-debug-build/tools/clang/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1
-I/usr/local/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I/usr/include \
/Users/erik/dev/clang-llvm/llvm-git/tools/clang/lib/Sema/SemaCodeComplete.cpp

There is no crash when preprocessing the file first (clang -E) and running that
through c-index-test.

Attached are two stack traces, one from c-index-test which I used to reproduce
the bug. The original stack trace is from Qt Creator, which is different (and
maybe helpful?)

-- 
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/20140312/99a5ebdb/attachment.html>


More information about the llvm-bugs mailing list