Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault with -sccp #1803

Closed
llvmbot opened this issue May 17, 2007 · 3 comments
Closed

segfault with -sccp #1803

llvmbot opened this issue May 17, 2007 · 3 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented May 17, 2007

Bugzilla Link 1431
Resolution FIXED
Resolved on Feb 22, 2010 12:53
Version unspecified
OS Linux
Attachments testcase .ll
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

$ opt -sccp tc.bc

opt((anonymous namespace)::PrintStackTrace()+0x1a)[0x8650486]
opt((anonymous namespace)::SignalHandler(int)+0x112)[0x865074c]
[0xffffe420]
opt(llvm::DominatorTree::DFSPass(llvm::BasicBlock*,
llvm::DominatorTreeBase::InfoRec&, unsigned int)+0xf5)[0x85b0fdf]
opt(llvm::DominatorTree::calculate(llvm::Function&)+0x108)[0x85b11c6]
opt(llvm::DominatorTree::runOnFunction(llvm::Function&)+0x46)[0x85b1692]
opt(llvm::FPPassManager::runOnFunction(llvm::Function&)+0x13a)[0x85eb2bc]
opt(llvm::FPPassManager::runOnModule(llvm::Module&)+0x6e)[0x85eb484]
opt(llvm::MPPassManager::runOnModule(llvm::Module&)+0x11d)[0x85eaf5d]
opt(llvm::PassManagerImpl::run(llvm::Module&)+0x6e)[0x85eb12a]
opt(llvm::PassManager::run(llvm::Module&)+0x1a)[0x85eb17c]
opt(main+0xa10)[0x8388296]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7cc0ebc]
opt(realloc+0x7d)[0x837a4c1]
Segmentation fault (core dumped)

@asl
Copy link
Collaborator

asl commented May 17, 2007

Valgrinding:

==15305== Access not within mapped region at address 0x0
==15305== at 0x836F795: llvm::TerminatorInst::getNumSuccessors() const
(InstrTypes.h:56)
==15305== by 0x8579393: llvm::DominatorTree::DFSPass(llvm::BasicBlock*,
llvm::DominatorTreeBase::InfoRec&, unsigned) (Dominators.cpp:106)
==15305== by 0x8579788: llvm::DominatorTree::calculate(llvm::Function&)
(Dominators.cpp:244)
==15305== by 0x857A0A3: llvm::DominatorTree::runOnFunction(llvm::Function&)
(Dominators.cpp:369)
==15305== by 0x85AE9C1: llvm::FPPassManager::runOnFunction(llvm::Function&)
(PassManager.cpp:1145)
==15305== by 0x85AEB71: llvm::FPPassManager::runOnModule(llvm::Module&)
(PassManager.cpp:1164)
==15305== by 0x85AECE1: llvm::MPPassManager::runOnModule(llvm::Module&)
(PassManager.cpp:1213)
==15305== by 0x85AF0CD: llvm::PassManagerImpl::run(llvm::Module&)
(PassManager.cpp:1286)
==15305== by 0x85AF239: llvm::PassManager::run(llvm::Module&)
(PassManager.cpp:1318)
==15305== by 0x8377A85: main (opt.cpp:366)

@asl
Copy link
Collaborator

asl commented May 17, 2007

Segfault is caused by first invoke.

@llvmbot
Copy link
Collaborator Author

llvmbot commented May 18, 2007

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

2 participants