-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 27
-
Component/s: hotspot
The test compiler/c2/gvn/TestCountBitsRange.java crashed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (src/hotspot/share/opto/matcher.cpp:1681), pid=2480835, tid=2481061
# assert(false) failed: bad AD file
#
# JRE version: Java(TM) SE Runtime Environment (27.0) (fastdebug build 27-jep401ea2-2026-01-29-1628324.paul.hubner.enableSubst)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-jep401ea2-2026-01-29-1628324.paul.hubner.enableSubst, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x14cccdc] Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x7bc
#
# Core dump will be written. Default location: Determined by the following: "/opt/core.sh %p" (alternatively, falling back to testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_no_valhalla/scratch/0/core.2480835)
#
# 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: -Djava.library.path=2026-01-29-1628324.paul.hubner.enableSubst/linux-aarch64-debug.test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=jdk/25/37/bundles/linux-aarch64/jdk-25_linux-aarch64_bin.tar.gz/jdk-25 -Djava.io.tmpdir=testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_no_valhalla/tmp -Dir.framework.server.port=45637 -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:CompilerDirectivesFile=test-vm-compile-commands-pid-2480787.log -XX:CompilerDirectivesLimit=121 -XX:-OmitStackTraceInFastThrow -DShouldDoIRVerification=true -XX:-BackgroundCompilation -XX:CompileCommand=quiet compiler.lib.ir_framework.test.TestVM compiler.c2.gvn.TestCountBitsRange
Host: , AArch64, 8 cores, 30G, Oracle Linux Server release 9.6
Time: Thu Jan 29 17:26:43 2026 UTC elapsed time: 2.768650 seconds (0d 0h 0m 2s)
--------------- T H R E A D ---------------
Current thread (0x0000ffff54191fe0): JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=2481061, stack(0x0000ffff4613e000,0x0000ffff4633c000) (2040K)]
Current CompileTask:
C2:2768 881 b 4 compiler.c2.gvn.TestCountBitsRange::clzRandLimitInt (19 bytes)
Stack: [0x0000ffff4613e000,0x0000ffff4633c000], sp=0x0000ffff463371e0, free space=2020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x14cccdc] Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x7bc (matcher.cpp:1681)
V [libjvm.so+0x14cca00] Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x4e0 (matcher.cpp:1663)
V [libjvm.so+0x14cce80] Matcher::match_tree(Node const*)+0x100 (matcher.cpp:1465)
V [libjvm.so+0x14d2714] Matcher::xform(Node*, int)+0xba4 (matcher.cpp:1072)
V [libjvm.so+0x14d54c8] Matcher::match()+0x7c8 (matcher.cpp:370)
V [libjvm.so+0xa406d0] Compile::Code_Gen()+0x150 (compile.cpp:3642)
V [libjvm.so+0xa44e78] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1648 (compile.cpp:929)
V [libjvm.so+0x846a3c] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x2d8 (c2compiler.cpp:149)
V [libjvm.so+0xa53ccc] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb08 (compileBroker.cpp:2345)
V [libjvm.so+0xa54bf8] CompileBroker::compiler_thread_loop()+0x638 (compileBroker.cpp:1989)
V [libjvm.so+0xfbe288] JavaThread::thread_main_inner()+0x108 (javaThread.cpp:777)
V [libjvm.so+0x19a61cc] Thread::call_run()+0xac (thread.cpp:242)
V [libjvm.so+0x163887c] thread_native_entry(Thread*)+0x11c (os_linux.cpp:860)
C [libc.so.6+0x80b50] start_thread+0x300
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (src/hotspot/share/opto/matcher.cpp:1681), pid=2480835, tid=2481061
# assert(false) failed: bad AD file
#
# JRE version: Java(TM) SE Runtime Environment (27.0) (fastdebug build 27-jep401ea2-2026-01-29-1628324.paul.hubner.enableSubst)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-jep401ea2-2026-01-29-1628324.paul.hubner.enableSubst, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x14cccdc] Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x7bc
#
# Core dump will be written. Default location: Determined by the following: "/opt/core.sh %p" (alternatively, falling back to testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_no_valhalla/scratch/0/core.2480835)
#
# 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: -Djava.library.path=2026-01-29-1628324.paul.hubner.enableSubst/linux-aarch64-debug.test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=jdk/25/37/bundles/linux-aarch64/jdk-25_linux-aarch64_bin.tar.gz/jdk-25 -Djava.io.tmpdir=testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_no_valhalla/tmp -Dir.framework.server.port=45637 -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:CompilerDirectivesFile=test-vm-compile-commands-pid-2480787.log -XX:CompilerDirectivesLimit=121 -XX:-OmitStackTraceInFastThrow -DShouldDoIRVerification=true -XX:-BackgroundCompilation -XX:CompileCommand=quiet compiler.lib.ir_framework.test.TestVM compiler.c2.gvn.TestCountBitsRange
Host: , AArch64, 8 cores, 30G, Oracle Linux Server release 9.6
Time: Thu Jan 29 17:26:43 2026 UTC elapsed time: 2.768650 seconds (0d 0h 0m 2s)
--------------- T H R E A D ---------------
Current thread (0x0000ffff54191fe0): JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=2481061, stack(0x0000ffff4613e000,0x0000ffff4633c000) (2040K)]
Current CompileTask:
C2:2768 881 b 4 compiler.c2.gvn.TestCountBitsRange::clzRandLimitInt (19 bytes)
Stack: [0x0000ffff4613e000,0x0000ffff4633c000], sp=0x0000ffff463371e0, free space=2020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x14cccdc] Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x7bc (matcher.cpp:1681)
V [libjvm.so+0x14cca00] Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x4e0 (matcher.cpp:1663)
V [libjvm.so+0x14cce80] Matcher::match_tree(Node const*)+0x100 (matcher.cpp:1465)
V [libjvm.so+0x14d2714] Matcher::xform(Node*, int)+0xba4 (matcher.cpp:1072)
V [libjvm.so+0x14d54c8] Matcher::match()+0x7c8 (matcher.cpp:370)
V [libjvm.so+0xa406d0] Compile::Code_Gen()+0x150 (compile.cpp:3642)
V [libjvm.so+0xa44e78] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1648 (compile.cpp:929)
V [libjvm.so+0x846a3c] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x2d8 (c2compiler.cpp:149)
V [libjvm.so+0xa53ccc] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb08 (compileBroker.cpp:2345)
V [libjvm.so+0xa54bf8] CompileBroker::compiler_thread_loop()+0x638 (compileBroker.cpp:1989)
V [libjvm.so+0xfbe288] JavaThread::thread_main_inner()+0x108 (javaThread.cpp:777)
V [libjvm.so+0x19a61cc] Thread::call_run()+0xac (thread.cpp:242)
V [libjvm.so+0x163887c] thread_native_entry(Thread*)+0x11c (os_linux.cpp:860)
C [libc.so.6+0x80b50] start_thread+0x300
- relates to
-
JDK-8360192 C2: Make the type of count leading/trailing zero nodes more precise
-
- Resolved
-