This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11223] dynamic_cast<> in shared library fails with SegFault when called from JNI


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]