JDK-7116025 : SIGSEGV occurs int array in jdk5ux/6ux
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6u28
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2011-11-28
  • Updated: 2011-11-28
  • Resolved: 2011-11-28
Related Reports
Duplicate :  
Description
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.