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: 4366625
Votes 0
Synopsis multiple stack overflow causes HS crash
Category hotspot:runtime_system
Reported Against merlin
Release Fixed
State 11-Closed, duplicate of 4298656, bug
Priority: 4-Low
Related Bugs 4298656
Submit Date 29-AUG-2000
Description





Both latest J2SDK 1.3-b27 (sparc) and JDK 1.4-b29 (both sparc & win32) 
crash under the folowing test:

    import java.io.*;
    public class stack003 {
        public static void main(String[] args) {
            int exitCode = run(args,System.out);
            System.exit(exitCode + 95);
        }
        public static int run (String args[], PrintStream out) {
            int depth;
            for (depth=1; ; depth++)
                try {
                    recurse(depth);
                } catch (StackOverflowError soe) {
                    break;
                };
            out.println("Max. depth: " + depth);
            for (int i=0; i<100; i++)
                try {
                    recurse(2 * depth);
                    out.println("?");
                } catch (StackOverflowError soe) {
                    // OK.
                };
            return 0;
        }
        static void recurse (int depth) {
            if (depth > 0)
                recurse(depth - 1);
        }
    }

On win32, java.exe crashes with exit code=128.

On SPARC, java dumps core, and diagnostics like following is displayed:
    
    >>>> java -showversion stack003
    java version "1.4.0beta"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b29)
    Java HotSpot(TM) Core VM (build 1.3-internal, interpreted mode)

    Max. depth: 3785
    An irrecoverable stack overflow has occurred.
    #
    # HotSpot Virtual Machine Error, Unexpected Signal 11
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    #
    # Error ID: 4F533F534F4C415249530E4350500789 01
    #
    # Problematic Thread: prio=5 tid=0x278d0 nid=0x1 runnable 
    #
    Abort (core dumped)

FYI, such ErrorID decodes like: "os_solaris.cpp, 1929"

======================================================================
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang