JDK-8313570 : Test WaitNotifySuspendedVThreadTest.java crashed: stuck in JvmtiVTMSTransitionDisabler::start_VTMS_transition
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • Submitted: 2023-08-01
  • Updated: 2025-06-19
  • Resolved: 2025-06-19
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
26Resolved
Related Reports
Relates :  
Relates :  
Description
Test: serviceability/jvmti/vthread/WaitNotifySuspendedVThreadTest/WaitNotifySuspendedVThreadTest.java

#  Internal Error (c:\sb\prod\1690838547\workspace\open\src\hotspot\share\prims\jvmtiThreadState.cpp:457), pid=40836, tid=60704
#  fatal error: stuck in JvmtiVTMSTransitionDisabler::start_VTMS_transition
Comments
Closing this as CNR. It has not been reproduced for 2+ years.
19-06-2025

The plan is to get rid of this trap in the JvmtiVTMSTransitionDisabler::start_VTMS_transition() as it played its role and not needed anymore. This trap can be fired because of any deadlock in the VM process throwing a false blame at the VTMS transition mechanism.
15-10-2024

S12Y triage team: Re-doing ILW analysis. ILW=MLH=P4
31-07-2024

Here's the crashing thread's stack from the jdk-23+11-757-tier5 sighting: com/sun/jdi/ThreadMemoryLeakTest.java --------------- T H R E A D --------------- Current thread (0x0000fffd000118d0): JavaThread "ForkJoinPool-1-worker-7" daemon [_thread_in_vm, id=926463, stack(0x0000fffd1f009000,0x0000fffd1f207000) (2040K)] Stack: [0x0000fffd1f009000,0x0000fffd1f207000], sp=0x0000fffd1f204fd0, free space=2031k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x1084d64] JvmtiVTMSTransitionDisabler::start_VTMS_transition(_jobject*, bool)+0x4d4 (jvmtiThreadState.cpp:483) V [libjvm.so+0x147c55c] SharedRuntime::notify_jvmti_vthread_mount(oopDesc*, unsigned char, JavaThread*)+0xcc (sharedRuntime.cpp:655) Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) v ~RuntimeStub::_notify_jvmti_vthread_mount 0x0000ffff94300894 J 564 c2 java.lang.VirtualThread.mount()V java.base@23-ea (69 bytes) @ 0x0000ffff94720aa0 [0x0000ffff94720900+0x00000000000001a0] j java.lang.VirtualThread.runContinuation()V+65 java.base@23-ea J 661 c2 java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;I)V java.base@23-ea (93 bytes) @ 0x0000ffff9476f42c [0x0000ffff9476f200+0x000000000000022c] J 731 c2 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;JI)J java.base@23-ea (301 bytes) @ 0x0000ffff94724fa8 [0x0000ffff94724cc0+0x00000000000002e8] j java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V+62 java.base@23-ea j java.util.concurrent.ForkJoinWorkerThread.run()V+31 java.base@23-ea v ~StubRoutines::call_stub 0x0000ffff94159180
18-02-2024

ILW=LLM=P5
04-08-2023

This can be a side affect of any deadlock. So, such manifestations can be unrelated.
02-08-2023

