[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()

Tianyin Xu tixu at cs.ucsd.edu
Tue Aug 12 00:28:40 PDT 2014


Hi all,

I find all my passes are all broken with LLVM 3.4. Then I tried out the
LLVMHello.so specified in the LLVM doc,
http://llvm.org/docs/WritingAnLLVMPass.html
and it also crashes.

It seems all the functions in the pass do work, but LLVM crashes in the
doFinalization() step.

Does anyone know this problem?

Thanks!
Tianyin

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

#opt -load ../../../Debug+Asserts/lib/LLVMHello.so -hello -time-passes <
bcfiles/hello.bc
...
(PRINT ALL THE FUNCTIONS, EVERYTHING IS FINE.)
...
wrong initalizer for intrinsic global variable
[0 x i8*] zeroinitializer
Broken module found, compilation aborted!
0  opt             0x00000000019ac447 llvm::sys::PrintStackTrace(_IO_FILE*)
+ 38
1  opt             0x00000000019ac6ce
2  opt             0x00000000019ac112
3  libpthread.so.0 0x00007feee0c77cb0
4  libc.so.6       0x00007feedfca2425 gsignal + 53
5  libc.so.6       0x00007feedfca5b8b abort + 379
6  opt             0x0000000001953173
7  opt             0x0000000001953097
8  opt             0x0000000001928676
llvm::FPPassManager::doFinalization(llvm::Module&) + 88
9  opt             0x0000000001928a8a
10 opt             0x0000000001928ef0
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 254
11 opt             0x0000000001929103
llvm::legacy::PassManager::run(llvm::Module&) + 39
12 opt             0x00000000008f88cd main + 5778
13 libc.so.6       0x00007feedfc8d76d __libc_start_main + 237
14 opt             0x00000000008ea589
Stack dump:
0. Program arguments: opt -load ../../../Debug+Asserts/lib/LLVMHello.so
-hello -time-passes
Aborted (core dumped)

-- 
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140812/5dd04b58/attachment.html>


More information about the llvm-dev mailing list