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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 16
    • repo-portola
    • core-svc
    • None
    • Alpine Linux 3.11.6, musl libc (x86_64) version 1.1.24.
      OpenJDK built from Portola repository: https://github.com/openjdk/portola

    • b14
    • unknown
    • other

      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}

            alexsch Alexandr Scherbatiy
            alexsch Alexandr Scherbatiy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: