Java crash in C2 CompilerThread: "guarantee(n != NULL) failed: No Node."

Solution Unverified - Updated

Environment

  • Red Hat build of OpenJDK

Issue

  • Java crash in C2 compiler thread:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (loopnode.hpp:628), pid=4252, tid=0x00007f4d78ee6700
#  guarantee(n != NULL) failed: No Node.
#
# JRE version: OpenJDK Runtime Environment (8.0_322-b06) (build 1.8.0_322-b06)
# Java VM: OpenJDK 64-Bit Server VM (25.322-b06 mixed 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:
#   https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%207&component=java-1.8.0-openjdk
#

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

Current thread (0x00007f4d8c122800):  JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=4263, stack(0x00007f4d78de7000,0x00007f4d78ee7000)]

Stack: [0x00007f4d78de7000,0x00007f4d78ee7000],  sp=0x00007f4d78edad30,  free space=975k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xb65c5d]  VMError::report_and_die()+0x1cd
V  [libjvm.so+0x507285]  report_vm_error(char const*, int, char const*, char const*)+0xa5
V  [libjvm.so+0x830067]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x2e7
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
V  [libjvm.so+0x82ff91]  IdealLoopTree::beautify_loops(PhaseIdealLoop*)+0x211
...

Resolution

This will be fixed in the April 2022 Critical Patch Update.

Root Cause

Content from bugs.openjdk.java.net is not included.Crash in C2: guarantee(n != NULL) failed: No Node


This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.