[llvm-dev] SegFault creating a ExecutionEngine

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Sat Jun 11 07:54:28 PDT 2016


On 11 June 2016 at 02:29, edA-qa mort-ora-y via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> #4  0x00007ffff1527b7b in llvm::Module::~Module (this=0x68c200,
> __in_chrg=<optimised out>) at /opt/llvm/lib/IR/Module.cpp:57

The EngineBuilder shouldn't be trying to destroy the module. Looking
at EngineBuilder::create's control flow, the most plausible problem is
that the TargetMachine is null, so EngineBuilder::selectTarget has
gone wrong.

If so, maybe the Module's triple is wrong or your LLVM is compiled
strangely so no targets can be found? Either way, it's probably time
to pull out the debugger.

Tim.


More information about the llvm-dev mailing list