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

JDK11 Crash on /src/hotspot/share/utilities/exceptions.cpp:128

    XMLWordPrintable

Details

    • gc
    • generic
    • generic

    Description

      ADDITIONAL SYSTEM INFORMATION :
      We manually compiled the latest version of JDK11, and during testing, we found that the program crashed when using the "-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ActiveProcessorCount=2000 -XX:-ZStallOnOutOfMemory" options

      A DESCRIPTION OF THE PROBLEM :
      OS: Ubuntu22.04.2
      Java-version:
      openjdk version "11.0.20-internal" 2023-07-18
      OpenJDK Runtime Environment (fastdebug build 11.0.20-internal+0-adhoc.duiyiheng.jdk11u-jdk-11.0.20-8)
      OpenJDK 64-Bit Server VM (fastdebug build 11.0.20-internal+0-adhoc.duiyiheng.jdk11u-jdk-11.0.20-8, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      OS: Ubuntu22.04.2
      Java-version:
      openjdk version "11.0.20-internal" 2023-07-18
      OpenJDK Runtime Environment (fastdebug build 11.0.20-internal+0-adhoc.duiyiheng.jdk11u-jdk-11.0.20-8)
      OpenJDK 64-Bit Server VM (fastdebug build 11.0.20-internal+0-adhoc.duiyiheng.jdk11u-jdk-11.0.20-8, mixed mode)



       Testcase:
      public class Test{
        public Test(){
        }
       
        public static void main(String[] var0){
          System.gc();
        }
      }
      3. download/make fast-debug version jdk11.0.20-8
      4. run with following command:
      java -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ActiveProcessorCount=2000 -XX:-ZStallOnOutOfMemory Test

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      <no output>
      ACTUAL -
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc:  SuppressErrorAt=/exceptions.cpp:128
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      #  Internal Error (/home/duiyiheng/env/java/hotspot/jdk11u-jdk-11.0.20-8/src/hotspot/share/utilities/exceptions.cpp:128), pid=47609, tid=47610
      #  assert(exception != __null) failed: exception should not be NULL
      #
      # JRE version:  (11.0.20) (fastdebug build )
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.20-internal+0-adhoc.duiyiheng.jdk11u-jdk-11.0.20-8, mixed mode, tiered, z gc, linux-amd64)
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/duiyiheng/projects/gc/core.47609)
      #
      # An error report file with more information is saved as:
      # /home/duiyiheng/projects/gc/hs_err_pid47609.log
      #
      #

      ---------- BEGIN SOURCE ----------
      public class Test{
        public Test(){
        }
       
        public static void main(String[] var0){
          System.gc();
        }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: