-
Bug
-
Resolution: Fixed
-
P2
-
1.4.1
-
rc
-
itanium
-
linux_redhat_7.2
-
Verified
Throws VM error - when trying to overflow the stack & expecting stack overflow error on Redhat7.2(64) Itanium machine .
The same test works properly on Redhat7.2(32) .
To reproduce , run the test program below with Hopper b12 on Redhat7.2(64)
Test program
-------------
public class StackError{
int recursiveDepth =15000;
public static void main(String[] args) throws Exception {
StackError se = new StackError();
se.recursive(1);
}
void recursive(int i) {
try{
i = i +1;
if (i <recursiveDepth) {
recursive(i);
}
} catch(StackOverflowError sofle) {
System.out.println("Stack overflow error");
sofle.printStackTrace();
}
}
}
Output
-------
[sa122568@pinetrees ~]$ uname -a
Linux pinetrees.SFBay.Sun.COM 2.4.9-31 #1 Tue Feb 26 05:52:44 EST 2002 ia64 unknown
[sa122568@pinetrees ~]$ java -version
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b12)
Java HotSpot(TM) 64-Bit Core VM (build 1.4.1-beta-b12, interpreted mode)
[sa122568@pinetrees ~]$ javac StackError.java
[sa122568@pinetrees ~]$ java StackError
Unexpected Signal : 11 occurred at PC=0x20000000005ABF00
Function=fill_in_stack_trace__19java_lang_ThrowableG6HandleP6Thread+0xC50
Library=/.automount/cady.sfbay/root/export/dtf/unified/jdk/linux-ia64/jre/lib/ia64/server/libjvm.so
Current Java thread:
****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x0x20000000005abf00
SIGNAL = 11
FUNCTION NAME = fill_in_stack_trace__19java_lang_ThrowableG6HandleP6Thread
OFFSET = 0xC50
LIBRARY NAME = /.automount/cady.sfbay/root/export/dtf/unified/jdk/linux-ia64/jre/lib/ia64/server/libjvm.so
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
Abort (core dumped)
[sa122568@pinetrees ~]$
------------------------------
Verified in Hopper b15
###@###.### 2002-06-25
------------------------------
The same test works properly on Redhat7.2(32) .
To reproduce , run the test program below with Hopper b12 on Redhat7.2(64)
Test program
-------------
public class StackError{
int recursiveDepth =15000;
public static void main(String[] args) throws Exception {
StackError se = new StackError();
se.recursive(1);
}
void recursive(int i) {
try{
i = i +1;
if (i <recursiveDepth) {
recursive(i);
}
} catch(StackOverflowError sofle) {
System.out.println("Stack overflow error");
sofle.printStackTrace();
}
}
}
Output
-------
[sa122568@pinetrees ~]$ uname -a
Linux pinetrees.SFBay.Sun.COM 2.4.9-31 #1 Tue Feb 26 05:52:44 EST 2002 ia64 unknown
[sa122568@pinetrees ~]$ java -version
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b12)
Java HotSpot(TM) 64-Bit Core VM (build 1.4.1-beta-b12, interpreted mode)
[sa122568@pinetrees ~]$ javac StackError.java
[sa122568@pinetrees ~]$ java StackError
Unexpected Signal : 11 occurred at PC=0x20000000005ABF00
Function=fill_in_stack_trace__19java_lang_ThrowableG6HandleP6Thread+0xC50
Library=/.automount/cady.sfbay/root/export/dtf/unified/jdk/linux-ia64/jre/lib/ia64/server/libjvm.so
Current Java thread:
****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x0x20000000005abf00
SIGNAL = 11
FUNCTION NAME = fill_in_stack_trace__19java_lang_ThrowableG6HandleP6Thread
OFFSET = 0xC50
LIBRARY NAME = /.automount/cady.sfbay/root/export/dtf/unified/jdk/linux-ia64/jre/lib/ia64/server/libjvm.so
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
Abort (core dumped)
[sa122568@pinetrees ~]$
------------------------------
Verified in Hopper b15
###@###.### 2002-06-25
------------------------------
- duplicates
-
JDK-4695951 Linux-64 bit-Infinite recursion causes jvm crash instead of StackOverflowError
-
- Closed
-
- relates to
-
JDK-4678358 LIN64: JCK1.4 lang/THRD/thrd041/thrd04101/thrd04101.html
-
- Closed
-