-
Bug
-
Resolution: Fixed
-
P3
-
repo-leyden
I saw this crash once in personal testing:
runtime/cds/appcds/methodHandles/MethodHandlesCastFailureTest.java#aot
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9af79ed704, pid=1202491, tid=1202521
#
# JRE version: OpenJDK Runtime Environment (25.0) (build 25-internal-2025-04-09-2245477.ioi.lam.le4)
# Java VM: OpenJDK 64-Bit Server VM (25-internal-2025-04-09-2245477.ioi.lam.le4, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xf40704] MetaspaceClosure::MSORef<AdapterFingerPrint>::not_null() const+0x4
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S1907/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7a23263-bd85-4c63-b840-e0076548107d/runs/4ef5e787-6de1-418d-b2c5-d4b82e2f6cb6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/scratch/5/core.1202491)
#
# 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: -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S1907/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7a23263-bd85-4c63-b840-e0076548107d/runs/4ef5e787-6de1-418d-b2c5-d4b82e2f6cb6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/tmp -Xlog:cds -Xlog:cds+heap=error -XX:AOTMode=create -XX:AOTConfiguration=MethodHandlesCastFailureTest.aotconfig -XX:AOTCache=MethodHandlesCastFailureTest.aot -Xlog:cds=debug,cds+class=debug,cds+heap=warning,cds+resolve=debug:file=MethodHandlesCastFailureTest.aot.log::filesize=0 TestMHApp test.java.lang.invoke.MethodHandlesCastFailureTest
Host: AMD EPYC 9J14 96-Core Processor, 12 cores, 23G, Oracle Linux Server release 8.10
Time: Wed Apr 9 23:10:15 2025 UTC elapsed time: 0.532504 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007f9af01228e0): VMThread "VM Thread" [id=1202521, stack(0x00007f9af422a000,0x00007f9af432a000) (1024K)]
Stack: [0x00007f9af422a000,0x00007f9af432a000], sp=0x00007f9af43281e8, free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xf40704] MetaspaceClosure::MSORef<AdapterFingerPrint>::not_null() const+0x4 (metaspaceClosure.hpp:198)
V [libjvm.so+0xdb66eb] MetaspaceClosure::push_impl(MetaspaceClosure::Ref*)+0x4b (metaspaceClosure.cpp:35)
V [libjvm.so+0xf3ff47] AdapterHandlerEntry::metaspace_pointers_do(MetaspaceClosure*)+0x1b7 (metaspaceClosure.hpp:319)
V [libjvm.so+0xdb6696] MetaspaceClosure::do_push(MetaspaceClosure::Ref*)+0x86 (metaspaceClosure.cpp:65)
V [libjvm.so+0xdb66eb] MetaspaceClosure::push_impl(MetaspaceClosure::Ref*)+0x4b (metaspaceClosure.cpp:35)
V [libjvm.so+0xdc86a5] Method::metaspace_pointers_do(MetaspaceClosure*)+0x275 (metaspaceClosure.hpp:319)
V [libjvm.so+0xdb6696] MetaspaceClosure::do_push(MetaspaceClosure::Ref*)+0x86 (metaspaceClosure.cpp:65)
V [libjvm.so+0xdb66eb] MetaspaceClosure::push_impl(MetaspaceClosure::Ref*)+0x4b (metaspaceClosure.cpp:35)
V [libjvm.so+0xdd9904] MethodData::metaspace_pointers_do(MetaspaceClosure*)+0x1f4 (metaspaceClosure.hpp:319)
V [libjvm.so+0xdb67a1] MetaspaceClosure::finish()+0x81 (metaspaceClosure.cpp:65)
V [libjvm.so+0x495134] ArchiveBuilder::gather_klasses_and_symbols()+0x114 (archiveBuilder.cpp:284)
V [libjvm.so+0x495321] ArchiveBuilder::gather_source_objs()+0x81 (archiveBuilder.cpp:528)
V [libjvm.so+0xdbbaf9] VM_PopulateDumpSharedSpace::doit()+0x209 (metaspaceShared.cpp:687)
V [libjvm.so+0x1101b89] VM_Operation::evaluate()+0x109 (vmOperations.cpp:74)
V [libjvm.so+0x1104da8] VMThread::evaluate_operation(VM_Operation*)+0xe8 (vmThread.cpp:285)
V [libjvm.so+0x110addb] VMThread::inner_execute(VM_Operation*)+0x2eb (vmThread.cpp:429)
V [libjvm.so+0x110b0af] VMThread::run()+0x16f (vmThread.cpp:495)
V [libjvm.so+0x10661ef] Thread::call_run()+0x9f (thread.cpp:242)
V [libjvm.so+0xe57064] thread_native_entry(Thread*)+0x184 (os_linux.cpp:877)
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00007fe728108fd0
Registers:
RAX=0x00007fe728108fd0, RBX=0x00007f99d0877030, RCX=0x000000ffffffffff, RDX=0x0000000000000028
RSP=0x00007f9af43281e8, RBP=0x00007f9af4328210, RSI=0x00007f99d0877030, RDI=0x00007f99d0877030
R8 =0x00007f99d0878140, R9 =0x00007f99d00008d2, R10=0x0000000000000002, R11=0x0000000000000003
R12=0x00007f9af4328650, R13=0x00007f99d0878200, R14=0x00007f9af0122cb0, R15=0x00007f9af43282f0
RIP=0x00007f9af79ed704, EFLAGS=0x0000000000010206, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
TRAPNO=0x000000000000000e
runtime/cds/appcds/methodHandles/MethodHandlesCastFailureTest.java#aot
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9af79ed704, pid=1202491, tid=1202521
#
# JRE version: OpenJDK Runtime Environment (25.0) (build 25-internal-2025-04-09-2245477.ioi.lam.le4)
# Java VM: OpenJDK 64-Bit Server VM (25-internal-2025-04-09-2245477.ioi.lam.le4, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xf40704] MetaspaceClosure::MSORef<AdapterFingerPrint>::not_null() const+0x4
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S1907/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7a23263-bd85-4c63-b840-e0076548107d/runs/4ef5e787-6de1-418d-b2c5-d4b82e2f6cb6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/scratch/5/core.1202491)
#
# 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: -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/03ecc23a-edd5-4bb5-a333-4ff8ea07fd7c-S1907/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7a23263-bd85-4c63-b840-e0076548107d/runs/4ef5e787-6de1-418d-b2c5-d4b82e2f6cb6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/tmp -Xlog:cds -Xlog:cds+heap=error -XX:AOTMode=create -XX:AOTConfiguration=MethodHandlesCastFailureTest.aotconfig -XX:AOTCache=MethodHandlesCastFailureTest.aot -Xlog:cds=debug,cds+class=debug,cds+heap=warning,cds+resolve=debug:file=MethodHandlesCastFailureTest.aot.log::filesize=0 TestMHApp test.java.lang.invoke.MethodHandlesCastFailureTest
Host: AMD EPYC 9J14 96-Core Processor, 12 cores, 23G, Oracle Linux Server release 8.10
Time: Wed Apr 9 23:10:15 2025 UTC elapsed time: 0.532504 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007f9af01228e0): VMThread "VM Thread" [id=1202521, stack(0x00007f9af422a000,0x00007f9af432a000) (1024K)]
Stack: [0x00007f9af422a000,0x00007f9af432a000], sp=0x00007f9af43281e8, free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xf40704] MetaspaceClosure::MSORef<AdapterFingerPrint>::not_null() const+0x4 (metaspaceClosure.hpp:198)
V [libjvm.so+0xdb66eb] MetaspaceClosure::push_impl(MetaspaceClosure::Ref*)+0x4b (metaspaceClosure.cpp:35)
V [libjvm.so+0xf3ff47] AdapterHandlerEntry::metaspace_pointers_do(MetaspaceClosure*)+0x1b7 (metaspaceClosure.hpp:319)
V [libjvm.so+0xdb6696] MetaspaceClosure::do_push(MetaspaceClosure::Ref*)+0x86 (metaspaceClosure.cpp:65)
V [libjvm.so+0xdb66eb] MetaspaceClosure::push_impl(MetaspaceClosure::Ref*)+0x4b (metaspaceClosure.cpp:35)
V [libjvm.so+0xdc86a5] Method::metaspace_pointers_do(MetaspaceClosure*)+0x275 (metaspaceClosure.hpp:319)
V [libjvm.so+0xdb6696] MetaspaceClosure::do_push(MetaspaceClosure::Ref*)+0x86 (metaspaceClosure.cpp:65)
V [libjvm.so+0xdb66eb] MetaspaceClosure::push_impl(MetaspaceClosure::Ref*)+0x4b (metaspaceClosure.cpp:35)
V [libjvm.so+0xdd9904] MethodData::metaspace_pointers_do(MetaspaceClosure*)+0x1f4 (metaspaceClosure.hpp:319)
V [libjvm.so+0xdb67a1] MetaspaceClosure::finish()+0x81 (metaspaceClosure.cpp:65)
V [libjvm.so+0x495134] ArchiveBuilder::gather_klasses_and_symbols()+0x114 (archiveBuilder.cpp:284)
V [libjvm.so+0x495321] ArchiveBuilder::gather_source_objs()+0x81 (archiveBuilder.cpp:528)
V [libjvm.so+0xdbbaf9] VM_PopulateDumpSharedSpace::doit()+0x209 (metaspaceShared.cpp:687)
V [libjvm.so+0x1101b89] VM_Operation::evaluate()+0x109 (vmOperations.cpp:74)
V [libjvm.so+0x1104da8] VMThread::evaluate_operation(VM_Operation*)+0xe8 (vmThread.cpp:285)
V [libjvm.so+0x110addb] VMThread::inner_execute(VM_Operation*)+0x2eb (vmThread.cpp:429)
V [libjvm.so+0x110b0af] VMThread::run()+0x16f (vmThread.cpp:495)
V [libjvm.so+0x10661ef] Thread::call_run()+0x9f (thread.cpp:242)
V [libjvm.so+0xe57064] thread_native_entry(Thread*)+0x184 (os_linux.cpp:877)
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00007fe728108fd0
Registers:
RAX=0x00007fe728108fd0, RBX=0x00007f99d0877030, RCX=0x000000ffffffffff, RDX=0x0000000000000028
RSP=0x00007f9af43281e8, RBP=0x00007f9af4328210, RSI=0x00007f99d0877030, RDI=0x00007f99d0877030
R8 =0x00007f99d0878140, R9 =0x00007f99d00008d2, R10=0x0000000000000002, R11=0x0000000000000003
R12=0x00007f9af4328650, R13=0x00007f99d0878200, R14=0x00007f9af0122cb0, R15=0x00007f9af43282f0
RIP=0x00007f9af79ed704, EFLAGS=0x0000000000010206, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
TRAPNO=0x000000000000000e