JDK-8173941 : SA does not work if executable is DSO
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2017-02-05
  • Updated: 2018-01-17
  • Resolved: 2017-02-13
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 10 JDK 8 JDK 9
10Fixed 8u152Fixed 9 b159Fixed

In modern Linux e.g. Fedora 25, executables are built as DSO for security [1].
java command in OpenJDK which is provided by distribution is also DSO.
However, SA does not work with DSO executables.

Currently, OpenJDK 8 in Fedora25 is built as DSO.
So I want to contribute this patch to JDK 8 or later release.

[1] https://fedoraproject.org/wiki/Packaging:Guidelines#PIE
noreg-hard. Normal OpenJDK build processes do not build executables as DSO's. This would need a custom build of the JDK to be able to exercise the test.

Moved to hotspot->svc which I think is the right component for the SA.

Suggested fix