jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8313235: TestClhsdbJstackLock.java failed with '^\s+- waiting to lock <0x[0-9a-f]+> \(a java\.lang\.Class for LingeredAppWithLock\)$' missing from stdout/stderr

Open plummercj opened this issue 1 year ago • 4 comments
trafficstars

Once the main thread has detected that the spawned thread is in the BLOCKED state, the spawned thread's LingeredAppWithLock.lockMethod() should be visible on the top of the stack, but it is not, so the "waiting to lock" message is missing from the stack trace.

I think the explanations mentioned in JDK-8335124 and JDK-8269881 apply here also. The state of the thread has moved to BLOCKED, but the thread still needs to finish making an OS call to actually become blocked and the thread become idle. During that time we may not be able to get an accurate stack trace. In this case probably SP has not been flushed, so we are not seeing the lockMethod() frame, which should appear at the top of the stack.

A short delay has been added after all threads have entered the desired state to make sure they have fully reached the desired state and are now idle.

Tested with Tier1 CI and all svc test tasks for tier2 and tier5.


Progress

  • [x] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8313235: TestClhsdbJstackLock.java failed with '^\s+- waiting to lock <0x[0-9a-f]+> (a java.lang.Class for LingeredAppWithLock)$' missing from stdout/stderr (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19953/head:pull/19953
$ git checkout pull/19953

Update a local copy of the PR:
$ git checkout pull/19953
$ git pull https://git.openjdk.org/jdk.git pull/19953/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 19953

View PR using the GUI difftool:
$ git pr show -t 19953

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19953.diff

Webrev

Link to Webrev Comment

plummercj avatar Jun 28 '24 22:06 plummercj

:wave: Welcome back cjplummer! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

bridgekeeper[bot] avatar Jun 28 '24 22:06 bridgekeeper[bot]

@plummercj This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8313235: TestClhsdbJstackLock.java failed with  '^\s+- waiting to lock <0x[0-9a-f]+> \(a java\.lang\.Class for LingeredAppWithLock\)$' missing from stdout/stderr

Reviewed-by: kevinw, sspitsyn, lmesnik

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 239 new commits pushed to the master branch:

  • 21a6cf848da00c795d833f926f831c7aea05dfa3: 8336587: failure_handler lldb command times out on macosx-aarch64 core file
  • 78cc0f9569535c72900cf4617e22cef99f695e61: 8336091: Fix HTML warnings in the generated HTML files
  • bcb5e69505f6cc8a4f323924cd2c58e630595fc0: 8335921: Fix HotSpot VM build without JVMTI
  • 10186ff48fe67aeb83c028b47f6b7e5105513cf3: 8336300: DateFormatSymbols#getInstanceRef returns non-cached instance
  • 7ec55df34af98e9a80381dba7f7f2127f2248f73: 8336638: Parallel: Remove redundant mangle in PSScavenge::invoke
  • 6df7acbc74922d297852044596045a8b32636423: 8299080: Wrong default value of snippet lang attribute
  • 871362870ea8dc5f4ac186876e91023116891a5b: 8334217: [AIX] Misleading error messages after JDK-8320005
  • 67979eb0771ff834d6d3d18ba5a8bfe161cfc2ce: 8334781: JFR crash: assert(((((JfrTraceIdBits::load(klass)) & ((JfrTraceIdEpoch::this_epoch_method_and_class_bits()))) != 0))) failed: invariant
  • d41d2a7a82cb6eff17396717e2e14139ad8179ba: 8334502: gtest/GTestWrapper.java fails on armhf due to LogDecorations.iso8601_utctime_test
  • 59843f4a65c18b9a9cc32d4146e569b0e8c89baf: 8336040: Missing closing anchor element in Docs.gmk
  • ... and 229 more: https://git.openjdk.org/jdk/compare/b5d589623c174757e946011495f771718318f1cc...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

openjdk[bot] avatar Jun 28 '24 22:06 openjdk[bot]

@plummercj The following label will be automatically applied to this pull request:

  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

openjdk[bot] avatar Jun 28 '24 22:06 openjdk[bot]

Webrevs

mlbridge[bot] avatar Jul 01 '24 08:07 mlbridge[bot]

@plummercj This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Aug 15 '24 01:08 bridgekeeper[bot]

@plummercj This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

bridgekeeper[bot] avatar Sep 12 '24 01:09 bridgekeeper[bot]