The following test failed in the Valhalla CI:
compiler/escapeAnalysis/TestIdealAllocShape.java
Here's a snippet from the log file:
#section:main
----------messages:(7/418)----------
command: main -Xbatch -XX:CompileCommand=dontinline,*DataA.m1 compiler.escapeAnalysis.TestIdealAllocShape
reason: User specified action: run main/othervm -Xbatch -XX:CompileCommand=dontinline,*DataA.m1 compiler.escapeAnalysis.TestIdealAllocShape
started: Thu Feb 19 10:27:16.282 UTC 2026
Mode: othervm [/othervm specified]
Process id: 3950520
finished: Thu Feb 19 10:27:37.106 UTC 2026
elapsed time (seconds): 20.824
----------configuration:(0/0)----------
----------System.out:(23/2227)----------
CompileCommand: dontinline *DataA.m1 bool dontinline = true
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S87595/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ba20d568-082e-4e2d-a116-f404e55bcb42/runs/c193bf52-3d04-4359-9462-71c450057b39/workspace/open/src/hotspot/share/opto/escape.cpp:4075), pid=3950520, tid=3950590
# assert(in1->uncast()->Opcode() == Op_LoadKlass && in2->uncast()->Opcode() == Op_LoadKlass) failed: must be LoadKlass
#
# JRE version: Java(TM) SE Runtime Environment (27.0+1) (fastdebug build 27-valhalla+1-142)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-valhalla+1-142, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xe30cfc] ConnectionGraph::get_addp_base(Node*)+0x3cc
#
# Core dump will be written. Default location: Determined by the following: "/opt/core.sh %p" (alternatively, falling back to /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S125258/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f25ae0be-265d-4422-8b63-9cfba977cbde/runs/6e4942ea-67bd-4d78-84e7-9490d81bc714/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/scratch/2/core.3950520)
#
# An error report file with more information is saved as:
# /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S125258/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f25ae0be-265d-4422-8b63-9cfba977cbde/runs/6e4942ea-67bd-4d78-84e7-9490d81bc714/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/scratch/2/hs_err_pid3950520.log
#
# Compiler replay data is saved as:
# /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S125258/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f25ae0be-265d-4422-8b63-9cfba977cbde/runs/6e4942ea-67bd-4d78-84e7-9490d81bc714/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/scratch/2/replay_pid3950520.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
----------System.err:(0/0)----------
----------rerun:(47/6870)*----------
Here's the crashing thread's stack:
--------------- T H R E A D ---------------
Current thread (0x00007fe6e816e770): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=3950590, stack(0x00007fe69bdff000,0x00007fe69beff000) (1024K)]
Current CompileTask:
C2:16271 4688 !b 4 compiler.escapeAnalysis.TestIdealAllocShape::test1 (34 bytes)
Stack: [0x00007fe69bdff000,0x00007fe69beff000], sp=0x00007fe69bef9940, free space=1002k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xe30cfc] ConnectionGraph::get_addp_base(Node*)+0x3cc (escape.cpp:4075)
V [libjvm.so+0xe36a86] ConnectionGraph::add_node_to_connection_graph(Node*, Unique_Node_List*)+0x646 (escape.cpp:1651)
V [libjvm.so+0xe4b6db] ConnectionGraph::compute_escape()+0xadb (escape.cpp:184)
V [libjvm.so+0xe4dfb7] ConnectionGraph::do_analysis(Compile*, PhaseIterGVN*)+0x177 (escape.cpp:121)
V [libjvm.so+0xc1937c] Compile::Optimize()+0x65c (compile.cpp:3017)
V [libjvm.so+0xc1ca8d] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1d8d (compile.cpp:886)
V [libjvm.so+0xa07248] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x4b8 (c2compiler.cpp:150)
V [libjvm.so+0xc2c380] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x780 (compileBroker.cpp:2345)
V [libjvm.so+0xc2dbe0] CompileBroker::compiler_thread_loop()+0x530 (compileBroker.cpp:1989)
V [libjvm.so+0x11ffc8b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:777)
V [libjvm.so+0x1cf5496] Thread::call_run()+0xb6 (thread.cpp:243)
V [libjvm.so+0x1906ef8] thread_native_entry(Thread*)+0x118 (os_linux.cpp:929)
compiler/escapeAnalysis/TestIdealAllocShape.java
Here's a snippet from the log file:
#section:main
----------messages:(7/418)----------
command: main -Xbatch -XX:CompileCommand=dontinline,*DataA.m1 compiler.escapeAnalysis.TestIdealAllocShape
reason: User specified action: run main/othervm -Xbatch -XX:CompileCommand=dontinline,*DataA.m1 compiler.escapeAnalysis.TestIdealAllocShape
started: Thu Feb 19 10:27:16.282 UTC 2026
Mode: othervm [/othervm specified]
Process id: 3950520
finished: Thu Feb 19 10:27:37.106 UTC 2026
elapsed time (seconds): 20.824
----------configuration:(0/0)----------
----------System.out:(23/2227)----------
CompileCommand: dontinline *DataA.m1 bool dontinline = true
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S87595/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ba20d568-082e-4e2d-a116-f404e55bcb42/runs/c193bf52-3d04-4359-9462-71c450057b39/workspace/open/src/hotspot/share/opto/escape.cpp:4075), pid=3950520, tid=3950590
# assert(in1->uncast()->Opcode() == Op_LoadKlass && in2->uncast()->Opcode() == Op_LoadKlass) failed: must be LoadKlass
#
# JRE version: Java(TM) SE Runtime Environment (27.0+1) (fastdebug build 27-valhalla+1-142)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-valhalla+1-142, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xe30cfc] ConnectionGraph::get_addp_base(Node*)+0x3cc
#
# Core dump will be written. Default location: Determined by the following: "/opt/core.sh %p" (alternatively, falling back to /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S125258/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f25ae0be-265d-4422-8b63-9cfba977cbde/runs/6e4942ea-67bd-4d78-84e7-9490d81bc714/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/scratch/2/core.3950520)
#
# An error report file with more information is saved as:
# /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S125258/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f25ae0be-265d-4422-8b63-9cfba977cbde/runs/6e4942ea-67bd-4d78-84e7-9490d81bc714/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/scratch/2/hs_err_pid3950520.log
#
# Compiler replay data is saved as:
# /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S125258/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f25ae0be-265d-4422-8b63-9cfba977cbde/runs/6e4942ea-67bd-4d78-84e7-9490d81bc714/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_2/scratch/2/replay_pid3950520.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
----------System.err:(0/0)----------
----------rerun:(47/6870)*----------
Here's the crashing thread's stack:
--------------- T H R E A D ---------------
Current thread (0x00007fe6e816e770): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=3950590, stack(0x00007fe69bdff000,0x00007fe69beff000) (1024K)]
Current CompileTask:
C2:16271 4688 !b 4 compiler.escapeAnalysis.TestIdealAllocShape::test1 (34 bytes)
Stack: [0x00007fe69bdff000,0x00007fe69beff000], sp=0x00007fe69bef9940, free space=1002k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xe30cfc] ConnectionGraph::get_addp_base(Node*)+0x3cc (escape.cpp:4075)
V [libjvm.so+0xe36a86] ConnectionGraph::add_node_to_connection_graph(Node*, Unique_Node_List*)+0x646 (escape.cpp:1651)
V [libjvm.so+0xe4b6db] ConnectionGraph::compute_escape()+0xadb (escape.cpp:184)
V [libjvm.so+0xe4dfb7] ConnectionGraph::do_analysis(Compile*, PhaseIterGVN*)+0x177 (escape.cpp:121)
V [libjvm.so+0xc1937c] Compile::Optimize()+0x65c (compile.cpp:3017)
V [libjvm.so+0xc1ca8d] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1d8d (compile.cpp:886)
V [libjvm.so+0xa07248] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x4b8 (c2compiler.cpp:150)
V [libjvm.so+0xc2c380] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x780 (compileBroker.cpp:2345)
V [libjvm.so+0xc2dbe0] CompileBroker::compiler_thread_loop()+0x530 (compileBroker.cpp:1989)
V [libjvm.so+0x11ffc8b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:777)
V [libjvm.so+0x1cf5496] Thread::call_run()+0xb6 (thread.cpp:243)
V [libjvm.so+0x1906ef8] thread_native_entry(Thread*)+0x118 (os_linux.cpp:929)
- relates to
-
JDK-8373343 C2: verify AddP base input only set for heap addresses
-
- Resolved
-
- links to
-
Commit(lworld)
openjdk/valhalla/2a3a7a1a
-
Review(lworld)
openjdk/valhalla/2144