JDK-8263672 : fatal error: no reachable node should have no use
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-16
  • Updated: 2021-09-30
  • Resolved: 2021-03-17
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 17
17 b14Fixed
Related Reports
Relates :  
Description
Test crash in tier2 after JDK-8263577 was integrated.

vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile/TestDescription.java

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S77104/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d34bbfd9-1328-4da3-aa3c-d383e2bd5904/runs/ef2cab74-82b9-4801-a2d2-1fe99bb93ee1/workspace/open/src/hotspot/share/opto/compile.cpp:2376), pid=304, tid=319
#  fatal error: no reachable node should have no use
#
# JRE version: Java(TM) SE Runtime Environment (17.0+14) (fastdebug build 17-ea+14-LTS-1072)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+14-LTS-1072, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x9fc0d0]  Compile::check_no_dead_use() const+0x680
#
# 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/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/scratch/0/core.304)
#
# 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: -Dtest.vm.opts=-XX:MaxRAMPercentage=6 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/tmp -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=6 -J-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/tmp -Dtest.compiler.opts= -Dtest.java.opts=-XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -Dtest.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/linux-x64-debug.jdk/jdk-17/fastdebug -Dcompile.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/linux-x64-debug.jdk/jdk-17/fastdebug -Dtest.timeout.factor=4.0 -Dtest.nativepath=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/linux-x64-debug.test/hotspot/jtreg/native -Dtest.root=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/src.full/open/test/hotspot/jtreg -Dtest.name=vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile/TestDescription.java -Dtest.file=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/src.full/open/test/hotspot/jtreg/vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile/TestDescription.java -Dtest.src=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/src.full/open/test/hotspot/jtreg/vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile -Dtest.src.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/src.full/open/test/hotspot/jtreg/vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/src.full/open/test/hotspot/jtreg/vmTestbase:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/src.full/open/test/lib -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/3/vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile/TestDescription.d -Dtest.class.path=/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/3/vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile/TestDescription.d:/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/3/vmTestbase:/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/3/test/lib -Dtest.class.path.prefix=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/src.full/open/test/hotspot/jtreg/vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile:/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/3/vmTestbase:/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/classes/3/test/lib -XX:MaxRAMPercentage=6 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/tmp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+14-1072/linux-x64-debug.test/hotspot/jtreg/native com.sun.javatest.regtest.agent.MainWrapper /opt/mach5/mesos/work_dir/slaves/e8f948fe-dc79-4c12-82c8-0e7ba4ac7993-S35/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/225be941-bdfc-4c38-a549-7177da46b50b/runs/e68e2361-e5ac-420d-9860-03c172685517/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_vm_compiler/vmTestbase/vm/compiler/optimizations/partialpeel/WhileWhile/TestDescription.d/main.0.jta

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

Current thread (0x00007f7f4c3217a0):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=319, stack(0x00007f7f3c3fc000,0x00007f7f3c4fd000)]


Current CompileTask:
C2:   1456  355             vm.compiler.optimizations.partialpeel.WhileWhile$4::execute (141 bytes)

Stack: [0x00007f7f3c3fc000,0x00007f7f3c4fd000],  sp=0x00007f7f3c4f83b0,  free space=1008k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x9fc0d0]  Compile::check_no_dead_use() const+0x680
V  [libjvm.so+0xa0f0ef]  Compile::Optimize()+0x18ff
V  [libjvm.so+0xa10b05]  Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x1905
V  [libjvm.so+0x83bd6a]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1ea
V  [libjvm.so+0xa20931]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xf21
V  [libjvm.so+0xa215d8]  CompileBroker::compiler_thread_loop()+0x5a8
V  [libjvm.so+0x1842bd1]  JavaThread::thread_main_inner()+0x271
V  [libjvm.so+0x184ada0]  Thread::call_run()+0x100
V  [libjvm.so+0x1535c56]  thread_native_entry(Thread*)+0x116

Comments
Changeset: d1baed67 Author: Roland Westrelin <roland@openjdk.org> Date: 2021-03-17 08:52:14 +0000 URL: https://git.openjdk.java.net/jdk/commit/d1baed67
17-03-2021

ILW = Assert during C2 compilation (harmless in product), intermittent at tier 2, no workaround = MMH = P3
17-03-2021