Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4261220

Segmentation Fault instead of StackOverflowError

XMLWordPrintable

    • sparc
    • solaris_7



      Name: dkC59003 Date: 08/10/99



      The following program causes Segmentation Fault being started on
      JDK1.3M (HotSpot). The same program works fine with "-classic"
      key.

      -------------------------- output --------------------------

      novo73% java -classic -version
      java version "1.3beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-M)
      Classic VM (build 1.3beta-M, green threads, nojit)
      novo73% java -classic test
      java.lang.StackOverflowError

      novo73% java -version
      java version "1.3beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-M)
      HotSpot Core VM (build 1.3beta-b-release, 1.3beta-b-release, interpreted mode, release build b)
      novo73% java test
      Segmentation Fault - core dumped

      ------------------------- test.java ------------------------

      public class test {

        static int Runner() {
      int i = Runner();
      return i;
        }

        public static void main(String argv[]) {
      try {
      Runner();
      } catch(Throwable e) {
      System.out.println(e);
      }
        }
      }

      ======================================================================

      ======================================================================

      Name: dkC59003 Date: 08/10/99



      Affected JCK tests are:
      vm/concepts/exceptions/exceptions031/exceptions03101/exceptions03101.html
      vm/concepts/exceptions/exceptions031/exceptions03102/exceptions03102.html

      ======================================================================

            duke J. Duke
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: