-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0
-
03
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2050916 | 1.4.1 | Murali Earagolla | P2 | Resolved | Fixed | hopper |
JDK-2050915 | 1.4.0_01 | Murali Earagolla | P2 | Resolved | Fixed | 01 |
Name: ks84122 Date: 01/22/2002
Hotspot server mode crash:
Test case
---------
//
// java TestLoop
//
class TestLoop {
private int char_var;
private int long_var;
private int else_var;
private int do_var;
private int case_var;
private int int_var;
private boolean e;
public TestLoop() {
char_var = 4;
long_var = char_var * 4;
else_var = 0;
int_var = 8;
do_var = 0;
case_var = 0;
e = true;
}
private int crash_method() {
byte[] bytearray = new byte[20];
int var0 = 1;
do {
int var1 = 0;
for (int count = var0; count < long_var; count++) {
if (bytearray[count] == else_var) {
var1 = count;
break;
}
}
if (var1 == 0)
break;
var0 = var1 + 1;
int var2 = var1 % char_var + 1;
do {
if ((e || var2 != 1) && var2 <= char_var - 2) {
if (bytearray[var1 + 1] == case_var && bytearray[var1 + char_var] == do_var) {
int var3;
for (var3 = var2 + 2; var3 < char_var + 1; var3++) {
if (bytearray[var1 + var3 - var2] == int_var) {
break;
}
}
}
}
} while (false);
} while (var0 < long_var - (char_var * 2 + 1));
return -1;
}
public static void main(String[] args) {
TestLoop tl = new TestLoop();
for (int count = 0; count < 10005; count++) {
tl.crash_method();
}
}
}
hs_err log
----------
Unexpected Signal : 11 occurred at PC=0xfe28bee0
Function name=JVM_handle_solaris_signal
Library=/export/home2/jdk1.3.1_02/jre/lib/sparc/server/libjvm_g.so
Current Java thread:
Dynamic libraries:
0x10000 /opt/jdk1.3.1_02/bin/../bin/sparc/native_threads/java_g
0xff360000 /usr/lib/libthread.so.1
0xff3a0000 /usr/lib/libdl.so.1
0xff280000 /usr/lib/libc.so.1
0xff270000 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
0xfd800000 /export/home2/jdk1.3.1_02/jre/lib/sparc/server/libjvm_g.so
0xff210000 /usr/lib/libCrun.so.1
0xff1f0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff1c0000 /usr/lib/libm.so.1
0xff250000 /usr/lib/libw.so.1
0xff0d0000 /usr/lib/libmp.so.2
0xff0a0000 /export/home2/jdk1.3.1_02/jre/lib/sparc/native_threads/libhpi_g.so
0xff070000 /export/home2/jdk1.3.1_02/jre/lib/sparc/libverify_g.so
0xfe7b0000 /export/home2/jdk1.3.1_02/jre/lib/sparc/libjava_g.so
0xff020000 /export/home2/jdk1.3.1_02/jre/lib/sparc/libzip_g.so
0xfe720000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
Local Time = Tue Feb 22 04:56:09 2000
Elapsed Time = 7
#
# HotSpot Virtual Machine Error : 11
# Error ID : /export/d0/jdk131-update/hotspot/ws/solsparc/hotspot1.3.1fcs/src/share/vm/runtime/os.cpp, 708 [ Patched ]
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.3.1_02-b02-debug mixed mode)
#
###@###.### 2002-01-22
The same is reproducible on Solaris, 1.3.1_02 and the server compiler only
(works fine with client compiler and in the interpreted mode). Not reproducible with 1.4. HP's customer is actively waiting for a fix for 1.3.1. I wasn't able to locate the code that fixed this problem. Need assistance from the Hotspot team and the CTE.
(Review ID: 138328)
======================================================================
- backported by
-
JDK-2050915 1.3.1 HotSpot Server VM dumps core in PhaseIdealLoop
- Resolved
-
JDK-2050916 1.3.1 HotSpot Server VM dumps core in PhaseIdealLoop
- Resolved
- relates to
-
JDK-4522874 SIGSEGV in JVM_GetCPMethodClassNameUTF
- Resolved