JDK-8233820 : Test crashed with assert(phi->operand_count() != 1 || phi->subst() != phi) failed: missed trivial simplification
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,13,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-07
  • Updated: 2022-06-27
  • Resolved: 2019-11-12
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 11 JDK 13 JDK 14
11.0.6Fixed 13.0.4Fixed 14 b23Fixed
Related Reports
Relates :  
Description
Assertion
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (open/src/hotspot/share/c1/c1_GraphBuilder.cpp:2594), pid=28205, tid=28222
#  assert(phi->operand_count() != 1 || phi->subst() != phi) failed: missed trivial simplification
#
# JRE version: Java(TM) SE Runtime Environment (14.0) (fastdebug build 14-internal+0-2019-11-06-2354461.lmesnik.ks-apps)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-internal+0-2019-11-06-2354461.lmesnik.ks-apps, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x7263f9]  PhiSimplifier::block_do(BlockBegin*)+0x809
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /home/lmesnik/Downloads/jittester/JTwork/scratch/core.28205)
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#


Comments
Fix request jdk13u Applies cleanly.
03-06-2020

Fix request jdk11u Already backported to 11.0.7-oracle. We should have it in open 11u, too. Applies cleanly.
20-11-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/ad05ed6f2a77 User: mdoerr Date: 2019-11-12 15:13:45 +0000
12-11-2019

> I think priority should be P4 or P5 if there are no known issues with the product build. Right? Agree. Revised ILW = MLH = P4
08-11-2019

I agree, it was probably triggered by JDK-8214352 fix. Some assertions don't handle illegal phi functions correcty. Can be fixed like this: http://cr.openjdk.java.net/~mdoerr/8233820_C1_illegal_phi/webrev.00/ I think priority should be P4 or P5 if there are no known issues with the product build. Right? Yes, it can be reproduced with 11 and fixed by the same patch.
08-11-2019

JDK-8214352 has been backported to JDK 11. Does this reproduce with 11?
08-11-2019

ILW = c1 assert failure 'missed trivial simplification' with debug build; with -Xcomp -XX:+DeoptimizeALot, always reproducible with reported jittester test, regression from JDK 13+01; none = MMH = P3 This issue seems started with or triggered by JDK-8214352 fix changeset from 13-ea+1 build onwards. Hi @Martin Doerr, Request your help to check this please. Thanks.
08-11-2019

To reproduce failure place Test* files in open/test/hotspot/jtreg/compiler/<some-subdir> and run: jib -M ash make -- run-test JTREG_RETAIN=all TEST=open/test/hotspot/jtreg/compiler/jittester/68/Test_68.java
07-11-2019