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

Segmentation Fault: An irrecoverable stack overflow has occurred

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • hotspot
    • None
    • generic
    • linux

      I hit segmentation fault on Linux when running the following Java program
      with Merlin b82+:

      public class simpletst
      {
         public static int f(int depth)
         {
           System.out.println("depth = "+depth);
           return f(depth+1)+1;
         }

         public static void main(String args[])
         {
            f(0);
         }
      }

      How to reproduce:

      > java simpletst
      ...
      depth = 53081
      depth = 53082
      An irrecoverable stack overflow has occurred.

      Unexpected Signal : 11 occurred at PC=0x402F1FD2
      Function=allocate_handle__14JNIHandleBlockP7oopDesc+0x6
      Library=/home/huanghui/jdk1.4/jre/lib/i386/client/libjvm.so

      Current Java thread:
              at java.io.FileOutputStream.writeBytes(Native Method)
              at java.io.FileOutputStream.write(FileOutputStream.java:260)
              at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72)
      ...
      # HotSpot Virtual Machine Error : 11
      # Error ID : 4F530E43505002BA
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-rc-b85 mixed mode)
      #
      # An error report file has been saved as hs_err_pid8123.log.
      # Please refer to the file for further information.
      #

            Unassigned Unassigned
            hhuangsunw Hui Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: