[Mesa-dev] [Bug 37637] unreal tournament crashes with mesa 7.11-dev

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 27 14:21:44 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=37637

--- Comment #6 from José Fonseca <jfonseca at vmware.com> 2011-05-27 14:21:44 PDT ---
(In reply to comment #5)
> Now I had some time to investigate this.
> 
> It seems to me that llvm initializes some iostream thing, which calls
> dynamic_cast<>() (at libstdc++-v3/include/bits/locale_classes.tcc:97), but the
> unreal engine has its own implementation of that, or something with the same
> name (in Core.so, unfortunately this is not included in the public unreal
> sources), which takes precedence over libc++, and the world ends.

Hmm..

> Maybe it
> wasn't a very good idea to use C++ in a GL implementation.

There's nothing C++ specific about this.  This is a symbol collision which can
and sometimes happen with C too.

The problem here is that we're linking to LLVM/libstdc++ as a shared library,
and polluting the symbol namespace. The right fix is to link to LLVM/libstdc++
as a static library and/or ensure that all its symbols are not visible outside
of the DRI driver.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list