When a customer execute the following test case, SIGSEGV occurs.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xb0e3f9b8, pid=23455, tid=3078960832
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_30-b03 mixed mode)
# Problematic frame:
# J Test2.doTest()V
#
CONFIGURATION :
JDK : JDK5u30/32, JDK6u28/29
OS: linux (x86)
REPRODUCE :
Compile and execute the following test case, SIGSEGV occurs.
TEST CASE:
=======>
public class Test2
{
private Integer end = null;
protected int[] results = null;
public Integer getEnd(){return end;}
public void doTest(){
int r[] = new int[1000000];
int end = Integer.MAX_VALUE;
if (getEnd() != null)
end = getEnd().intValue();
for (int i=0, length=r.length; i<length && i<=end; i++)
r[i] = 1;
results = r;
}
public static void main(String args[]) {
Test2 t = new Test2();
t.doTest();
}
}
<========
FREQUENCY:
This problem always occurs.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xb0e3f9b8, pid=23455, tid=3078960832
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_30-b03 mixed mode)
# Problematic frame:
# J Test2.doTest()V
#
CONFIGURATION :
JDK : JDK5u30/32, JDK6u28/29
OS: linux (x86)
REPRODUCE :
Compile and execute the following test case, SIGSEGV occurs.
TEST CASE:
=======>
public class Test2
{
private Integer end = null;
protected int[] results = null;
public Integer getEnd(){return end;}
public void doTest(){
int r[] = new int[1000000];
int end = Integer.MAX_VALUE;
if (getEnd() != null)
end = getEnd().intValue();
for (int i=0, length=r.length; i<length && i<=end; i++)
r[i] = 1;
results = r;
}
public static void main(String args[]) {
Test2 t = new Test2();
t.doTest();
}
}
<========
FREQUENCY:
This problem always occurs.
- duplicates
-
JDK-5091921 Sign flip issues in loop optimizer
-
- Closed
-