Details
-
Bug
-
Resolution: Fixed
-
P4
-
12, 18
-
b11
-
x86_64
-
linux, solaris
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8328791 | 17.0.12-oracle | Md Shahbaz Yusuf | P4 | Resolved | Fixed | b01 |
JDK-8329249 | 17.0.12 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
Description
The following test failed due to "bind failed: Address already in use"
on Solaris-X64 in the release config using jdk-12+19 bits:
vmTestbase/nsk/jdi/AttachingConnector/attach/attach001/TestDescription.java
The test only failed in 1 of 3 'release' bits runs so I'm
tagging this bug as intermittent. It did not fail at all in the
'slowdebug' or 'fastdebug' bits runs.
Here is a snippet from the log file:
----------System.out:(136/11674)----------
run [nsk.jdi.AttachingConnector.attach.attach001, -verbose, -arch=solaris-x64, -waittime=5, -debugee.vmkind=java, -transport.address=dynamic, -debugee.vmkeys=-XX:MaxRAMPercentage=1 ]
command: /work/shared/bug_hunt/thread_SMR_stress/jdk12_exp/build/solaris-x86_64-normal-server-release/images/jdk/bin/java -XX:MaxRAMPercentage=1 -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=41888 nsk.jdi.AttachingConnector.attach.attach001t
Connector name=com.sun.jdi.SocketAttach
description=Attaches by socket to other VMs
transport=dt_socket
argument name=timeout
value=
argument name=hostname
value=localhost
argument name=port
value=41888
debugee.stderr> ERROR: transport error 202: bind failed: Address already in use
debugee.stderr> ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
debugee.stderr> JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [:732]
Connection attempt #0 failed: java.io.IOException: handshake failed - connection prematurally closed
Connection attempt #1 failed: java.io.IOException: handshake failed - connection prematurally closed
Connection attempt #2 failed: java.io.IOException: handshake failed - connection prematurally closed
<snip>
Connection attempt #74 failed: java.io.IOException: handshake failed - connection prematurally closed
# ERROR: FAILURE: all attempts to connect to the debugee VM failed
The following stacktrace is for failure analysis.
nsk.share.TestFailure: FAILURE: all attempts to connect to the debugee VM failed
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:428)
at nsk.share.Log.complain(Log.java:399)
at nsk.jdi.AttachingConnector.attach.attach001.attachTarget(attach001.java:193)
at nsk.jdi.AttachingConnector.attach.attach001.runIt(attach001.java:113)
at nsk.jdi.AttachingConnector.attach.attach001.run(attach001.java:68)
at nsk.jdi.AttachingConnector.attach.attach001.main(attach001.java:64)
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:567)
at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
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:567)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:835)
# ERROR: TEST: Unable to attach the debugee VM
The following stacktrace is for failure analysis.
nsk.share.TestFailure: TEST: Unable to attach the debugee VM
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:428)
at nsk.share.Log.complain(Log.java:399)
at nsk.jdi.AttachingConnector.attach.attach001.runIt(attach001.java:114)
at nsk.jdi.AttachingConnector.attach.attach001.run(attach001.java:68)
at nsk.jdi.AttachingConnector.attach.attach001.main(attach001.java:64)
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:567)
at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
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:567)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:835)
#>
#> SUMMARY: Following errors occured
#> during test execution:
#>
# ERROR: FAILURE: all attempts to connect to the debugee VM failed
# ERROR: TEST: Unable to attach the debugee VM
----------System.err:(0/0)----------
----------rerun:(27/4427)*----------
on Solaris-X64 in the release config using jdk-12+19 bits:
vmTestbase/nsk/jdi/AttachingConnector/attach/attach001/TestDescription.java
The test only failed in 1 of 3 'release' bits runs so I'm
tagging this bug as intermittent. It did not fail at all in the
'slowdebug' or 'fastdebug' bits runs.
Here is a snippet from the log file:
----------System.out:(136/11674)----------
run [nsk.jdi.AttachingConnector.attach.attach001, -verbose, -arch=solaris-x64, -waittime=5, -debugee.vmkind=java, -transport.address=dynamic, -debugee.vmkeys=-XX:MaxRAMPercentage=1 ]
command: /work/shared/bug_hunt/thread_SMR_stress/jdk12_exp/build/solaris-x86_64-normal-server-release/images/jdk/bin/java -XX:MaxRAMPercentage=1 -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=41888 nsk.jdi.AttachingConnector.attach.attach001t
Connector name=com.sun.jdi.SocketAttach
description=Attaches by socket to other VMs
transport=dt_socket
argument name=timeout
value=
argument name=hostname
value=localhost
argument name=port
value=41888
debugee.stderr> ERROR: transport error 202: bind failed: Address already in use
debugee.stderr> ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
debugee.stderr> JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [:732]
Connection attempt #0 failed: java.io.IOException: handshake failed - connection prematurally closed
Connection attempt #1 failed: java.io.IOException: handshake failed - connection prematurally closed
Connection attempt #2 failed: java.io.IOException: handshake failed - connection prematurally closed
<snip>
Connection attempt #74 failed: java.io.IOException: handshake failed - connection prematurally closed
# ERROR: FAILURE: all attempts to connect to the debugee VM failed
The following stacktrace is for failure analysis.
nsk.share.TestFailure: FAILURE: all attempts to connect to the debugee VM failed
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:428)
at nsk.share.Log.complain(Log.java:399)
at nsk.jdi.AttachingConnector.attach.attach001.attachTarget(attach001.java:193)
at nsk.jdi.AttachingConnector.attach.attach001.runIt(attach001.java:113)
at nsk.jdi.AttachingConnector.attach.attach001.run(attach001.java:68)
at nsk.jdi.AttachingConnector.attach.attach001.main(attach001.java:64)
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:567)
at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
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:567)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:835)
# ERROR: TEST: Unable to attach the debugee VM
The following stacktrace is for failure analysis.
nsk.share.TestFailure: TEST: Unable to attach the debugee VM
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:428)
at nsk.share.Log.complain(Log.java:399)
at nsk.jdi.AttachingConnector.attach.attach001.runIt(attach001.java:114)
at nsk.jdi.AttachingConnector.attach.attach001.run(attach001.java:68)
at nsk.jdi.AttachingConnector.attach.attach001.main(attach001.java:64)
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:567)
at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
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:567)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:835)
#>
#> SUMMARY: Following errors occured
#> during test execution:
#>
# ERROR: FAILURE: all attempts to connect to the debugee VM failed
# ERROR: TEST: Unable to attach the debugee VM
----------System.err:(0/0)----------
----------rerun:(27/4427)*----------
Attachments
Issue Links
- backported by
-
JDK-8328791 AttachingConnector/attach/attach001 failed due to "bind failed: Address already in use"
- Resolved
-
JDK-8329249 AttachingConnector/attach/attach001 failed due to "bind failed: Address already in use"
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/9b9573fa
-
Commit openjdk/jdk/b62e7420
-
Review openjdk/jdk17u-dev/2333
-
Review openjdk/jdk/4817
(1 links to)