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

JVM crash in hotspot/share/opto/compile.cpp - failed: missing inlining msg

XMLWordPrintable

    • b09
    • 23
    • b19

      I've been working on a fix for a jtreg issue https://bugs.openjdk.org/browse/CODETOOLS-7903621 which incorrectly marks failing tests as PASSED in certain cases (like a VM crash). I ran the JDK tests with a proposed fix for that issue and that now has uncovered that when running the test/hotspot/jtreg/compiler/print/PrintInlining.java test, there's a JVM crash in hotspot/share/opto/compile.cpp. The test however is being reported as PASSED, which hides the issue.

      With the fixed jtreg, this is now properly reported as a test error. The JVM crashes as follows:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/src/hotspot/share/opto/compile.cpp:4602), pid=1955664, tid=1955702
      # assert(_print_inlining_stream->size() > 0) failed: missing inlining msg
      #
      # JRE version: Java(TM) SE Runtime Environment (23.0) (fastdebug build 23-internal-2024-03-10-1335402.foo.jdk)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 23-internal-2024-03-10-1335402.foo.jdk, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, parallel gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x9e6fd6] Compile::print_inlining_update_delayed(CallGenerator*)+0x1c6
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler_all_gcs/scratch/1/core.1955664)
      #
      # An error report file with more information is saved as:
      # /testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler_all_gcs/scratch/1/hs_err_pid1955664.log
      #
      # Compiler replay data is saved as:
      # /testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler_all_gcs/scratch/1/replay_pid1955664.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

            roland Roland Westrelin
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: