JDK-8317301 : assert(false) failed: unexpected yanked node
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2023-09-28
  • Updated: 2023-12-11
  • Resolved: 2023-12-07
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 8
8-poolResolved
Related Reports
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)

A DESCRIPTION OF THE PROBLEM :
I ran a modified regression test case on JDK8u392 and found that the JVM crashed with -Xcomp -XX:-TieredCompilation options.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/data//jdk8u/hotspot/src/share/vm/opto/postaloc.cpp:139), pid=53335, tid=0x00007fb168737700
#  assert(false) failed: unexpected yanked node
#
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java -Xcomp -XX:-TieredCompilation compiler.c2.TestRemoveMemBarPrecEdge

ACTUAL -
==============================================
orig_old:
 131    loadN   === _  79  132  [[]] narrowoop: java/lang/String:exact * !jvms: Thread::getName @ bci:1 TestRemoveMemBarPrecEdge::test @ bci:11 TestRemoveMemBarPrecEdge::main @ bci:27
old:
 131    loadN   === _  79  132  [[]] narrowoop: java/lang/String:exact * !jvms: Thread::getName @ bci:1 TestRemoveMemBarPrecEdge::test @ bci:11 TestRemoveMemBarPrecEdge::main @ bci:27
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/postaloc.cpp:139
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/data//jdk8u/hotspot/src/share/vm/opto/postaloc.cpp:139), pid=53335, tid=0x00007fb168737700
#  assert(false) failed: unexpected yanked node
#
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home//repository//toreport/TestRemoveMemBarPrecEdge_09_25_12_25_32/hs_err_pid53335.log
#
# Compiler replay data is saved as:
# /home//repository//toreport/TestRemoveMemBarPrecEdge_09_25_12_25_32/replay_pid53335.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------- BEGIN SOURCE ----------

---------- END SOURCE ----------

FREQUENCY : always



Comments
ILW: High (crash, in debug) L (debug build assert, broken invariant) M (run the application by excluding the problematic method from compilation) Rising the priority to P3.
02-10-2023

JDK-8288559 was supposed to fix this by backporting JDK-8210389 but since 8u381 is still affected, it must be a different issue.
29-09-2023

Issue is reproduced. Crash is observed on JDK 8 GA build with java -Xcomp -XX:-TieredCompilation compiler.c2.TestRemoveMemBarPrecEdge and Crash is observed on 8u381 debug build with java -XX:-TieredCompilation compiler.c2.TestRemoveMemBarPrecEdge OS: Windows 10 JDK 8u381: Fail JDK 11.0.20: Pass JDK 17.0.8 : Pass JDK 21 : Pass ILW = Crash, reproducible on GA build, no known workaround yet = MLM = P4 Moving it to dev team for further analysis
29-09-2023