JDK-8219652 : [aix] Tests failing with JNI attach problems.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • CPU: ppc
  • Submitted: 2019-02-25
  • Updated: 2023-12-08
  • Resolved: 2023-10-04
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
21.0.2Fixed 22 b18Fixed
Related Reports
Relates :  
Relates :  
Description
We see four tests failing on AIX because they can not attach:

runtime/jni/terminatedThread/TestTerminatedThread.java

These terminate with "TEST FAILURE: AttachCurrentThread() returns: -1"
vmTestbase/nsk/jvmti/scenarios/jni_interception/JI05/ji05t001/TestDescription.java 
vmTestbase/nsk/jvmti/scenarios/jni_interception/JI06/ji06t001/TestDescription.java 
vmTestbase/nsk/jvmti/SetJNIFunctionTable/setjniftab001/TestDescription.java

The tests just fail reproducible if executed.

Comments
[jdk21u-fix-request] Approval Request from Christoph Langer Requesting backport of the test fix of JDK-8219652 for better test coverage on AIX. I melted two minor exclude list corrections into the main change. Testing: GHA and SAP CI. Risk is low.
11-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/240 Date: 2023-10-11 06:19:07 +0000
11-10-2023

Changeset: 0b0f8b55 Author: Varada M <mvarada2000@gmail.com> Committer: Amit Kumar <amitkumar@openjdk.org> Date: 2023-10-04 06:07:14 +0000 URL: https://git.openjdk.org/jdk/commit/0b0f8b55a6becff269ecf7aa19db12e998e238cd
04-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15924 Date: 2023-09-26 13:49:02 +0000
26-09-2023

This is likely the same issue addressed by JDK-8303549 for another test - the default pthread stack size is too small. It also appears the minimum stack size for this platform is set too small.
31-05-2023

Thanks for the clarification. 'hotspot/runtime' is the right place.
05-03-2019

These tests are exercising jni AttachCurrentThread. Not jdi attach-on-demand.
05-03-2019

If these are really attach-on-demand mechanism issues, then this bug belongs in hotspot/svc and not hotspot/runtime or hotspot/jvmti.
05-03-2019