<html>
<head>
<base href="https://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 --- - Index/crash-recovery-modules.m test failure"
href="https://llvm.org/bugs/show_bug.cgi?id=23400">23400</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Index/crash-recovery-modules.m test failure
</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>Linux
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tzafrir11@gmail.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>Under ubuntu 12.04 64 bit, the test failed with the following output:
error: expected string not found in input
// CHECK-CRASH: crash-recovery-modules.m:16:9:{16:2-16:14}: fatal error: could
not build module 'Crash'
^
<stdin>:1:1: note: scanning from here
c-index-test: lib/Support/PrettyStackTrace.cpp:125: virtual
llvm::PrettyStackTraceEntry::~PrettyStackTraceEntry(): Assertion
`PrettyStackTraceHead == this && "Pretty stack trace entry destruction is out
of order"' failed
It seems like there is an assert error during compilation, instead of the
expected documented crash
Stack trace below:
c-index-test: lib/Support/PrettyStackTrace.cpp:125: virtual
llvm::PrettyStackTraceEntry::~PrettyStackTraceEntry(): Assertion
`PrettyStackTraceHead == this && "Pretty stack trace entry destruction is out
of order"' failed.
#0 0x7f9218491658 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(gcc/bin/../lib/libclang.so.3.7+0x8fb658)
#1 0x7f9218490e31 SignalHandler(int) (gcc/bin/../lib/libclang.so.3.7+0x8fae31)
#2 0x7f92174a1d40 (/lib/x86_64-linux-gnu/libc.so.6+0x36d40)
#3 0x7f92174a1cc9 gsignal
/build/buildd/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x7f92174a50d8 abort /build/buildd/eglibc-2.19/stdlib/abort.c:91:0
#5 0x7f921749ab86 __assert_fail_base
/build/buildd/eglibc-2.19/assert/assert.c:92:0
#6 0x7f921749ac32 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc32)
#7 0x7f921845a606 (gcc/bin/../lib/libclang.so.3.7+0x8c4606)
#8 0x7f921851f134 clang::ParseAST(clang::Sema&, bool, bool)
(gcc/bin/../lib/libclang.so.3.7+0x989134)
#9 0x7f9217f895e6 clang::FrontendAction::Execute()
(gcc/bin/../lib/libclang.so.3.7+0x3f35e6)
#10 0x7f9217f59297 clang::ASTUnit::Parse(std::unique_ptr<llvm::MemoryBuffer,
std::default_delete<llvm::MemoryBuffer> >)
(gcc/bin/../lib/libclang.so.3.7+0x3c3297)
#11 0x7f9217f5b07b clang::ASTUnit::LoadFromCompilerInvocation(bool)
(gcc/bin/../lib/libclang.so.3.7+0x3c507b)
#12 0x7f9217f5e3ce clang::ASTUnit::LoadFromCommandLine(char const**, char
const**, llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>, llvm::StringRef,
bool, bool, llvm::ArrayRef<std::pair<std::string, llvm::MemoryBuffer*> >, bool,
bool, clang::TranslationUnitKind, bool, bool, bool, bool, bool, bool,
std::unique_ptr<clang::ASTUnit, std::default_delete<clang::ASTUnit> >*)
(gcc/bin/../lib/libclang.so.3.7+0x3c83ce)
#13 0x7f9217d108dc clang_parseTranslationUnit_Impl
(gcc/bin/../lib/libclang.so.3.7+0x17a8dc)
#14 0x7f9218455c3d
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(gcc/bin/../lib/libclang.so.3.7+0x8bfc3d)
#15 0x7f9218455cc4 RunSafelyOnThread_Dispatch(void*)
(gcc/bin/../lib/libclang.so.3.7+0x8bfcc4)
#16 0x7f9218455d43
llvm::CrashRecoveryContext::RunSafelyOnThread(llvm::function_ref<void ()>,
unsigned int) (gcc/bin/../lib/libclang.so.3.7+0x8bfd43)
#17 0x7f9217d090c7 clang::RunSafely(llvm::CrashRecoveryContext&, void
(*)(void*), void*, unsigned int) (gcc/bin/../lib/libclang.so.3.7+0x1730c7)
#18 0x7f9217d20d83 clang_parseTranslationUnit2
(gcc/bin/../lib/libclang.so.3.7+0x18ad83)
#19 0x410900 perform_test_load_source (gcc/bin/c-index-test+0x410900)
#20 0x4158e0 cindextest_main (gcc/bin/c-index-test+0x4158e0)
#21 0x41693f thread_runner (gcc/bin/c-index-test+0x41693f)
#22 0x406abc main (gcc/bin/c-index-test+0x406abc)
#23 0x7f921748cec5 __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:321:0
#24 0x406aeb _start (gcc/bin/c-index-test+0x406aeb)
Error: Aborted (core dumped)</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>