[Bug c++/11223] dynamic_cast<> in shared library fails with SegFault when called from JNI
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Sun Jul 20 21:12:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11223
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-20 21:12 -------
(The problem you having with gcc, Sun C++, and VC++ is most likely you are not
following the ISO C++ standard and you compile with VC++ which has some problems
with ISO C++ code).
The problem is more compucated than you think it is. The problem is what do you do if
you have two classes with the same name that you load from two different shared
libraries. Also the problem might be that java is loading the shared library wrong which
means that java is not using RTLD_GLOBAL.
Can you try using -Wl,-E as refered in bug 4993?
More information about the Gcc-bugs
mailing list