<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-02-17 15:59 GMT+01:00 Tom Stellard <span dir="ltr"><<a href="mailto:tom@stellard.net" target="_blank">tom@stellard.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Mon, Feb 16, 2015 at 10:38:52PM +0100, Daniel Albuschat wrote:<br>
</span><span class="">> Hello there,<br>
><br>
> tl;dr:<br>
> Is it a known behaviour that using llvm-3.4 and llvm-3.6 at the same time<br>
> in the same process (while llvm-3.6 is used from a linked shared library<br>
> and llvm-3.4 is dlopen'ed - with a strange detail: Especially if -rdynamic<br>
> is used when linking the program).<br>
> If so, is there a workaround?<br>
> If not, can it be fixed in llvm-3.6?<br><br>
</span>The NVIDIA proprietary driver does not use mesa at all.  Also based on<br>
your backtrace, you are using llvmpipe and not nouveau.<br></blockquote><div><br></div><div>Yeah, the backtrace was created from within VirtualBox. That driver, and the nouveau driver, cause the same issue. The VMWare driver, too.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I'm not a linking expert, but I have seen and fixed a few of these issues<br>
with Mesa.  In most cases the fix is to make sure that the llvm symbols<br>
in the mesa driver and also the llvm symbols in your application aren't<br>
being exported as global symbols.</blockquote><div><br></div><div>How do I have control about how llvm symbols are being exported?</div><div><br></div><div>nm reports no exported symbols matching llvm:</div><div><br></div><div><div>daniel@ubuntu32-dev:~/projects/llvmcrash$ nm libcrashme.so | grep llvm</div><div>         U _ZN4llvm11LLVMContextC1Ev</div><div>         U _ZN4llvm11LLVMContextD1Ev</div></div><div><br></div><div>Thanks!</div><div>Daniel</div><div><br></div></div></div></div>