-------------- T H R E A D --------------- Current thread (0x0000026201582870): JavaThread "ForkJoinPool-1-worker-1" daemon [_thread_in_vm, id=60704, stack(0x00000067a9d00000,0x00000067a9e00000) (1024K)] Stack: [0x00000067a9d00000,0x00000067a9e00000] Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [jvm.dll+0xc5bc01] os::win32::platform_print_native_stack+0x101 (os_windows_x86.cpp:236) V [jvm.dll+0xeee10c] VMError::report+0x146c (vmError.cpp:991) V [jvm.dll+0xef0505] VMError::report_and_die+0x645 (vmError.cpp:1797) V [jvm.dll+0x54f75e] report_fatal+0x7e (debug.cpp:212) V [jvm.dll+0xa5fd8c] JvmtiVTMSTransitionDisabler::start_VTMS_transition+0x2fc (jvmtiThreadState.cpp:457) V [jvm.dll+0x8fef50] JVM_VirtualThreadMount+0x180 (jvm.cpp:3957) C 0x000002622d617d4f The last pc belongs to native nmethod (printed below). Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J 5648 java.lang.VirtualThread.notifyJvmtiMount(Z)V java.base@21-ea (0 bytes) @ 0x000002622d617cb8 [0x000002622d617c40+0x0000000000000078] J 5496 c1 java.lang.VirtualThread.runContinuation()V java.base@21-ea (123 bytes) @ 0x000002622602ff74 [0x000002622602fb20+0x0000000000000454] J 5644 c1 java.lang.VirtualThread$$Lambda+0x000002623b04ebf8.run()V java.base@21-ea (8 bytes) @ 0x000002622606f594 [0x000002622606f4e0+0x00000000000000b4] J 5642 c1 java.util.concurrent.ForkJoinTask.doExec()I java.base@21-ea (37 bytes) @ 0x000002622606ebfc [0x000002622606ea40+0x00000000000001bc] J 5640 c1 java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V java.base@21-ea (83 bytes) @ 0x000002622606dea4 [0x000002622606ddc0+0x00000000000000e4] J 5636 c1 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;II)I java.base@21-ea (263 bytes) @ 0x000002622606caf4 [0x000002622606c2e0+0x0000000000000814] J 5633 c1 java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V java.base@21-ea (60 bytes) @ 0x000002622606baf4 [0x000002622606b900+0x00000000000001f4] J 5629 c1 java.util.concurrent.ForkJoinWorkerThread.run()V java.base@21-ea (180 bytes) @ 0x0000026226066de4 [0x0000026226066b40+0x00000000000002a4] v ~StubRoutines::call_stub 0x000002622c8a107d Command Line: -Dtest.vm.opts=-XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk\20\36\bundles\windows-x64\jdk-20_windows-x64_bin.zip\jdk-20 -Djava.io.tmpdir=c:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\tmp -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=4.16667 -J-Dtest.boot.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk\20\36\bundles\windows-x64\jdk-20_windows-x64_bin.zip\jdk-20 -J-Djava.io.tmpdir=c:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\tmp -Dtest.compiler.opts= -Dtest.java.opts=-Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:+DeoptimizeALot -Dtest.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\windows-x64-debug.jdk\jdk-21\fastdebug -Dcompile.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\windows-x64-debug.jdk\jdk-21\fastdebug -Dtest.timeout.factor=10.0 -Dtest.nativepath=c:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\windows-x64-debug.test\hotspot\jtreg\native -Dtest.root=C:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\src.full\open\test\hotspot\jtreg -Dtest.name=serviceability/jvmti/vthread/WaitNotifySuspendedVThreadTest/WaitNotifySuspendedVThreadTest.java -Dtest.file=C:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\src.full\open\test\hotspot\jtreg\serviceability\jvmti\vthread\WaitNotifySuspendedVThreadTest\WaitNotifySuspendedVThreadTest.java -Dtest.src=C:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\src.full\open\test\hotspot\jtreg\serviceability\jvmti\vthread\WaitNotifySuspendedVThreadTest -Dtest.src.path=C:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\src.full\open\test\hotspot\jtreg\serviceability\jvmti\vthread\WaitNotifySuspendedVThreadTest;C:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\src.full\open\test\lib -Dtest.classes=C:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\classes\0\serviceability\jvmti\vthread\WaitNotifySuspendedVThreadTest\WaitNotifySuspendedVThreadTest.d -Dtest.class.path=C:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\classes\0\serviceability\jvmti\vthread\WaitNotifySuspendedVThreadTest\WaitNotifySuspendedVThreadTest.d;C:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\classes\0\test\lib -Dtest.class.path.prefix=C:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\classes\0\serviceability\jvmti\vthread\WaitNotifySuspendedVThreadTest\WaitNotifySuspendedVThreadTest.d;C:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\src.full\open\test\hotspot\jtreg\serviceability\jvmti\vthread\WaitNotifySuspendedVThreadTest;C:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\classes\0\test\lib -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk\20\36\bundles\windows-x64\jdk-20_windows-x64_bin.zip\jdk-20 -Djava.io.tmpdir=c:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\tmp -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+TieredCompilation -XX:+DeoptimizeALot -Djava.library.path=c:\ade\mesos\work_dir\jib-master\install\jdk-21+34-2495\windows-x64-debug.test\hotspot\jtreg\native -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -agentlib:WaitNotifySuspendedVThread com.sun.javatest.regtest.agent.MainWrapper C:\sb\prod\1690893464\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\serviceability\jvmti\vthread\WaitNotifySuspendedVThreadTest\WaitNotifySuspendedVThreadTest.d\main.0.jta
01-08-2023

Similar failure mode in JDK-8311901 was blamed on a test issue.
01-08-2023