[LLVMbugs] [Bug 23400] New: Index/crash-recovery-modules.m test failure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 3 00:55:29 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23400

            Bug ID: 23400
           Summary: Index/crash-recovery-modules.m test failure
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tzafrir11 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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)

-- 
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/20150503/f73501c3/attachment.html>


More information about the llvm-bugs mailing list