[LLVMdev] Segmentation Fault(Modifying BasicBlockPlacement.cpp)

Tanu Sharma tanusharma_04 at yahoo.com
Mon Feb 7 05:46:26 PST 2005


Hi, 

I have been trying to randomize blocks in a program and modified "BasicBlockPlacement.cpp" for the purpose but getting segmentation fault.I am not able to determine the problem.Can anyone please decrypt these error messages or suggest what might be the possible cause of failure?

-----------------------------------------------------------------------------------------------------

opt((anonymous namespace)::PrintStackTrace()+0x18)[0x8691968]
opt((anonymous namespace)::SignalHandler(int)+0xd8)[0x8691bc8]
/lib/tls/libc.so.6[0x688a48]
opt(llvm::BasicBlock::getNext()+0x6)[0x83d36d0]
opt(llvm::SymbolTableListTraits<llvm::BasicBlock, llvm::Function, llvm::Function, llvm::ilist_traits<llvm::BasicBlock> >::getNext(llvm::BasicBlock*)+0x11)[0x83d36c5]
opt(llvm::ilist_iterator<llvm::BasicBlock>::operator++()+0x17)[0x83d011d]
opt(llvm::ilist_iterator<llvm::BasicBlock>::operator++(int)+0x1c)[0x849c64e]
/home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so((anonymous namespace)::Hello::PlaceBlocks(llvm::BasicBlock*)+0x196)[0x115616]
/home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so((anonymous namespace)::Hello::runOnFunction(llvm::Function&)+0x68)[0x115450]
opt(llvm::PassManagerTraits<llvm::Function>::runPass(llvm::FunctionPass*, llvm::Function*)+0x1b)[0x8645e0b]
opt(llvm::PassManagerT<llvm::Function>::runOnUnit(llvm::Function*)+0x5c5)[0x8645739]
opt(llvm::PassManagerTraits<llvm::Function>::runOnFunction(llvm::Function&)+0x1b)[0x86463af]
opt(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa4)[0x85ef606]
opt(llvm::PassManagerTraits<llvm::Module>::runPass(llvm::ModulePass*, llvm::Module*)+0x1b)[0x8640f7b]
opt(llvm::PassManagerT<llvm::Module>::runOnUnit(llvm::Module*)+0x5c5)[0x863ff8b]
opt(llvm::PassManagerTraits<llvm::Module>::runOnModule(llvm::Module&)+0x1b)[0x8642f0d]
opt(llvm::PassManager::run(llvm::Module&)+0x1f)[0x85ee965]
opt(main+0x988)[0x83b225c]
/lib/tls/libc.so.6(__libc_start_main+0xe3)[0x675e33]
opt(__gxx_personality_v0+0x111)[0x83b1751]
Segmentation fault
------------------------------------------------------------------------------------------------------

Thanks

Tanu

 

		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050207/0cd45ec4/attachment.html>


More information about the llvm-dev mailing list