JDK-8308985 : vmTestbase/nsk/jvmti/scenarios/allocation/AP04/ap04t002/TestDescription.java stuck during VTMS_transition_disable_for_all
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2023-05-27
  • Updated: 2023-07-02
  • Resolved: 2023-05-30
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Tests
vmTestbase/nsk/jvmti/scenarios/allocation/AP04/ap04t001/TestDescription.java
vmTestbase/nsk/jvmti/scenarios/allocation/AP04/ap04t002/TestDescription.java

stuck with virtual thread factory while iterating objects:
Stack: [0x0000fffaefc00000,0x0000fffaefe00000],  sp=0x0000fffaefdfdfa0,  free space=2039k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x10a1760]  JvmtiVTMSTransitionDisabler::VTMS_transition_disable_for_all()+0x210  (jvmtiThreadState.cpp:358)
V  [libjvm.so+0x10919a8]  JvmtiTagMap::iterate_over_reachable_objects(jvmtiIterationControl (*)(jvmtiHeapRootKind, long, long, long*, void*), jvmtiIterationControl (*)(jvmtiHeapRootKind, long, long, long*, long, int, _jmethodID*, int, void*), jvmtiIterationControl (*)(jvmtiObjectReferenceKind, long, long, long*, long, int, void*), void const*)+0x118  (jvmtiTagMap.cpp:2977)
V  [libjvm.so+0x103abe4]  JvmtiEnv::IterateOverReachableObjects(jvmtiIterationControl (*)(jvmtiHeapRootKind, long, long, long*, void*), jvmtiIterationControl (*)(jvmtiHeapRootKind, long, long, long*, long, int, _jmethodID*, int, void*), jvmtiIterationControl (*)(jvmtiObjectReferenceKind, long, long, long*, long, int, void*), void const*)+0x74  (jvmtiEnv.cpp:2197)
V  [libjvm.so+0xfe5e24]  jvmti_IterateOverReachableObjects+0x1c4  (jvmtiEnter.cpp:1984)
C  [libap04t002.so+0xd770]  Java_nsk_jvmti_scenarios_allocation_AP04_ap04t002_runIterateOverReachableObjects+0xb0  (jvmti.h:2096)
j  nsk.jvmti.scenarios.allocation.AP04.ap04t002.runIterateOverReachableObjects()V+0
j  nsk.jvmti.scenarios.allocation.AP04.ap04t002AllReachachableObjectsIterator.runIteration()V+0
j  nsk.jvmti.scenarios.allocation.AP04.ap04t002Thread.run()V+30
v  ~StubRoutines::call_stub 0x0000ffff8009b16c
V  [libjvm.so+0xd70124]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x470  (javaCalls.cpp:415)
V  [libjvm.so+0xd706c0]  JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x2b0  (javaCalls.cpp:329)
V  [libjvm.so+0xd708cc]  JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x6c  (javaCalls.cpp:191)
V  [libjvm.so+0xec0200]  thread_entry(JavaThread*, JavaThread*)+0xa0  (jvm.cpp:2919)
V  [libjvm.so+0xda7aec]  JavaThread::thread_main_inner()+0xec  (javaThread.cpp:719)
V  [libjvm.so+0x15f6874]  Thread::call_run()+0xb0  (thread.cpp:217)
V  [libjvm.so+0x1352fe0]  thread_native_entry(Thread*)+0x130  (os_linux.cpp:775)
C  [libpthread.so.0+0x7908]  start_thread+0x188
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  nsk.jvmti.scenarios.allocation.AP04.ap04t002.runIterateOverReachableObjects()V+0
j  nsk.jvmti.scenarios.allocation.AP04.ap04t002AllReachachableObjectsIterator.runIteration()V+0
j  nsk.jvmti.scenarios.allocation.AP04.ap04t002Thread.run()V+30
v  ~StubRoutines::call_stub 0x0000ffff8009b16c

Comments
Also JDK-8309069 may be related (or else "yet another virtual thread incompatible test").
29-05-2023

Please see JDK-8308978, which appears to be the same issue. I've also seen the following tests fail: vmTestbase/nsk/jdi/ObjectReference/referringObjects/referringObjects001/referringObjects001.java vmTestbase/nsk/jdi/ReferenceType/instances/instances001/instances001.java vmTestbase/nsk/jdi/ReferenceType/instances/instances003/instances003.java vmTestbase/nsk/jdi/ReferenceType/instances/instances004/TestDescription.java vmTestbase/nsk/jdi/MonitorWaitedRequest/addThreadFilter/TestDescription.java vmTestbase/nsk/jdi/stress/serial/monitorEvents002/TestDescription.java vmTestbase/nsk/jdi/stress/serial/heapwalking001/TestDescription.java vmTestbase/nsk/jdi/stress/serial/heapwalking002/TestDescription.java vmTestbase/nsk/jdi/stress/serial/mixed001/TestDescription.java Serguei says he has a fix.
28-05-2023

Seems there are more tests failing: vmTestbase/nsk/jdi/stress/serial/mixed002/TestDescription.java vmTestbase/nsk/jdi/VirtualMachine/instanceCounts/instancecounts002/TestDescription.java vmTestbase/nsk/jdi/stress/serial/heapwalking002/TestDescription.java
28-05-2023