Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8241550

[macOS 10.15] SSLSocketImpl/ReuseAddr.java failed due to "BindException: Address already in use"

    Details

      Description

      The following test failed in the JDK15 CI:

      sun/security/ssl/SSLSocketImpl/ReuseAddr.java

      on a macOS 10.15 machine.

      Here's a snippet from the log file:

      ----------System.err:(23/1322)----------
      java.net.BindException: Address already in use
      at java.base/sun.nio.ch.Net.bind0(Native Method)
      at java.base/sun.nio.ch.Net.bind(Net.java:491)
      at java.base/sun.nio.ch.Net.bind(Net.java:480)
      at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:643)
      at java.base/java.net.ServerSocket.bind(ServerSocket.java:396)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:282)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:173)
      at ReuseAddr.doServerSide(ReuseAddr.java:47)
      at SSLSocketTemplate.startServer(SSLSocketTemplate.java:584)
      at SSLSocketTemplate.bootup(SSLSocketTemplate.java:498)
      at SSLSocketTemplate.run(SSLSocketTemplate.java:83)
      at ReuseAddr.main(ReuseAddr.java:53)
      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:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.net.BindException
      JavaTest Message: shutting down test

      ----------System.out:(21/1316)----------
      Try rebinding to same port: 49152
      Server failed: java.net.BindException: Address already in use
      java.net.BindException: Address already in use
      at java.base/sun.nio.ch.Net.bind0(Native Method)
      at java.base/sun.nio.ch.Net.bind(Net.java:491)
      at java.base/sun.nio.ch.Net.bind(Net.java:480)
      at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:643)
      at java.base/java.net.ServerSocket.bind(ServerSocket.java:396)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:282)
      at java.base/java.net.ServerSocket.<init>(ServerSocket.java:173)
      at ReuseAddr.doServerSide(ReuseAddr.java:47)
      at SSLSocketTemplate.startServer(SSLSocketTemplate.java:584)
      at SSLSocketTemplate.bootup(SSLSocketTemplate.java:498)
      at SSLSocketTemplate.run(SSLSocketTemplate.java:83)
      at ReuseAddr.main(ReuseAddr.java:53)
      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:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)
      result: Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use


      test result: Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use

        Attachments

          Activity

            People

            • Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: