This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: sigsegv?
- From: Bryce McKinlay <bryce at mckinlay dot net dot nz>
- To: tromey at redhat dot com
- Cc: GCJ mailing list <java at gcc dot gnu dot org>
- Date: Mon, 10 Nov 2003 13:57:05 +1300
- Subject: Re: sigsegv?
- References: <87ad75chf9.fsf@fleche.redhat.com>
On Nov 10, 2003, at 11:20 AM, Tom Tromey wrote:
Has anybody else seen SEGV handling stop working?
I got a crash from one today, which I find very surprising...
I'm using x86 RHL 9.
Seems to work for me (on RHL 9 also):
public class Null
{
Object a;
public static void main(String args[])
{
new Null().meth();
}
void meth()
{
System.out.println (a.hashCode());
}
}
$ gcj Null.java --main=Null -g -O2
$ ./a.out
Exception in thread "main" java.lang.NullPointerException
at Null.meth (Null.java:12)
at Null.main (Null.java:7)
Regards,
Bryce.