<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang_reparseTranslationUnit crashes when reparsing SemaCodeComplete.cpp"
   href="http://llvm.org/bugs/show_bug.cgi?id=19114">19114</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang_reparseTranslationUnit crashes when reparsing SemaCodeComplete.cpp
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Erik.Verbruggen@Me.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12214" name="attach_12214" title="c-index-test.crash.txt">attachment 12214</a> <a href="attachment.cgi?id=12214&action=edit" title="c-index-test.crash.txt">[details]</a></span>
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?)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>