[LLVMdev] Error Segmentation fault when running Hello pass tutorial

Mostafa M. Abbas eng_mostafa_abbas at yahoo.com
Mon Mar 3 02:20:22 PST 2014


When i try to test Hello pass tutorial, i found the following error:

 opt -load ./Debug+Asserts/lib/LLVMHello.so -hello < hello.bc > /dev/null
0  libLLVM-3.2.so.1 0x00007f834759b67f
1  libLLVM-3.2.so.1 0x00007f834759bae9
2  libpthread.so.0  0x00007f834664ebd0
3  libstdc++.so.6   0x00007f83463f7232
4  libstdc++.so.6   0x00007f83463f95d3 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) + 83
5  libLLVM-3.2.so.1 0x00007f834701939e llvm::createPrintFunctionPass(std::string const&, llvm::raw_ostream*, bool) + 94
6  libLLVM-3.2.so.1 0x00007f83470125fb llvm::PMTopLevelManager::schedulePass(llvm::Pass*) + 59
7  opt              0x000000000040d2ae main + 3102
8  libc.so.6        0x00007f8345f94ea5 __libc_start_main + 245
9  opt              0x000000000040dc61
Stack dump:
0.      Program arguments: opt -load ./Debug+Asserts/lib/LLVMHello.so -hello
Segmentation fault (core dumped)

What should can i do ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140303/7e096ecb/attachment.html>


More information about the llvm-dev mailing list