This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/32947] New: Segfault when invoking a Java method which uses DOM parser
- From: "2005 at kuarepoti-dju dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2007 16:21:38 -0000
- Subject: [Bug libgcj/32947] New: Segfault when invoking a Java method which uses DOM parser
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When invoking Java methods from C++ code through the CNI, everything works well
for simple method. However, those that contain calls to a DOM factory
instantiator fail. The reason might be that it tries to look for suitable Java
XML libraries and fails to do so (although the example works fine in pure
Java).
The offending line, reproducable about anywhere:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
The effect:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1241631024 (LWP 9280)]
0xb76a9502 in javax::xml::parsers::DocumentBuilderFactory::newInstance () from
/usr/lib/libgcj.so.70
The same happens on another system which has .so.71, and I couldn't test with
.so.80 yet (gcj 4.2 I presume).
--
Summary: Segfault when invoking a Java method which uses DOM
parser
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: 2005 at kuarepoti-dju dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32947