Christian Plessl
2010-Jan-08 08:56 UTC
[LLVMdev] lli segfaults when using JIT in LLVM 2.6 on OS X 10.6/x86
Hi all
I'm currently porting some code to LLVM 2.6 and I stumbled over a weird
problem with using JIT compilation in lli on Mac OS X 10.6.2. When running lli
without any specific command line options it crashes with a segfault. When I
specify "-force-interpreter" or "-march=x86-64", everything
works as expected.
I can reproduce the problem as follows:
// hello.c
int main(int argc, char *argv[]){
return 42;
}
llvm-gcc -emit-llvm -c hello.c -o hello.bc
lli hello.bc
=> segfaults
lli -march=x86-64 hello.bc
=> works
lli -force-interpreter hello.bc
=> works
I'm running Mac OS X 10.6.2 on a MacBook Pro (Intel Core2 Duo). I have built
LLVM from the released sources of version 2.6 using the CMake build system with
the following configuration:
cmake .. -DCMAKE_BUILD_TYPE:STRING=Debug
-DCMAKE_INSTALL_PREFIX:PATH=$HOME/opt/llvm
Does anybody have an idea what causes this problem and how to solve it?
Best regards,
Christian
Possibly Parallel Threads
- lli cannot execute the bc file for RISCV, Unable to find target for this triple
- [LLVMdev] Regression testing on MSYS2 host with mingw-w64
- [LLVMdev] Regression testing on MSYS2 host with mingw-w64
- EH failures in MCJIT
- Trying to create a pure LLVM toolchain on musl based distribution
