JDK-8269772 : [macos-aarch64] test compilation failed with "SocketException: No buffer space available"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2021-07-01
  • Updated: 2022-10-31
  • Resolved: 2021-07-07
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
11.0.16-oracleFixed 17 b31Fixed 18Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The following test failed in the JDK18 CI:

java/net/httpclient/websocket/PendingPongBinaryClose.java

Here's a snippet from the log file:

#section:compile
----------messages:(6/332)----------
command: compile /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket/DummyWebSocketServer.java
reason: .class file out of date or does not exist
Additional options from @modules: --add-modules java.net.http
Mode: agentvm
Agent id: 1
elapsed time (seconds): 0.015
----------configuration:(14/1685)----------
Boot Layer (javac runtime environment)
  class path: /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/javatest.jar 
              /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jtreg.jar 
  patch:      java.base /System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/patches/java.base

javac compilation environment
  add modules: java.net.http
  source path: /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket
  class path:  /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket
               /System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/classes/3/java/net/httpclient/websocket/PendingPongBinaryClose.d
               /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/testng.jar
               /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jcommander.jar
               /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/guice.jar

----------rerun:(38/6490)*----------
cd /System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/scratch/1 && \\
HOME=/var/folders/z6/vyrntc_x631cxw_bz68jxrzw0000gp/T/sparky-temp-home-5515201700821304705/user_home \\
JDK8_HOME=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/17/24/bundles/macos-aarch64/jdk-17_macos-aarch64_bin.tar.gz/jdk-17.jdk/Contents/Home \\
JIB_DATA_DIR=/System/Volumes/Data/mesos/work_dir/jib-master \\
JIB_HOME=/System/Volumes/Data/mesos/work_dir/jib-master/install/com/oracle/java/jib/jib/3.0-SNAPSHOT/jib-3.0-20210618.184637-471-distribution.zip/jib-3.0-SNAPSHOT-distribution \\
JTREG_KEYWORDS="!headful" \\
JTREG_VERBOSE=fail,error,time \\
LC_ALL=C \\
PATH=/bin:/usr/bin:/usr/sbin \\
TEST_IMAGE_DIR=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/macosx-aarch64.test \\
    /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/macosx-aarch64.jdk/jdk-18.jdk/Contents/Home/bin/javac \\
        -J-Xmx768m \\
        -J-XX:MaxRAMPercentage=6.25 \\
        -J-Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/tmp \\
        -J-ea \\
        -J-esa \\
        -J-Djava.library.path=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/macosx-aarch64.test/jdk/jtreg/native \\
        -J-Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=6.25 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/tmp -ea -esa' \\
        -J-Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=6.25 -J-Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/tmp -J-ea -J-esa' \\
        -J-Dtest.compiler.opts= \\
        -J-Dtest.java.opts= \\
        -J-Dtest.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/macosx-aarch64.jdk/jdk-18.jdk/Contents/Home \\
        -J-Dcompile.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/macosx-aarch64.jdk/jdk-18.jdk/Contents/Home \\
        -J-Dtest.timeout.factor=4.0 \\
        -J-Dtest.nativepath=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/macosx-aarch64.test/jdk/jtreg/native \\
        -J-Dtest.root=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk \\
        -J-Dtest.name=java/net/httpclient/websocket/PendingPongBinaryClose.java \\
        -J-Dtest.file=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket/PendingPongBinaryClose.java \\
        -J-Dtest.src=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket \\
        -J-Dtest.src.path=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket \\
        -J-Dtest.classes=/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/classes/3/java/net/httpclient/websocket/PendingPongBinaryClose.d \\
        -J-Dtest.class.path=/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/classes/3/java/net/httpclient/websocket/PendingPongBinaryClose.d \\
        -J-Dtest.class.path.prefix=/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/classes/3/java/net/httpclient/websocket/PendingPongBinaryClose.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket \\
        -J-Dtest.modules=java.net.http \\
        --add-modules java.net.http \\
        -d /System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/classes/3/java/net/httpclient/websocket/PendingPongBinaryClose.d \\
        -sourcepath /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket \\
        -classpath /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket:/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S112136/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/11a7d3b9-fee6-4df1-8ad8-fabf2a07a7d2/runs/8c5795e3-bf64-4301-b68e-7efd09025542/testoutput/test-support/jtreg_open_test_jdk_tier2_part3/classes/3/java/net/httpclient/websocket/PendingPongBinaryClose.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/testng.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jcommander.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/guice.jar /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+5-135/src.full/open/test/jdk/java/net/httpclient/websocket/DummyWebSocketServer.java
result: Error. Agent communication error: java.net.SocketException: No buffer space available; check console log for any additional details


test result: Error. Agent communication error: java.net.SocketException: No buffer space available; check console log for any additional details

Please note that this SocketException is thrown during the
compilation phase of the test so this failure has nothing to
do with the test we're trying to run.
Comments
Fix request [11u] I backport this for parity with 11.0.16-oracle. No risk, only a test change. Test might get slightly slower. Trivial resolve. SAP nightly testing passed.
29-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1057 Date: 2022-04-28 13:38:38 +0000
28-04-2022

Changeset: a49b1dc7 Author: Daniel Fuchs <dfuchs@openjdk.org> Date: 2021-07-07 07:50:45 +0000 URL: https://git.openjdk.java.net/jdk17/commit/a49b1dc7042d8893d9ff2cdaeae05203dd18bba4
07-07-2021

A similar bug was previously fixed: JDK-8265367 [macos-aarch64] 3 java/net/httpclient/websocket tests fail with "IOException: No buffer space available" The log file snippet for the PendingPongBinaryClose.java failure in that bug was: result: Error. Agent communication error: java.net.SocketException: No buffer space available; check console log for any additional details
01-07-2021