[LLVMdev] Segfault when using llvm-3.6 and OpenGL at the same time on Linux (with mesa, which uses llvm-3.4)

Joerg Sonnenberger joerg at britannica.bec.de
Mon Feb 16 14:20:56 PST 2015


On Mon, Feb 16, 2015 at 10:38:52PM +0100, Daniel Albuschat wrote:
> tl;dr:
> Is it a known behaviour that using llvm-3.4 and llvm-3.6 at the same time
> in the same process (while llvm-3.6 is used from a linked shared library
> and llvm-3.4 is dlopen'ed - with a strange detail: Especially if -rdynamic
> is used when linking the program).

Are you using builds with or without exceptions? There is a known
"feature" in libstdc++ that exceptions are unified by class name, not by
object. That breaks dlopen even if all users have RTLD_LOCAL.

The second question would be whether any of the DSOs involved for
LLVM/Clang have different sonames for the different versions.

Joerg



More information about the llvm-dev mailing list