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