http://llvm.org/bugs/show_bug.cgi?id=8600

           Summary: Crash on ExecutionEngine::addGlobalMapping()
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


On MSVC 2008 I get a crash with while calling ExecutionEngine::addGlobalMapping
(as seen below), in 2.7, 2.8 and trunk.
It throws an unhandled exception (an access violation) seemingly at
MutexImpl::acquire().

Reduced test case:

void foo() { }
int main() {
  ExecutionEngine *jitengine =
EngineBuilder(jitmodule).setEngineKind(EngineKind::JIT).create();
  Function *func = Function::Create(TypeBuilder<void(),
false>::get(getGlobalContext()), GlobalValue::ExternalLinkage, "foo");
  jitengine->addGlobalMapping(func, (void*)foo);
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to