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

exception stack overflow Error ID: 4F533F57494E13120E43505002D4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • hotspot
    • beta
    • x86
    • windows_95, windows_98, windows_nt, windows_2000
    • Verified

      Name: yyT116575 Date: 10/09/2000


      /*
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


      ERROR:
      #
      # HotSpot Virtual Machine Error, EXCEPTION_STACK_OVERFLOW
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 4F533F57494E13120E43505002D4
      #

      abnormal program termination

      Source Code:

      */
      public class Zeeslag {
          static int gridArray[][] = new int[10][10];
          static int group = 0;

          public static void main(String[] args)
          {
              for (int i = 0; i < 10; i++)
              {
                  for (int j = 0; j < 10; j++)
                  {
                      gridArray[i][j] = 0;
                  }
              }

              // Groep 1
              gridArray[3][1] = 1;
              gridArray[4][1] = 1;

              // Groep 2
              gridArray[9][0] = 1;
              gridArray[9][1] = 1;

              // Groep 3
              gridArray[4][3] = 1;

              // Groep 4
              gridArray[3][4] = 1;

              // Groep 5
              gridArray[4][6] = 1;
              gridArray[5][6] = 1;

              // Groep 6
              gridArray[7][3] = 1;
              gridArray[7][4] = 1;
              gridArray[7][5] = 1;
              gridArray[8][5] = 1;

              System.out.println(doorZoek(7, 5));
              System.out.println("Er zijn " + group + " groepen");
          }

          public static int doorZoek(int i, int j)
          {
              int size;
              int temp[][] = new int[10][10];
              for (int a = 0; a < 10; a++)
                  for (int b = 0; b < 10; b++)
                      temp[a][b] = gridArray[a][b];

              if (i < 0 || i > 9 || j < 0 || j > 9)
                  return 0;

              else {
                  if (temp[i][j] == 0)
                  {
                      size = 0;
                      // group+=1;
                  } else {
                      temp[i][j] = 0;
                      size = 1 + doorZoek(i - 1, j) + doorZoek(i + 1, j) + doorZoek(i, j - 1) + doorZoek(i, j + 1);
                  }
              }

              return size;
          }
      }
      (Review ID: 109911)
      ======================================================================

      Name: yyT116575 Date: 11/02/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      Start the following program:
      public class StackOverflow {
              public static void main(String[] argv) {
                      StackOverflow so = new StackOverflow();
                      so.run(0);
              }
              private void run(int i) {
                      System.out.println("depth: "+i);
                      run(i+1);
              }
      }

      JVM crashes with this output:
      #
      # HotSpot Virtual Machine Error, EXCEPTION_STACK_OVERFLOW
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 4F533F57494E13120E43505002D4
      #
      (Review ID: 111731)
      ======================================================================

            jcoomes John Coomes (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: