JDK-8282219 : jdk/java/lang/ProcessBuilder/Basic.java fails on AIX
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 18,19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • CPU: ppc
  • Submitted: 2022-02-22
  • Updated: 2023-01-13
  • Resolved: 2022-02-26
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 17 JDK 18 JDK 19
11.0.19-oracleFixed 17.0.3Fixed 18.0.2Fixed 19 b12Fixed
Related Reports
Duplicate :  
Relates :  
Description
Run jtreg:jdk/java/lang/ProcessBuilder/Basic.java on AIX.

The test fails with following exception:
-----------------------
java.lang.Exception: Stack trace
        at java.base/java.lang.Thread.dumpStack(Thread.java:1375)
        at Basic.fail(Basic.java:2825)
        at Basic.fail(Basic.java:2826)
        at Basic.equal(Basic.java:2832)
        at Basic.realMain(Basic.java:1886)
        at Basic.main(Basic.java:2835)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:828)
Incorrect handling of envstrings containing NULs
java.lang.Exception: Stack trace
        at java.base/java.lang.Thread.dumpStack(Thread.java:1375)
        at Basic.fail(Basic.java:2825)
        at Basic.fail(Basic.java:2826)
        at Basic.check(Basic.java:2829)
        at Basic.realMain(Basic.java:1940)
        at Basic.main(Basic.java:2835)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:828)
java.lang.AssertionError: Some tests failed
        at Basic.main(Basic.java:2837)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:828)
-----------------------

According to my investigation, this issue was happened after following change was applied.
JDK-8272600: (test) Use native "sleep" in Basic.java

test.nativepath value was added into AIX's LIBPATH during running this testcase.
On AIX, test.nativepath value should be removed from LIBPATH value before comparing the values.

Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk18u/pull/124 Date: 2022-05-07 15:46:57 +0000
07-05-2022

Fix request [18u] JDK-8272600 happens on jdk18 java/lang/ProcessBuilder/Basic.java was failed on 17u on AIX. I think this one is no risk, only a test change. Clean backport.
07-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/182 Date: 2022-02-28 14:22:37 +0000
28-02-2022

Fix request [17u] JDK-8272600 was ported to 17.0.3. java/lang/ProcessBuilder/Basic.java was failed on 17u on AIX. I think this one is no risk, only a test change. Clean backport.
28-02-2022

Can you please make a PR against jdk17u-dev?
28-02-2022

Changeset: c5c6058f Author: Ichiroh Takiguchi <itakiguchi@openjdk.org> Date: 2022-02-26 03:33:29 +0000 URL: https://git.openjdk.java.net/jdk/commit/c5c6058fd57d4b594012035eaf18a57257f4ad85
26-02-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7574 Date: 2022-02-22 12:17:59 +0000
22-02-2022