Java crash on startup in BufferBlob::flush_icache_stub
Environment
- OpenJDK 8
- 1.8.0_272-b10
- Oracle JDK 8
- 1.8.0_241-b07)
Issue
- The JVM crashes running
java -version:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ffae9000060, pid=9052, tid=0x00007ffaffce2700
#
# JRE version: OpenJDK Runtime Environment (8.0_272-b10) (build 1.8.0_272-b10)
# Java VM: OpenJDK 64-Bit Server VM (25.272-b10 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# v ~BufferBlob::flush_icache_stub
#
# 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:
# https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%207&component=java-1.8.0-openjdk
#
--------------- T H R E A D ---------------
Current thread (0x00007ffaf804b000): JavaThread "main" [_thread_in_vm, id=9053, stack(0x00007ffaffbe3000,0x00007ffaffce3000)]
siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x00007ffae9000060
...
Stack: [0x00007ffaffbe3000,0x00007ffaffce3000], sp=0x00007ffaffce0fc8, free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
v ~BufferBlob::flush_icache_stub
V [libjvm.so+0x9fcd47] SharedRuntime::generate_i2c2i_adapters(MacroAssembler*, int, int, BasicType const*, VMRegPair const*, AdapterFingerPrint*)+0xd97
V [libjvm.so+0x9f3200] AdapterHandlerLibrary::get_adapter(methodHandle)+0x460
V [libjvm.so+0x8c9c62] Method::make_adapters(methodHandle, Thread*)+0x72
V [libjvm.so+0x8c9fb1] Method::link_method(methodHandle, Thread*) [clone .part.192]+0x131
V [libjvm.so+0x652886] InstanceKlass::link_methods(Thread*)+0xb6
V [libjvm.so+0x652f3e] InstanceKlass::link_class_impl(instanceKlassHandle, bool, Thread*)+0x3de
V [libjvm.so+0x65546f] InstanceKlass::initialize_impl(instanceKlassHandle, Thread*)+0x37f
V [libjvm.so+0x6558b9] InstanceKlass::initialize(Thread*)+0x49
V [libjvm.so+0xb07a54] Threads::create_vm(JavaVMInitArgs*, bool*)+0xca4
V [libjvm.so+0x71540d] JNI_CreateJavaVM+0x5d
C [libjli.so+0x3093] JavaMain+0xa3
C [libpthread.so.0+0x7ea5] start_thread+0xc5
Dynamic libraries:
...
7ffafde1f000-7ffafebb0000 r-xp 00000000 103:03 51649 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-1.el7_9.x86_64/jre/lib/amd64/server/libjvm.so
...
OS:Red Hat Enterprise Linux Server release 7.9 (Maipo)
vm_info: OpenJDK 64-Bit Server VM (25.272-b10) for linux-amd64 JRE (1.8.0_272-b10), built on Oct 19 2020 21:30:02 by "mockbuild" with gcc 4.8.5 20150623 (Red Hat 4.8.5-44)
elapsed time: 0.051034 seconds (0d 0h 0m 0s)
Product(s)
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.