[jdk8u-dev] RFR: 8261235: C1 compilation fails with assert(res->vreg_number() == index) failed: conversion check [v2]
Chuanqi Zang
duke at openjdk.org
Mon May 19 08:45:00 UTC 2025
On Mon, 19 May 2025 06:28:51 GMT, Chuanqi Zang <duke at openjdk.org> wrote:
> @zangcq Please enable GHA on your fork.
@jerboaa FYI:GHA Result
- with this pr: https://github.com/zangcq/jdk8u-dev/actions/runs/15105864713
Only security releated case failed,`TestTooManyVirtualRegistersMain` in hotspot/tier1 passed
- without this pr :https://github.com/zangcq/jdk8u-dev/actions/runs/15105793305
Beside security releated case failed,`TestTooManyVirtualRegistersMain` failed.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fda89da9f99, pid=43889, tid=0x00007fda62afd640
#
# JRE version: OpenJDK Runtime Environment (8.0_462) (build 1.8.0_462-internal-zangcq-64a3d592291d15076edac82a975e797f4c327341-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.462-b00 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x3a9f99] LinearScan::eliminate_spill_moves()+0x1b9
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/runner/work/jdk8u-dev/jdk8u-dev/test-results/testoutput/hotspot_tier1/JTwork/scratch/hs_err_pid43889.log
#
# Compiler replay data is saved as:
# /home/runner/work/jdk8u-dev/jdk8u-dev/test-results/testoutput/hotspot_tier1/JTwork/scratch/replay_pid43889.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
my inside log build with fastdebug mode
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (jdk8u-dev/hotspot/src/share/vm/c1/c1_LIR.hpp:744), pid=4163761, tid=0x00007ffb160a2700
# assert(res->vreg_number() == index) failed: conversion check
#
# JRE version: OpenJDK Runtime Environment (8.0_462) (build 1.8.0_462-fastdebug-zangchuanqi_2025_05_19_16_16-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.462-b00-fastdebug 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:
# http://bugreport.java.com/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x00007ffb2c183000): JavaThread "C1 CompilerThread3" daemon [_thread_in_native, id=4163781, stack(0x00007ffb15fa3000,0x00007ffb160a3000)]
Stack: [0x00007ffb15fa3000,0x00007ffb160a3000], sp=0x00007ffb160a0160, free space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x13457db] VMError::report_and_die()+0x21b
V [libjvm.so+0x82bbe1] report_vm_error(char const*, int, char const*, char const*)+0x61
V [libjvm.so+0x570459] LIR_OprFact::virtual_register(int, BasicType)+0x89
V [libjvm.so+0x58cedd] MoveResolver::insert_move(Interval*, Interval*)+0xcd
V [libjvm.so+0x5a5c4b] MoveResolver::resolve_mappings()+0x11b
V [libjvm.so+0x5a6279] MoveResolver::move_insert_position(LIR_List*, int)+0x69
V [libjvm.so+0x5a6583] LinearScanWalker::insert_move(int, Interval*, Interval*)+0x283
V [libjvm.so+0x5a6bbe] LinearScanWalker::split_for_spilling(Interval*)+0x58e
V [libjvm.so+0x5a6f22] LinearScanWalker::split_and_spill_intersecting_intervals(int, int)+0x62
V [libjvm.so+0x5a759a] LinearScanWalker::alloc_locked_reg(Interval*)+0x58a
V [libjvm.so+0x5a797d] LinearScanWalker::activate_current()+0x24d
V [libjvm.so+0x5965c1] IntervalWalker::walk_to(int)+0x611
V [libjvm.so+0x5a8f4c] LinearScan::allocate_registers()+0x25c
V [libjvm.so+0x5ad37a] LinearScan::do_linear_scan()+0x14a
V [libjvm.so+0x4d9e6f] Compilation::emit_lir()+0x99f
V [libjvm.so+0x4dc57e] Compilation::compile_java_method()+0x47e
V [libjvm.so+0x4dce94] Compilation::compile_method()+0x64
V [libjvm.so+0x4dd664] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*)+0x314
V [libjvm.so+0x4de154] Compiler::compile_method(ciEnv*, ciMethod*, int)+0x144
V [libjvm.so+0x78f015] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x5b5
V [libjvm.so+0x7911e8] CompileBroker::compiler_thread_loop()+0x928
V [libjvm.so+0x12b090e] JavaThread::thread_main_inner()+0x25e
V [libjvm.so+0x1037430] java_start(Thread*)+0x140
C [libpthread.so.0+0x74a4] start_thread+0xc4
Current CompileTask:
C1: 4317 34 b 3 compiler.c1.TestTooManyVirtualRegisters::test (7326 bytes)
-------------
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/622#issuecomment-2890147124
More information about the jdk8u-dev
mailing list