JDK-8371749 : New test serviceability/jvmti/events/VMDeath/AllocatingInVMDeath/TestAllocatingInVMDeath.java fails with -Xcheck:jni
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-11-13
  • Updated: 2025-11-24
  • Resolved: 2025-11-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b25Fixed
Related Reports
Causes :  
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S26970/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/13f6ede0-4254-441b-9742-c8ce4fff56c9/runs/412c68dc-ab9c-45d4-8209-0c89766e3e3e/workspace/open/src/hotspot/share/runtime/interfaceSupport.inline.hpp:192), pid=171981, tid=171982
#  assert(!_thread->is_pending_jni_exception_check()) failed: Pending JNI Exception Check
#
# JRE version: Java(TM) SE Runtime Environment (26.0+24) (fastdebug build 26-ea+24-2454)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-ea+24-2454, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x120fce4]  JvmtiExport::post_vm_death()+0x2bc
#
# 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/526fbd26-20de-495c-9a19-a04adc16f7d1-S36440/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a8cfdccd-d9da-40b9-9ff1-f64b2dce270d/runs/f81e6ed9-1546-400d-af8f-507a49afeb56/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1/scratch/2/core.171981)
#
# 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=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/25/37/bundles/linux-aarch64/jdk-25_linux-aarch64_bin.tar.gz/jdk-25 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S36440/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a8cfdccd-d9da-40b9-9ff1-f64b2dce270d/runs/f81e6ed9-1546-400d-af8f-507a49afeb56/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1/tmp -Xcheck:jni -agentlib:TestAllocatingInVMDeath --enable-native-access=ALL-UNNAMED -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI DoWork

Host:  8 cores, 30G, Oracle Linux Server release 9.6
Time: Thu Nov 13 00:45:48 2025 UTC elapsed time: 0.278515 seconds (0d 0h 0m 0s)

---------------  T H R E A D  ---------------

Current thread (0x0000ffff8c042030):  JavaThread "DestroyJavaVM"        [_thread_in_vm, id=171982, stack(0x0000ffff91761000,0x0000ffff9195f000) (2040K)]

Stack: [0x0000ffff91761000,0x0000ffff9195f000],  sp=0x0000ffff9195d500,  free space=2033k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x120fce4]  JvmtiExport::post_vm_death()+0x2bc  (interfaceSupport.inline.hpp:192)
V  [libjvm.so+0xeb9b9c]  before_exit(JavaThread*, bool)+0x17c  (java.cpp:485)
V  [libjvm.so+0x18923f0]  Threads::destroy_vm()+0x1c8  (threads.cpp:995)
V  [libjvm.so+0x1002690]  jni_DestroyJavaVM+0xa4  (jni.cpp:3743)
C  [libjli.so+0x40cc]  JavaMain+0x1ec  (java.c:668)
C  [libjli.so+0x7b94]  ThreadJavaMain+0xc  (java_md.c:646)
C  [libc.so.6+0x80b50]  start_thread+0x300
Comments
Changeset: 155d7df5 Branch: master Author: Leonid Mesnik <lmesnik@openjdk.org> Date: 2025-11-13 23:54:07 +0000 URL: https://git.openjdk.org/jdk/commit/155d7df555fcebc318db89408ef0fffbd95414a0
13-11-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/28280 Date: 2025-11-13 02:51:35 +0000
13-11-2025