Segmentation Fault while running HelloWord Pass

Danna bib danna1364 at gmail.com
Sat Feb 15 13:06:14 PST 2014


Hi all,

I am new with LLVM and I am trying to build and test a pass based on
"Writing an LLVM Pass: http://llvm.org/docs/WritingAnLLVMPass.html". I did
as the same as tutorial and everything works till running the pass with
opt. When I run the pass with opt I got a segmentation fault. Could you
please tell how I can solve this error?



~/LLVM/build/lib/Transforms/Hello$ opt-3.0 -load
../../../Debug+Asserts/lib/Hello.so -hello < Hello.bc > /dev/null
Hello:
0  libLLVM-3.0.so.1 0x00007f875dda6fcf
1  libLLVM-3.0.so.1 0x00007f875dda7591
2  libpthread.so.0  0x00007f875cd30cb0
3  libLLVM-3.0.so.1 0x00007f875d8d4a6f
llvm::PMTopLevelManager::findAnalysisPass(void const*) + 159
4  libLLVM-3.0.so.1 0x00007f875d8d4bae
llvm::PMTopLevelManager::schedulePass(llvm::Pass*) + 190
5  libLLVM-3.0.so.1 0x00007f875d8d755e llvm::PassManager::add(llvm::Pass*)
+ 254
6  opt-3.0          0x000000000040dca6 main + 3158
7  libc.so.6        0x00007f875c67e76d __libc_start_main + 237
8  opt-3.0          0x000000000040e141
Stack dump:
0.    Program arguments: opt-3.0 -load ../../../Debug+Asserts/lib/Hello.so
-hello
Segmentation fault (core dumped)

//Thanks
Danna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140215/8bd94599/attachment.html>


More information about the llvm-commits mailing list