[LLVMdev] Strange LLVM Crash
Duncan Sands
baldrick at free.fr
Sat Mar 14 02:29:38 PDT 2009
Hi Nyx,
> I'm implementing a JIT and getting some strange crashes. I'm unsure exactly
> what's causing them, but it seems to occur when I call the getReturnType()
> method on some LLVM function objects. More precisely, I'm registering some
> native C++ functions as LLVM functions through the addGlobalMapping method
> of an execution engine object. I then keep a pointer to those LLVM function
> objects, which I use later on to create call instructions to those native
> C++ functions.
sounds like memory corruption to me. Try running under valgrind.
Ciao,
Duncan.
More information about the llvm-dev
mailing list