-
Bug
-
Resolution: Fixed
-
P1
-
22
-
b14
The crash happens during this phase:
[2023-08-31T08:51:27,258Z] Optimizing the exploded image
This is the failure mode:
```
# Internal Error (src/hotspot/cpu/x86/macroAssembler_x86.cpp:2755), pid=20045, tid=20157
# assert(rscratch != noreg || always_reachable(src)) failed: missing
#
# JRE version: OpenJDK Runtime Environment (22.0+14) (fastdebug build 22-ea+14-963)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-ea+14-963, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x12f17b9] MacroAssembler::evmovdquq(XMMRegister, AddressLiteral, int, Register)+0x1a9
```
```
Command Line: -Xms64M -Xmx1600M --add-exports=java.base/jdk.internal.module=ALL-UNNAMED build.tools.jigsaw.AddPackagesAttribute <...>/build/linux-x64-open-debug/jdk
```
```
Stack: [0x000014d2c8211000,0x000014d2c8311000], sp=0x000014d2c830c6e0, free space=1005k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x12f17b9] MacroAssembler::evmovdquq(XMMRegister, AddressLiteral, int, Register)+0x1a9 (macroAssembler_x86.cpp:2755)
V [libjvm.so+0x16b2220] StubGenerator::aesctr_encrypt(Register, Register, Register, Register, Register, Register, Register, Register)+0x9d0 (stubGenerator_x86_64_aes.cpp:2134)
V [libjvm.so+0x16b4e6f] StubGenerator::generate_counterMode_VectorAESCrypt()+0x1ff (stubGenerator_x86_64_aes.cpp:312)
V [libjvm.so+0x16ba620] StubGenerator::generate_aes_stubs()+0xe0 (stubGenerator_x86_64_aes.cpp:171)
V [libjvm.so+0x16a2bf4] StubGenerator::generate_compiler_stubs()+0x364 (stubGenerator_x86_64.cpp:4087)
V [libjvm.so+0x16a38f8] StubGenerator_generate(CodeBuffer*, StubCodeGenerator::StubsKind)+0x118 (stubGenerator_x86_64.cpp:4259)
V [libjvm.so+0x16efd58] initialize_stubs(StubCodeGenerator::StubsKind, int, int, char const*, char const*, char const*)+0x138 (stubRoutines.cpp:236)
V [libjvm.so+0x16f19a9] compiler_stubs_init(bool)+0xa9 (stubRoutines.cpp:273)
V [libjvm.so+0x848f3e] C2Compiler::init_c2_runtime()+0x9e (c2compiler.cpp:80)
V [libjvm.so+0x8490f5] C2Compiler::initialize()+0x35 (c2compiler.cpp:100)
V [libjvm.so+0x9f45b5] CompileBroker::init_compiler_runtime()+0xd5 (compileBroker.cpp:1755)
V [libjvm.so+0x9fad09] CompileBroker::compiler_thread_loop()+0x119 (compileBroker.cpp:1892)
V [libjvm.so+0xeb635c] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:720)
V [libjvm.so+0x17a1fea] Thread::call_run()+0xba (thread.cpp:220)
V [libjvm.so+0x14a175a] thread_native_entry(Thread*)+0x12a (os_linux.cpp:785)
Registers:
RAX=0x000014d2e49ee000, RBX=0x000014d2c830dc60, RCX=0x000014d2e371110f, RDX=0x000014d2e37a55d8
RSP=0x000014d2c830c6e0, RBP=0x000014d2c830c7b0, RSI=0x0000000000000ac3, RDI=0x000014d2e388d0c0
R8 =0x0000000000000003, R9 =0x000014d2dc2dd270, R10=0x0000000000000049, R11=0x0000000000000001
R12=0x000014d2dc2dd270, R13=0x00000000ffffffff, R14=0x000014d2c830c730, R15=0x0000000000000002
RIP=0x000014d2e2fa67b9, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
TRAPNO=0x000000000000000e
```
[2023-08-31T08:51:27,258Z] Optimizing the exploded image
This is the failure mode:
```
# Internal Error (src/hotspot/cpu/x86/macroAssembler_x86.cpp:2755), pid=20045, tid=20157
# assert(rscratch != noreg || always_reachable(src)) failed: missing
#
# JRE version: OpenJDK Runtime Environment (22.0+14) (fastdebug build 22-ea+14-963)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 22-ea+14-963, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x12f17b9] MacroAssembler::evmovdquq(XMMRegister, AddressLiteral, int, Register)+0x1a9
```
```
Command Line: -Xms64M -Xmx1600M --add-exports=java.base/jdk.internal.module=ALL-UNNAMED build.tools.jigsaw.AddPackagesAttribute <...>/build/linux-x64-open-debug/jdk
```
```
Stack: [0x000014d2c8211000,0x000014d2c8311000], sp=0x000014d2c830c6e0, free space=1005k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x12f17b9] MacroAssembler::evmovdquq(XMMRegister, AddressLiteral, int, Register)+0x1a9 (macroAssembler_x86.cpp:2755)
V [libjvm.so+0x16b2220] StubGenerator::aesctr_encrypt(Register, Register, Register, Register, Register, Register, Register, Register)+0x9d0 (stubGenerator_x86_64_aes.cpp:2134)
V [libjvm.so+0x16b4e6f] StubGenerator::generate_counterMode_VectorAESCrypt()+0x1ff (stubGenerator_x86_64_aes.cpp:312)
V [libjvm.so+0x16ba620] StubGenerator::generate_aes_stubs()+0xe0 (stubGenerator_x86_64_aes.cpp:171)
V [libjvm.so+0x16a2bf4] StubGenerator::generate_compiler_stubs()+0x364 (stubGenerator_x86_64.cpp:4087)
V [libjvm.so+0x16a38f8] StubGenerator_generate(CodeBuffer*, StubCodeGenerator::StubsKind)+0x118 (stubGenerator_x86_64.cpp:4259)
V [libjvm.so+0x16efd58] initialize_stubs(StubCodeGenerator::StubsKind, int, int, char const*, char const*, char const*)+0x138 (stubRoutines.cpp:236)
V [libjvm.so+0x16f19a9] compiler_stubs_init(bool)+0xa9 (stubRoutines.cpp:273)
V [libjvm.so+0x848f3e] C2Compiler::init_c2_runtime()+0x9e (c2compiler.cpp:80)
V [libjvm.so+0x8490f5] C2Compiler::initialize()+0x35 (c2compiler.cpp:100)
V [libjvm.so+0x9f45b5] CompileBroker::init_compiler_runtime()+0xd5 (compileBroker.cpp:1755)
V [libjvm.so+0x9fad09] CompileBroker::compiler_thread_loop()+0x119 (compileBroker.cpp:1892)
V [libjvm.so+0xeb635c] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:720)
V [libjvm.so+0x17a1fea] Thread::call_run()+0xba (thread.cpp:220)
V [libjvm.so+0x14a175a] thread_native_entry(Thread*)+0x12a (os_linux.cpp:785)
Registers:
RAX=0x000014d2e49ee000, RBX=0x000014d2c830dc60, RCX=0x000014d2e371110f, RDX=0x000014d2e37a55d8
RSP=0x000014d2c830c6e0, RBP=0x000014d2c830c7b0, RSI=0x0000000000000ac3, RDI=0x000014d2e388d0c0
R8 =0x0000000000000003, R9 =0x000014d2dc2dd270, R10=0x0000000000000049, R11=0x0000000000000001
R12=0x000014d2dc2dd270, R13=0x00000000ffffffff, R14=0x000014d2c830c730, R15=0x0000000000000002
RIP=0x000014d2e2fa67b9, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
TRAPNO=0x000000000000000e
```
- relates to
-
JDK-8314748 1-10% regressions on Crypto micros
- Resolved