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.
#
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.
#
- duplicates
-
JDK-4502373 client VM doesn't throw expected java.lang.StackOverflowError on windows_XP
- Closed