[LLVMbugs] [Bug 8983] New: segfault in Combine redundant instructions pass
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 15 15:01:11 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=8983
Summary: segfault in Combine redundant instructions pass
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: marc.glisse at normalesup.org
CC: llvmbugs at cs.uiuc.edu
struct basic_ios {
char widen ( char __c ) const ;
} ;
struct ostream : virtual basic_ios {
} ;
void endl ( ostream & __os ) {
__os . widen ( '\n' ) ;
}
void f ( ) {
ostream * m_os ;
endl ( * m_os ) ;
m_os = 0 ;
}
$ clang++ -O2 -c b.cc
0 clang 0x000000000175402f
1 clang 0x0000000001756292
2 libpthread.so.0 0x00007f8758dcff60
3 clang 0x000000000078b908 llvm::Value::getType() const + 8
4 clang 0x0000000001565a5b
5 clang 0x000000000156684e llvm::ConstantFoldInstOperands(unsigned
int, llvm::Type const*, llvm::Constant* const*, unsigned int, llvm::TargetData
const*) + 1854
6 clang 0x0000000001568102
llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::TargetData const*) +
290
7 clang 0x00000000014b50a4
8 clang 0x00000000014b5dd7
9 clang 0x00000000016a4acd
llvm::FPPassManager::runOnFunction(llvm::Function&) + 557
10 clang 0x00000000015524ad
11 clang 0x00000000016a4657
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
12 clang 0x00000000016a47d7 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
13 clang 0x000000000077ec29
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 2281
14 clang 0x000000000077b54b
15 clang 0x000000000089b75d clang::ParseAST(clang::Sema&, bool) + 301
16 clang 0x000000000077c414 clang::CodeGenAction::ExecuteAction() +
68
17 clang 0x0000000000673205
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357
18 clang 0x00000000006511dc
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1276
19 clang 0x0000000000648cb5 cc1_main(char const**, char const**, char
const*, void*) + 677
20 clang 0x00000000006501e5 main + 4549
21 libc.so.6 0x00007f87580cec4d __libc_start_main + 253
22 clang 0x00000000006473b9
Stack dump:
0. Program arguments: /tmp/clang/inst/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name b.cc
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -resource-dir
/tmp/clang/inst/bin/../lib/clang/2.9 -O2 -ferror-limit 19 -fmessage-length 158
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o b.o
-x c++ b.cc
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'b.cc'.
4. Running pass 'Combine redundant instructions' on function '@_Z1fv'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (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