JDK-8295355 : serviceability/jvmti/SuspendWithCurrentThread/SuspendWithCurrentThread.java timed out
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 20
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux,os_x
  • CPU: x86_64,aarch64
  • Submitted: 2022-10-14
  • Updated: 2025-05-21
  • Resolved: 2025-05-21
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 25
25Resolved
Related Reports
Duplicate :  
Description
The following test timed out in the JDK20 CI:

serviceability/jvmti/SuspendWithCurrentThread/SuspendWithCurrentThread.java

Here's a snippet from the log file:

#section:main
----------messages:(8/425)----------
command: main -agentlib:SuspendWithCurrentThread SuspendWithCurrentThread SuspenderIndex=first
reason: User specified action: run main/othervm/native -agentlib:SuspendWithCurrentThread SuspendWithCurrentThread SuspenderIndex=first 
started: Fri Oct 14 14:19:35 UTC 2022
Mode: othervm [/othervm specified]
Timeout information:
--- Timeout information end.
finished: Fri Oct 14 14:28:22 UTC 2022
elapsed time (seconds): 526.46
----------configuration:(0/0)----------
----------System.out:(41/1412)----------

Agent_OnLoad started
Agent_OnLoad finished
Loaded library: SuspendWithCurrentThread
Main: suspenderIndex: 0
Main: started
Main: starting tested threads
Main: tested threads started

registerTestedThreads: started
registerTestedThreads: finished
Main: trigger ThreadToSuspend#0 to suspend all tested threads including itself
Main: checking all tested threads have been suspended
checkTestedThreadsSuspended: started
thread #0 has not been suspended yet: # state: (0x5)
thread #0 has not been suspended yet: # state: (0x5)
ThreadToSuspend#0: before suspending all tested threads including myself

suspendTestedThreads: started by thread: ThreadToSuspend#0
suspendTestedThreads: before JVMTI SuspendThreadList
thread #0 has not been suspended yet: # state: (0x5)
checkTestedThreadsSuspended: finished
Main: resuming all tested threads

resumeTestedThreads: started
resumeTestedThreads: before JVMTI ResumeThreadList
resumeTestedThreads: check and print ResumeThreadList results:
  thread #0 resume errcode: (0)
  thread #1 resume errcode: (0)
  thread #2 resume errcode: (0)
  thread #3 resume errcode: (0)
  thread #4 resume errcode: (0)
  thread #5 resume errcode: (0)
  thread #6 resume errcode: (0)
  thread #7 resume errcode: (0)
  thread #8 resume errcode: (0)
  thread #9 resume errcode: (0)
resumeTestedThreads: finished
Main: tested threads finished
Main: joining tested threads
Timeout refired 480 times
----------System.err:(0/0)----------
----------rerun:(37/7377)*----------

Comments
I'm closing this a dup of JDK-8316682 as it is a self-suspend related issue. This intermittent failure is hard to reproduce. Also, all the mach5 links in the comments can not be resolved anymore to get the tested threads stack traces. So, it is not easy to prove this is a dup of JDK-8316682. Please, re-open the bug if this deadlock is still observable.
21-05-2025