JDK-8274406 : RunThese30M.java failed "assert(!LCA_orig->dominates(pred_block) || early->dominates(pred_block)) failed: early is high enough"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2021-09-28
  • Updated: 2021-10-11
  • Resolved: 2021-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 b18Fixed
Related Reports
Relates :  
Description
The following test failed in the JDK18 CI:

applications/runthese/RunThese30M.java

Here's a snippet from the log file:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S14127/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/746347b9-9223-414d-9ead-3b7a2b870188/runs/01306816-de37-49bf-906c-342650ce7894/workspace/open/src/hotspot/share/opto/gcm.cpp:766), pid=31424, tid=31440
#  assert(!LCA_orig->dominates(pred_block) || early->dominates(pred_block)) failed: early is high enough
#
# JRE version: Java(TM) SE Runtime Environment (18.0+17) (fastdebug build 18-ea+17-984)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-ea+17-984, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xd188d5]  PhaseCFG::insert_anti_dependences(Block*, Node*, bool)+0x1895
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S13973/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/01f3c21f-3d7f-451d-a68d-df11c4eeb5ed/runs/837f014e-5a4c-47b1-9fb1-856e452f4d72/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/core.31424)
#
# JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S13973/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/01f3c21f-3d7f-451d-a68d-df11c4eeb5ed/runs/837f014e-5a4c-47b1-9fb1-856e452f4d72/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/hs_err_pid31424.jfr
#
Unsupported internal testing APIs have been used.

# An error report file with more information is saved as:
# /opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S13973/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/01f3c21f-3d7f-451d-a68d-df11c4eeb5ed/runs/837f014e-5a4c-47b1-9fb1-856e452f4d72/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/hs_err_pid31424.log
#
# Compiler replay data is saved as:
# /opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S13973/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/01f3c21f-3d7f-451d-a68d-df11c4eeb5ed/runs/837f014e-5a4c-47b1-9fb1-856e452f4d72/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese30M_java/scratch/0/replay_pid31424.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
----------System.err:(1076/75173)----------


Here's the crashing thread's stack:

---------------  T H R E A D  ---------------

Current thread (0x00007f437827f970):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=31440, stack(0x00007f43284f9000,0x00007f43285fa000)]


Current CompileTask:
C2: 538830 63738   !b  4       jdk.jfr.internal.JVMUpcalls::onRetransform (188 bytes)

Stack: [0x00007f43284f9000,0x00007f43285fa000],  sp=0x00007f43285f46b0,  free space=1005k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xd188d5]  PhaseCFG::insert_anti_dependences(Block*, Node*, bool)+0x1895
V  [libjvm.so+0xd1f78b]  PhaseCFG::schedule_late(VectorSet&, Node_Stack&)+0xc7b
V  [libjvm.so+0xd1ffc5]  PhaseCFG::global_code_motion()+0x325
V  [libjvm.so+0xd241e1]  PhaseCFG::do_global_code_motion()+0x51
V  [libjvm.so+0x9f99b3]  Compile::Code_Gen()+0x293
V  [libjvm.so+0xa05ee8]  Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0x1678
V  [libjvm.so+0x81ea56]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x646
V  [libjvm.so+0xa16119]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xc39
V  [libjvm.so+0xa16d78]  CompileBroker::compiler_thread_loop()+0x518
V  [libjvm.so+0x18911ac]  JavaThread::thread_main_inner()+0x27c
V  [libjvm.so+0x1897750]  Thread::call_run()+0x100
V  [libjvm.so+0x1575494]  thread_native_entry(Thread*)+0x104
Comments
Fix request (17u): This fixes a regression introduced by JDK-8274074 in JDK 17u. The fix is low risk and has been tested in the JDK 18 for a while and with tier1-3 in JDK 17u. The patch applies cleanly.
11-10-2021

Changeset: dfc557cb Author: Christian Hagedorn <chagedorn@openjdk.org> Date: 2021-09-30 08:29:43 +0000 URL: https://git.openjdk.java.net/jdk/commit/dfc557cbea342b2991f9d129235470ac789b50a2
30-09-2021

ILW = C2 assertion in global code motion, single test, disable compilation of affected method = HLM = P3
28-09-2021