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

assert(index < _size) failed: BitMap index out of bounds

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      ADDITIONAL SYSTEM INFORMATION :
      # JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
      # Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)

      A DESCRIPTION OF THE PROBLEM :
      I ran a regression on JDK8u392 and found that the JVM crashed without any options.

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/data//jdk8u/hotspot/src/share/vm/utilities/bitMap.inline.hpp:33), pid=13950, tid=0x00007feaf6a5a700
      # assert(index < _size) failed: BitMap index out of bounds
      #
      # JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
      # Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      java compiler.c1.TestLinearScanHasFPURegisters

      ACTUAL -
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/bitMap.inline.hpp:33
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/data//jdk8u/hotspot/src/share/vm/utilities/bitMap.inline.hpp:33), pid=85116, tid=0x00007fcf34232700
      # assert(index < _size) failed: BitMap index out of bounds
      #
      # JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
      # Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug mixed mode linux-amd64 compressed oops)
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /home//repository//TestLinearScanHasFPURegisters_09_23_00_08_27/hs_err_pid85116.log
      #
      # Compiler replay data is saved as:
      # /home//repository//TestLinearScanHasFPURegisters_09_23_00_08_27/replay_pid85116.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      ---------- BEGIN SOURCE ----------
      package compiler.c1;

      public class TestLinearScanHasFPURegisters {
          void test(String[] args) {
              String[] arr = new String[4];
              float f = -1;
              try {
                  arr[0] = "-1"; // exception edge 1 with value -1
                  if (args.length > 1) {
                      f = 42;
                      arr[1] = "42"; // exception edge 2 with value 42
                  }
              } catch (Exception e) {
                  // exception handler block with incoming phi for "f"
                  for (int i = 0; i < 1; ++i) {
                      f = f; // generates bytecodes, but no JIT IR
                  }
              }
          }
          public static void main(String[] args) {
              TestLinearScanHasFPURegisters t = new TestLinearScanHasFPURegisters();
              for (int i = 0; i < 1000; ++i) {
                  t.test(args);
              }
          }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: