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: sigsegv?


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.



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