JDK-8207914 : TestClhsdbJstackLock.java fails intermittently
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 11.0.5
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • CPU: x86_64
  • Submitted: 2018-07-19
  • Updated: 2021-02-15
  • Resolved: 2020-03-11
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.
Other
tbdResolved
Related Reports
Relates :  
Description
The following test failed due to an exception on Solaris X64
in the release config using jdk11+19 bits:

serviceability/sa/TestClhsdbJstackLock.java

The test only failed in 1 of 3 'release' bits runs so I'm
tagging this bug as intermittent. It did not fail at all in the
'fastdebug' or 'slowdebug' bits runs.

Here is a snippet from the log file: 

----------System.out:(3/207)----------
Started LingeredApp with pid 5621
/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/images/jdk/bin/jhsdb clhsdb --pid 5621
Command not valid until attached to a VM
----------System.err:(21/2216)----------
Command line: ['/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/images/jdk/bin/java' '-XX:MaxRAMPercentage=1' '-cp' '/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/14/serviceability/sa/TestClhsdbJstackLock.d:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-release/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/14/test/lib' 'LingeredAppWithLock' 'bf0c7ea1-57d4-4757-ab26-ccd4daf94b60.lck' ]
 LingeredApp stdout: [];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: classLockOwnerFound = false, classLockWaiterFound = false, objectLockOwnerFound = false, primitiveLockOwnerFound = false
        at TestClhsdbJstackLock.verifyJStackOutput(TestClhsdbJstackLock.java:98)
        at TestClhsdbJstackLock.main(TestClhsdbJstackLock.java:160)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.RuntimeException: classLockOwnerFound = false, classLockWaiterFound = false, objectLockOwnerFound = false, primitiveLockOwnerFound = false
        at TestClhsdbJstackLock.verifyJStackOutput(TestClhsdbJstackLock.java:88)
        ... 7 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: classLockOwnerFound = false, classLockWaiterFound = false, objectLockOwnerFound = false, primitiveLockOwnerFound = false
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: classLockOwnerFound = false, classLockWaiterFound = false, objectLockOwnerFound = false, primitiveLockOwnerFound = false
----------rerun:(26/3612)*----------
Comments
Failed in tier1 as well: http://java.se.oracle.com:10065/mdash/jobs/lmesnik-hs-tier1-12-8-20180826-0140-36088/tasks/iaHeXbB9Mb/results?search=status:overview
30-08-2018

Here are the logs for my jdk-11+25 Solaris-X64 sightings: $ unzip -l jdk-11+25_solx64.8207914.zip Archive: jdk-11+25_solx64.8207914.zip Length Date Time Name --------- ---------- ----- ---- 14924 08-03-2018 01:12 jdk-11+25_1/TestClhsdbJstackLock.jtr.slowdebug --------- ------- 14924 1 file
06-08-2018

Here are the logs for my jdk11+23 Solaris-X64 sightings: $ unzip -l jdk-11+23_solx64.8207914.zip Archive: jdk-11+23_solx64.8207914.zip Length Date Time Name --------- ---------- ----- ---- 14918 07-21-2018 06:48 jdk-11+23_1/TestClhsdbJstackLock.jtr.fastdebug --------- ------- 14918 1 file
24-07-2018

Here are the logs for my jdk11+19 sightings: $ unzip -l jdk11_migrate.8207914.zip Archive: jdk11_migrate.8207914.zip Length Date Time Name --------- ---------- ----- ---- 14498 06-27-2018 13:38 jdk11_migrate_3/TestClhsdbJstackLock.jtr.release --------- ------- 14498 1 file
19-07-2018