JDK-8323296 : java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java#id1 timed out
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2024-01-09
  • Updated: 2024-05-08
  • Resolved: 2024-01-12
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 21 JDK 22 JDK 23
21.0.4-oracleFixed 22Fixed 23 b06Fixed
Related Reports
Relates :  
Description
The following test timed out in the JDK23 CI:

java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java#id1

Here's a snippet from the log file:

#section:main
----------messages:(10/359)----------
command: main GetStackTraceALotWhenPinned 10000
reason: User specified action: run main/timeout=300 GetStackTraceALotWhenPinned 10000 
started: Tue Jan 09 11:48:17 GMT 2024
Mode: agentvm
Agent id: 42
Timeout signalled after 1200 seconds
Timeout information:
--- Timeout information end.
finished: Tue Jan 09 12:10:37 GMT 2024
elapsed time (seconds): 1340.734
----------configuration:(12/1562)----------

<snip>

----------System.out:(1784/83352)----------
2024-01-09T11:48:17.663232Z 9679 remaining ...
2024-01-09T11:48:18.165192Z 9571 remaining ...
2024-01-09T11:48:18.672252Z 9351 remaining ...

<snip>

2024-01-09T12:09:16.675016Z 24 remaining ...
2024-01-09T12:09:17.176029Z 13 remaining ...
2024-01-09T12:09:17.677041Z 8 remaining ...
----------System.err:(3/35)----------

JavaTest Message: Test complete.

result: Error. Agent error: java.lang.Exception: Agent 42 timed out with a timeout of 1200 seconds; check console log for any additional details
Comments
[jdk21u-fix-request] Approval Request from Aleksey Shipilëv Follow-up test fix for JDK-8322818. In mainline since Jan 2023. Test-only change. The fix is part of large atomic change, see 21u PR.
15-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/245 Date: 2024-02-08 11:17:02 +0000
15-02-2024

The fix for this bug is integrated in jdk-23+6-317.
16-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk22/pull/72 Date: 2024-01-13 18:08:03 +0000
15-01-2024

Changeset: e72723dc Author: Alan Bateman <alanb@openjdk.org> Date: 2024-01-12 08:33:27 +0000 URL: https://git.openjdk.org/jdk/commit/e72723dc5c61292303a992319794e5edb28a4e98
12-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17353 Date: 2024-01-10 20:25:21 +0000
11-01-2024

For the macos-x64-debug builds, the overwhelming case is the unmounted case, so Continuation::getStackTrace, e.g. in one run there are 15 million samples where the target is unmounted, 13k samples when the target is mounted, and 14k samples where the target is in a transition state so its stack trace can't be sampled and has to be retried. When unmounted, the target is disabled from being scheduled so this is why it makes such slow progress on some of these test machines.
09-01-2024