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

JDI connector accept fails "Address already in use" with concurrent listeners

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • tbd
    • 11, 12, 13
    • core-svc

      JDI debugger connector listener accept intermittently fails when concurrent listeners are created:

      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:465)
      at java.base/sun.nio.ch.Net.bind(Net.java:457)
      at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:643)
      at java.base/java.net.ServerSocket.bind(ServerSocket.java:359)
      at java.base/java.net.ServerSocket.bind(ServerSocket.java:313)
      at jdk.jdi/com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:300)
      at jdk.jdi/com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:310)
      at jdk.jdi/com.sun.tools.jdi.GenericListeningConnector.startListening(GenericListeningConnector.java:117)
      at jdk.jdi/com.sun.tools.jdi.SocketListeningConnector.startListening(SocketListeningConnector.java:86)
      at jdk.jdi/com.sun.tools.jdi.GenericListeningConnector.accept(GenericListeningConnector.java:163)
      at JdwpConcurrentAttachTest.lambda$attachTest$0(JdwpConcurrentAttachTest.java:122)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:830)

      Issue found during AdoptOpenJDK system test executions, ref: https://github.com/AdoptOpenJDK/openjdk-systemtest/issues/63


            Unassigned Unassigned
            aleonard Andrew Leonard
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: