This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/21326] seg fault in _Jv_Linker
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2005 18:29:15 -0000
- Subject: [Bug libgcj/21326] seg fault in _Jv_Linker
- References: <20050502031937.21326.rspencer@x10sys.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tromey at gcc dot gnu dot org 2005-05-03 18:29 -------
I didn't download the source to try this out.
But based on the stack trace, I think the problem is probably that
a class compiled with the C++ ABI is referring to an org.xml class.
This doesn't work, as these classes are compiled with the BC ABI
(i.e., -findirect-dispatch).
This is unfortunate, but necessary to support java.endorsed.dirs.
The restriction that a C++ ABI class can't directly refer to a BC ABI class
is unlikely to be lifted.
The fix is to compile your program with -findirect-dispatch.
(But note that at the moment this only works when compiling from .class)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21326