JDK-8211854 : [aix] java/net/ServerSocket/AcceptInheritHandle.java fails: read times out
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • CPU: ppc
  • Submitted: 2018-10-08
  • Updated: 2024-07-15
  • Resolved: 2024-06-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 21 JDK 23 JDK 24
21.0.5Fixed 23Fixed 24 b03Fixed
Related Reports
Relates :  
Description
On aix, this test fails with "RuntimeException: Failed: should get reset, not java.net.SocketTimeoutException: Read timed out"
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/814 Date: 2024-07-02 12:08:07 +0000
09-07-2024

Fix request (21u): Test can be enabled on JDK21 as well. No risk. Tested in SAP nightlies.
03-07-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19743 Date: 2024-06-17 08:28:23 +0000
17-06-2024

Changeset: 9d8439c1 Author: Christoph Langer <clanger@openjdk.org> Date: 2024-06-13 13:16:38 +0000 URL: https://git.openjdk.org/jdk/commit/9d8439c10780c3a0169c2675955a0506518f44fb
13-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19692 Date: 2024-06-13 09:55:05 +0000
13-06-2024

The issue is gone on our systems for OpenJDK head, so let's remove the problem listing.
13-06-2024

We use xlC 12. We plan to go to 15 as soon as we get it because of the C++14 JEP. But do you really think this is a compiler issue? I would think it's some insufficiency in the network implementation that can't cope with some unexpected network setup? IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72) Version: 12.01.0000.0019 Server process listening on 36029, connecting... Server process said kill me! serverProcess exitCode:143 ----------System.err:(15/976)---------- java.lang.RuntimeException: Failed: should get reset, not java.net.SocketTimeoutException: Read timed out at AcceptInheritHandle.test(AcceptInheritHandle.java:123) at AcceptInheritHandle.testJavaNetServerSocket(AcceptInheritHandle.java:82) at AcceptInheritHandle.mainEntry(AcceptInheritHandle.java:77) at AcceptInheritHandle.main(AcceptInheritHandle.java:73) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298) at java.base/java.lang.Thread.run(Thread.java:835) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test
20-12-2018

Goetz, I have managed to obtain an AIX 7.1 system and built the latest OpenJDK code on it. Using that the above test still passes. This is now very confusing as it works 100% for me but not for you. Only other difference I can think of may be the xlc versions. What version of xlC code are you using. My systems (AIX 7.1 and AIX 7.2) both use xlC 13.1.3.
20-12-2018

Unfortunately I do not have access to an AIX 7.1 system at this time. I will have a look at the jtr files you sent and see if I can discover anything from them. I will also see if I can get access to and AIX 7.1 system in order to be able to test on that system also.
13-12-2018

I checked two 7.2 machines, it is passing there. I checked two 7.1 machines, it is failing there right away on the first try. The test used to be run on 7.1 machines.
13-12-2018

Goetz, what version of AIX are you running this test on? I am using AIX 7.2 and this test passes on both JDK11 and JDK12. So I am curious as to what the difference between our 2 systems might be.
11-12-2018