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

println() while catching StackOverflowError causes hotspot VM crash

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description



      Name: icC57033 Date: 07/16/99



      HotSpot VM for win32 1.0fcs, 1.0.1 build c, 1.3beta build j,
      HotSpot VM for sparc-solaris 1.0.1 build a fail to execute next test case:

      //-------------------------- test.java -------------------------
      import java.io.*;

      class test {
      public static void main( String argv[] ) {
      System.exit(run(argv, System.out));
      }
          
      public static int run(String argv[], PrintStream out) {
      for( int i=0; i<2000 ; i++ ) {
      try {
      new test().x(out, i);
      } catch( Throwable e ) {
      out.println(e);
      }
      }
      return 0;
      }

      public int x(PrintStream out, int i) throws Throwable {
      try {
      x(out, i);
      } catch( Throwable e ) {
      out.println("x: " + e);
      }
      return 0;
      }
      }
      //-------------------- end of test.java -------------------------

      HotSpot VM for sparc-solaris 1.0.1 build a in all modes (-Xmixed, -Xcomp, -Xint)
      terminates with next message:
      "x: java.lang.StackOverflowError
      An irrecoverable stack overflow has occurred.
      #
      # HotSpot Virtual Machine Error, Unexpected Signal 11
      #
      # Error ID: 4F533F534F4C415249530E4350500BCF 01
      #"

      HotSpot VM for win32 1.3beta build j in -Xmixed or -Xcomp modes
      terminates with next message:
      "#
      # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
      #
      # Error ID: 4F533F57494E13120E43505002AD
      #

      abnormal program termination"

      HotSpot VM for win32 1.0fcs in -Xcomp and -Xint modes
      terminates with next message:
      "[1] + Done(139) ?
        266 Segmentation violation d:/jdk1.2.1A/bin/java"

      All other terminates with non zero status.
      It seems that Hotspot VM fails to execute any method after
      catching StackOverflowError.

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                smitrovisunw Srdjan Mitrovic (Inactive)
                Reporter:
                ichebykisunw Igor Chebykin (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: