This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11223] dynamic_cast<> in shared library fails with SegFault when called from JNI
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jul 2003 21:12:29 -0000
- Subject: [Bug c++/11223] dynamic_cast<> in shared library fails with SegFault when called from JNI
- References: <20030617154510.11223.mehmet.ozgul@telenity.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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?