<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 while serializing the AST"
   href="http://llvm.org/bugs/show_bug.cgi?id=20320">20320</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang_reparseTranslationUnit crashes while serializing the AST
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </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=12773" name="attach_12773" title="test.cpp">attachment 12773</a> <a href="attachment.cgi?id=12773&action=edit" title="test.cpp">[details]</a></span>
test.cpp

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


erik@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</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>