Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7116025

SIGSEGV occurs int array in jdk5ux/6ux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6u28
    • hotspot
    • x86
    • linux

      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.

            Unassigned Unassigned
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: