-
Bug
-
Resolution: Fixed
-
P3
-
repo-portola
-
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}
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}
- relates to
-
JDK-8252551 JDK-8250630 causes build error on Win*
- Resolved
-
JDK-8313804 JDWP support for -Djava.net.preferIPv6Addresses=system
- Resolved
-
JDK-8314481 JDWPTRANSPORT_ERROR_INTERNAL code in socketTransport.c can never be executed
- Resolved
-
JDK-8317804 com/sun/jdi/JdwpAllowTest.java fails on Alpine 3.17 / 3.18
- Resolved