<div dir="ltr">Hi, <br>I am trying to parallize the lli interpreter (code: <a href="http://pastebin.com/6iuHNH3Q">http://pastebin.com/6iuHNH3Q</a>). I am using ubuntu 12.04 with llvm<br>version 3.1. Each thread uses a seperate LLVMContext, however the<br>
interpreter continues to crash.<br><br>$ clang -S -emit-llvm test.c && parallel_lli test.s<br>Error msg: ..../include/llvm/Support/Mutex.h:116:<br>bool llvm::sys::SmartMutex<true>::release(): Assertion `((recursive &&<br>
acquired) || (acquired == 1)) && "Lock not acquired before release!"' failed."")))<br><br>What am I doing wrong?<br><br>Thank you.<br><br>Diff to original tools/lli/lli.cpp and test.c (simple hello world)  attached.<br>
<br></div>