[LLVMbugs] [Bug 9991] New: Compile segfaults in valid code with -O3
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 23 10:21:12 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9991
Summary: Compile segfaults in valid code with -O3
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6631)
--> (http://llvm.org/bugs/attachment.cgi?id=6631)
failing testcase
The attached code compiles fine with no optimisation, -O and -O2, but causes a
compiler segfault at -O3. This code comes from a test in boost::date_time.
clang: /home/caj/clang/llvm-debug/include/llvm/Analysis/LoopInfo.h:458: void
llvm::LoopBase<N, M>::verifyLoop() const [with BlockT = llvm::BasicBlock, LoopT
= llvm::Loop]: Assertion `HasInsideLoopSuccs && "Loop block has no in-loop
successors!"' failed.
0 clang 0x0000000002612846
1 clang 0x0000000002612642
2 libpthread.so.0 0x00007fd40c355c60
3 libc.so.6 0x00007fd40b640d05 gsignal + 53
4 libc.so.6 0x00007fd40b644ab6 abort + 390
5 libc.so.6 0x00007fd40b6397c5 __assert_fail + 245
6 clang 0x00000000023e06fc llvm::LoopBase<llvm::BasicBlock,
llvm::Loop>::verifyLoop() const + 1170
7 clang 0x00000000023e3eb9
llvm::LPPassManager::runOnFunction(llvm::Function&) + 1441
8 clang 0x000000000253cb71
llvm::FPPassManager::runOnFunction(llvm::Function&) + 445
9 clang 0x000000000239cbd9
10 clang 0x000000000239d9e3
11 clang 0x000000000239dcc6
12 clang 0x000000000253d0e0
llvm::MPPassManager::runOnModule(llvm::Module&) + 456
13 clang 0x000000000253d5d2 llvm::PassManagerImpl::run(llvm::Module&)
+ 130
14 clang 0x000000000253d9d9 llvm::PassManager::run(llvm::Module&) +
39
15 clang 0x00000000012fcafb
16 clang 0x00000000012fcc01
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 123
17 clang 0x00000000012fa068
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 460
18 clang 0x00000000014575ea clang::ParseAST(clang::Sema&, bool) + 670
19 clang 0x00000000011c6537 clang::ASTFrontendAction::ExecuteAction()
+ 263
20 clang 0x00000000012f94db clang::CodeGenAction::ExecuteAction() +
927
21 clang 0x00000000011c6193 clang::FrontendAction::Execute() + 325
22 clang 0x00000000011ad03b
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 741
23 clang 0x0000000001155303
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 909
24 clang 0x000000000114679a cc1_main(char const**, char const**, char
const*, void*) + 952
25 clang 0x0000000001150a63 main + 496
26 libc.so.6 0x00007fd40b62beff __libc_start_main + 255
27 clang 0x0000000001145e69
Stack dump:
0. Program arguments: /llvmdebug/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name t.cc
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21.51.20110409
-momit-leaf-frame-pointer -resource-dir /llvmdebug/bin/../lib/clang/3.0 -O3
-fdeprecated-macro -ferror-limit 19 -fmessage-length 126 -fcxx-exceptions
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-PV5AIg.o -x c++ t.cc
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 't.cc'.
4. Running pass 'Loop Pass Manager' on function
'@_Z8get_dateI5dateXI4date18gregorian_calendar13date_durationEEiT_'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list