JDK-8279125 : fatal error: no reachable node should have no use
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 18,19
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2021-12-22
  • Updated: 2023-09-14
  • Resolved: 2022-01-03
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
18Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
One of our closed tests is crashing:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S153519/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/96bd6f31-35d6-42d3-94df-035e04d7e9fd/runs/43bb9c67-d83e-4ce9-a3f6-9f0ac2bb3527/workspace/open/src/hotspot/share/opto/compile.cpp:2339), pid=3242134, tid=3242150
#  fatal error: no reachable node should have no use
#
# JRE version: Java(TM) SE Runtime Environment (19.0+3) (fastdebug build 19-ea+3-102)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 19-ea+3-102, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0xa32780]  Compile::check_no_dead_use() const+0x500

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

Current thread (0x0000ffff7c3f0a90):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=3242150, stack(0x0000ffff2c010000,0x0000ffff2c210000)]


Current CompileTask:
C2:1179235 169111    b  4       javasoft.sqe.tests.api.java.io.PushbackInputStream.MarkResetTests::PushbackInputStream2026 (92 bytes)

Stack: [0x0000ffff2c010000,0x0000ffff2c210000],  sp=0x0000ffff2c20aac0,  free space=2026k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xa32780]  Compile::check_no_dead_use() const+0x500
V  [libjvm.so+0xa45670]  Compile::Optimize()+0x1470
V  [libjvm.so+0xa46790]  Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0xfbc
V  [libjvm.so+0x87dcc8]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1c4
V  [libjvm.so+0xa55ff4]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x8a4
V  [libjvm.so+0xa56b2c]  CompileBroker::compiler_thread_loop()+0x32c
V  [libjvm.so+0x17e9ad8]  JavaThread::thread_main_inner()+0x268
V  [libjvm.so+0x17f1e18]  Thread::call_run()+0xf8
V  [libjvm.so+0x151b8a4]  thread_native_entry(Thread*)+0x104
C  [libpthread.so.0+0x7868]  start_thread+0x188

Crash happens in a CI tier 4 run with fixes for JDK-8278790 and JDK-8275638, which may possibly be related.
Comments
[~dcubed] That's more accurate, thanks.
04-01-2022

[~chagedorn] - I reclosed this bug as a duplicate of: JDK-8279204 [BACKOUT] JDK-8278413: C2 crash when allocating array of size too large
03-01-2022

[~roland], please take a look.
23-12-2021

ILW = crash in multiple tests = HMM = P2
23-12-2021

Here's the log file for the linux-x64 jdk-18+29-1994-tier8 sighting: java/util/Calendar/Builder/BuilderTest.java #section:main ----------messages:(5/149)---------- command: main BuilderTest reason: Assumed action based on file name: run main BuilderTest Mode: agentvm Agent id: 29 elapsed time (seconds): 15.455 ----------configuration:(14/1625)---------- Boot Layer class path: /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar patch: java.base /opt/mach5/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S136810/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fb0ec671-ce81-45e2-b493-350dc742c078/runs/bd8e8b74-f7e8-4e12-9713-76659b434bc9/testoutput/test-support/jtreg_open_test_jdk_jdk_util/patches/java.base Test Layer class path: /opt/mach5/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S136810/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fb0ec671-ce81-45e2-b493-350dc742c078/runs/bd8e8b74-f7e8-4e12-9713-76659b434bc9/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/4/java/util/Calendar/Builder/BuilderTest.d /opt/mach5/mesos/work_dir/jib-master/install/jdk-18+29-1994/src.full/open/test/jdk/java/util/Calendar/Builder ----------rerun:(31/4913)*---------- <snip> ----------stdout:(25/2505)---------- 2391 CallStaticJava === 1 1 1 1 1 ( 1 1 1 1 1 1 1 1 1 1 ) | 264 [[]] # Static _new_array_Java rawptr:NotNull ( java/lang/Object:NotNull *, int ) C=0.000100 Calendar$Builder::setDate @ bci:3 (line 1240) BuilderTest::testExceptions @ bci:249 (line 230) !orig=732 !jvms: BuilderTest::builder @ bci:0 (line 251) BuilderTest::testExceptions @ bci:71 (line 187) # To suppress the following error report, specify this argument # after -XX: or in .hotspotrc: SuppressErrorAt=/compile.cpp:2323 # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S14154/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7ef6746d-cb97-4257-898d-357ba13dd028/runs/ac843179-c865-4983-bee5-63888aaa15ae/workspace/open/src/hotspot/share/opto/compile.cpp:2323), pid=8973, tid=8990 # fatal error: no reachable node should have no use # # JRE version: Java(TM) SE Runtime Environment (18.0+29) (fastdebug build 18-ea+29-1994) # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-ea+29-1994, compiled mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0xa7812d] Compile::check_no_dead_use() const+0x5ed # # 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/a2dc162d-743b-4800-9e92-31f85abb45b1-S136810/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fb0ec671-ce81-45e2-b493-350dc742c078/runs/bd8e8b74-f7e8-4e12-9713-76659b434bc9/testoutput/test-support/jtreg_open_test_jdk_jdk_util/scratch/1/core.8973) # # An error report file with more information is saved as: # /opt/mach5/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S136810/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fb0ec671-ce81-45e2-b493-350dc742c078/runs/bd8e8b74-f7e8-4e12-9713-76659b434bc9/testoutput/test-support/jtreg_open_test_jdk_jdk_util/scratch/1/hs_err_pid8973.log # # Compiler replay data is saved as: # /opt/mach5/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S136810/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fb0ec671-ce81-45e2-b493-350dc742c078/runs/bd8e8b74-f7e8-4e12-9713-76659b434bc9/testoutput/test-support/jtreg_open_test_jdk_jdk_util/scratch/1/replay_pid8973.log # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp # result: Error. Agent communication error: java.io.EOFException; check console log for any additional details Here's the crashing thread's stack: --------------- T H R E A D --------------- Current thread (0x00007f11cc432ae0): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=8990, stack(0x00007f11a5dfe000,0x00007f11a5eff000)] Current CompileTask: C2: 50531 11109 !b 4 BuilderTest::testExceptions (354 bytes) Stack: [0x00007f11a5dfe000,0x00007f11a5eff000], sp=0x00007f11a5efa010, free space=1008k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0xa7812d] Compile::check_no_dead_use() const+0x5ed V [libjvm.so+0xa8c4d1] Compile::Optimize()+0x1b01 V [libjvm.so+0xa8dc5e] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x159e V [libjvm.so+0x8a6274] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x664 V [libjvm.so+0xa9df58] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xc88 V [libjvm.so+0xa9ed18] CompileBroker::compiler_thread_loop()+0x648 V [libjvm.so+0x19277fa] JavaThread::thread_main_inner()+0x25a V [libjvm.so+0x192fbc0] Thread::call_run()+0x100 V [libjvm.so+0x1610d84] thread_native_entry(Thread*)+0x104 The test task's JVM args for this sighting are: -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:-DoEscapeAnalysis
22-12-2021