Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4377621
Votes 9
Synopsis exception stack overflow Error ID: 4F533F57494E13120E43505002D4
Category hotspot:runtime_system
Reported Against 1.3
Release Fixed 1.4(merlin-beta)
State 11-Closed, Verified, bug
Priority: 4-Low
Related Bugs 4298656 , 4427144
Submit Date 09-OCT-2000
Description


/*
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) 
======================================================================




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)
======================================================================
Posted Date : 2006-02-02 19:26:13.0
Work Around
N/A
Evaluation
  xxxxx@xxxxx   2001-01-08

Another stack overflow bug that will be addressed in Merlin.  See 4298656
for the true eval/suggested fix.
Posted Date : 2006-02-02 19:26:13.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang