JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.foreign
  • Affected Version: 22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • Submitted: 2023-10-10
  • Updated: 2023-11-30
  • Resolved: 2023-11-22
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 22
22 b26Fixed
Description
The FFI tests use symbol lookup to find functions like "malloc" and "free".
LINKER.defaultLookup() doesn't find them (NativeTestHelper.java). AIX specific handling of required symbols is needed.
Comments
Changeset: 25cebe8c Author: suchismith1993 <suchismith1993@gmail.com> Committer: Amit Kumar <amitkumar@openjdk.org> Date: 2023-11-22 15:43:34 +0000 URL: https://git.openjdk.org/jdk/commit/25cebe8c3ed5c03b4da2da5bb2f7637c8cd40581
22-11-2023

Suchi has added some explanations to the PR. He doesn't have an OpenJDK user, yet. And I'm not familiar enough with it.
17-11-2023

Please explain the underlying issue and why/how AIX works differently to the other platforms. Thanks
09-11-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16414 Date: 2023-10-30 10:54:48 +0000
08-11-2023

The test/jdk/java/foreign tests can run after this is fixed (https://github.com/openjdk/jdk/pull/16414) and with the solution of JDK-8318175, there are only the 5 of 96 tests failing due to other problems: java/foreign/TestUpcallAsync.java java/foreign/enablenativeaccess/TestEnableNativeAccess.java java/foreign/enablenativeaccess/TestEnableNativeAccessJarManifest.java java/foreign/loaderLookup/TestLoaderLookupJNI.java java/foreign/stackwalk/TestAsyncStackWalk.java#default_gc They are separate issues.
02-11-2023

On behalf of Suchismith Roy who doesn't have an OpenJDK user, yet.
10-10-2023