This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: Segfault in org::w3c::dom::Node::class


Khiraly writes:
 > 2005-10-06, cs keltezéssel 08:44-kor David Daney ezt írta:
 > > SIGSEGV is usually a "normal" occurrence in the gcj runtime.  On most 
 > > platforms it is converted into a NullPointerException and then handled 
 > > by the exception handling framework.
 > > 
 > > You should try to determine if this is just a normal instance of 
 > > NullPointerException or if something went wrong (i.e. is the faulting 
 > > address close to 0 which is a normal NPE).  You program is aborting 
 > > which could indicate a problem encountered by the exception processing 
 > > code in libgcj.  This type of problem is exceptionally fun to debug (no 
 > > pun intended).
 > > 
 > > David Daney.
 > > 
 > 
 > Hi!
 > 
 > I have written a small test program to demonstrate the problem. 
 > 
 > Now Im quite sure that this is a bug with gcj and not with my program.
 > 
 > I can compile with javac, but segfault with gcj.
 > 
 > khiraly@elite:~/saxsux$ javac SaxSux.java
 > khiraly@elite:~/saxsux$ java SaxSux config.xml
 > Teszt
 > true
 > khiraly@elite:~/saxsux$ gcj-4.0 --main=SaxSux SaxSux.java
 > khiraly@elite:~/saxsux$ ./a.out config.xml
 > Aborted
 > khiraly@elite:~/saxsux$
 > 
 > 
 > Here is the two file to demonstrate the problem:
 > http://khiraly.4242.hu/tmp/saxsux/SaxSux.java
 > http://khiraly.4242.hu/tmp/saxsux/config.xml
 > 
 > Can somebody verify this problem please?

Yes.  It's some sort of problem with interface dispatch when calling
from non-BC code.  I'm working on it, and I'll have an answer later
today.

Andrew.


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