JDK-8217473 : SA: Tests using ClhsdbLauncher fail on SAP docker containers
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2019-01-22
  • Updated: 2022-03-18
  • Resolved: 2019-02-01
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 11 JDK 13
11.0.16Fixed 13 b07Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
ClhsdbLauncher currently errors out if SA cannot attach to a target process unless we are dealing with macOS. The SA tests using ClhsdbLauncher currently fail on docker containers on Linux since the container needs to be started with strace capabilities. (Would need to do docker run with --cap-add=SYS_PTRACE for attach to work). So modifying ClhsdbLauncher to skip the test with jtreg.SkippedException if Platform.shouldSAAttach() returns false and this is not macOS where we can add privileges. 
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/913 Date: 2022-03-18 07:24:20 +0000
18-03-2022

ix request [11u] I backport this to improve mac testing and to fix the failure of ClhsdbRegionDetailsScanOopsForG1.java No risk, only a test change. I had to do some trivial resolves. SAP nighlty testing passed.
18-03-2022

Git URL: https://github.com/openjdk/jdk/commit/55369945b94003e96c841e5969add992a86c0156
14-03-2022

URL: http://hg.openjdk.java.net/jdk/jdk/rev/bb40a5303c84 User: jgeorge Date: 2019-02-01 06:00:56 +0000
01-02-2019

https://mail.openjdk.java.net/pipermail/serviceability-dev/2019-January/026744.html
30-01-2019

The issue can be observed if the SA tests using ClhsdbLauncher is run without 'sudo' on Linux.
30-01-2019

As a part of JDK-8187293, would check if we can enable these tests on docker with sudo.
22-01-2019