JDK-8295028 : C2 crash: assert(t->meet(t0) == t) failed: Not monotonic
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 20
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86_64
  • Submitted: 2022-10-09
  • Updated: 2022-10-14
  • Resolved: 2022-10-14
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 20
20Resolved
Related Reports
Duplicate :  
Relates :  
Description
Test: java/util/Collections/EmptyNavigableSet.java

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8430/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5d4bc0eb-d6ef-4c78-8305-47ed3fe5e9b0/runs/37fe1739-9b19-42b7-946b-a5c64ec316ec/workspace/open/src/hotspot/share/opto/phaseX.cpp:1751), pid=1297472, tid=1298541
#  assert(t->meet(t0) == t) failed: Not monotonic
#
# JRE version: Java(TM) SE Runtime Environment (20.0+18) (fastdebug build 20-ea+18-1281)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-ea+18-1281, compiled mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x176abcc]  PhaseCCP::analyze()+0x21c
#
# 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/0c72054a-24ab-4dbb-944f-97f9341a1b96-S45944/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/564d7e00-89f7-4a71-b223-03ce5949fc61/runs/f47806a5-1b7a-4833-893d-6ec9c8a43fa6/testoutput/test-support/jtreg_open_test_jdk_jdk_util/scratch/0/core.1297472)
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S45944/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/564d7e00-89f7-4a71-b223-03ce5949fc61/runs/f47806a5-1b7a-4833-893d-6ec9c8a43fa6/testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp -ea -esa -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+TieredCompilation -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+18-1281/linux-x64-debug.test/jdk/jtreg/native --patch-module=java.base=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S45944/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/564d7e00-89f7-4a71-b223-03ce5949fc61/runs/f47806a5-1b7a-4833-893d-6ec9c8a43fa6/testoutput/test-support/jtreg_open_test_jdk_jdk_util/patches/java.base -Djava.security.policy=file:/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S45944/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/564d7e00-89f7-4a71-b223-03ce5949fc61/runs/f47806a5-1b7a-4833-893d-6ec9c8a43fa6/./testoutput/test-support/jtreg_open_test_jdk_jdk_util/jtreg.policy com.sun.javatest.regtest.agent.AgentServer -id 85 -logfile /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S45944/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/564d7e00-89f7-4a71-b223-03ce5949fc61/runs/f47806a5-1b7a-4833-893d-6ec9c8a43fa6/testoutput/test-support/jtreg_open_test_jdk_jdk_util/jtData/agentServer.85.trace -allowSetSecurityManager -port 41333 -timeoutFactor 10.0

Host:  AMD EPYC 7742 64-Core Processor, 12 cores, 23G, Oracle Linux Server release 8.6
Time: Fri Oct  7 12:41:47 2022 UTC elapsed time: 198.293064 seconds (0d 0h 3m 18s)

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

Current thread (0x00007f64bdf1e190):  JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=1298541, stack(0x00007f6437dfe000,0x00007f6437eff000)]


Current CompileTask:
C2: 198293 18813    b  4       java.lang.invoke.StringConcatFactory::newString (49 bytes)

Stack: [0x00007f6437dfe000,0x00007f6437eff000],  sp=0x00007f6437efa0e0,  free space=1008k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x176abcc]  PhaseCCP::analyze()+0x21c  (phaseX.cpp:1751)
V  [libjvm.so+0xae2cc1]  Compile::Optimize()+0x701  (compile.cpp:2392)
V  [libjvm.so+0xae572d]  Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x15fd  (compile.cpp:830)
V  [libjvm.so+0x8fd9f5]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x675  (c2compiler.cpp:113)
V  [libjvm.so+0xaf249c]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xabc  (compileBroker.cpp:2240)
V  [libjvm.so+0xaf32e8]  CompileBroker::compiler_thread_loop()+0x5d8  (compileBroker.cpp:1916)
V  [libjvm.so+0x10543d6]  JavaThread::thread_main_inner()+0x206  (javaThread.cpp:699)
V  [libjvm.so+0x1a45bd0]  Thread::call_run()+0x100  (thread.cpp:224)
V  [libjvm.so+0x16e30f3]  thread_native_entry(Thread*)+0x103  (os_linux.cpp:710)
Comments
JDK-8293531 changes the assert, so this particular failure is no longer possible. Closing as duplicate. If we get a failure with the new assert then we can open a new bug.
14-10-2022

Could possibly be related to JDK-8293531.
11-10-2022

ILW = assert in debug build; intermittent; no work around = MLH = P4
10-10-2022

I wasn't able to reproduce this with the replay file.
10-10-2022