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

test/jdk/com/sun/jdi/JdwpListenTest.java fails on Alpine Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-portola
    • Fix Version/s: 16
    • Component/s: core-svc
    • Labels:
      None
    • Environment:

      Alpine Linux 3.11.6, musl libc (x86_64) version 1.1.24.
      OpenJDK built from Portola repository: https://github.com/openjdk/portola

    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      unknown
    • OS:
      other

      Description

      Run test test/jdk/com/sun/jdi/JdwpListenTest.java on Alpine Linux.

      The test fails:
      {code}
      [debuggee] Listening for transport dt_socket at address: 34727
      Debuggee is listening on *:34727
      Connecting to fe80:0:0:0:5054:ff:feb6:e5ba%2, expected: SUCCESS
      STDERR:
      java.io.IOException: Bad file descriptor
      at java.base/java.io.FileInputStream.available0(Native Method)
      at java.base/java.io.FileInputStream.available(FileInputStream.java:322)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
      at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
      at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
      at java.base/java.io.FilterInputStream.read(FilterInputStream.java:106)
      at jdk.test.lib.process.StreamPumper.run(StreamPumper.java:109)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.lang.Thread.run(Thread.java:832)
      java.lang.RuntimeException: ERROR: failed to attach
      at JdwpListenTest.listenTest(JdwpListenTest.java:106)
      at JdwpListenTest.main(JdwpListenTest.java:81)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      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.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.net.ConnectException: Connection refused
      at java.base/sun.nio.ch.Net.connect0(Native Method)
      at java.base/sun.nio.ch.Net.connect(Net.java:572)
      at java.base/sun.nio.ch.Net.connect(Net.java:561)
      at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
      at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333)
      at java.base/java.net.Socket.connect(Socket.java:648)
      at jdk.jdi/com.sun.tools.jdi.SocketTransportService.attach(SocketTransportService.java:261)
      at jdk.jdi/com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:119)
      at jdk.jdi/com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:83)
      at JdwpListenTest.attach(JdwpListenTest.java:125)
      at JdwpListenTest.listenTest(JdwpListenTest.java:99)
      ... 7 more
      {code}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alexsch Alexandr Scherbatiy
              Reporter:
              alexsch Alexandr Scherbatiy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: