-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta2
-
x86
-
windows_nt
-
Verified
Name: elR10090 Date: 06/19/2001
Latest builds of Hotspot VM (build 1.4.0-beta_refresh-b68 and 1.4.0-beta_refresh-b68)
failed to pass following tests from testbase_nsk:
nsk/jdi/AttachingConnector/attach/attach001
nsk/jdi/AttachingConnector/attach/attach002
nsk/jdi/LaunchingConnector/launch/launch004
nsk/jdi/ListeningConnector/accept/accept001
nsk/jdi/ListeningConnector/accept/accept002
nsk/jdi/ListeningConnector/startListening/startlis001
nsk/jdi/ListeningConnector/startListening/startlis002
on Windows. On the all other platforms tests passed successfully.
Being executed agains earlier builds, right up to Merlin-b66,
tests passed successfully on all platforms including Windows.
The failure is related to the error of initialization of transport
for JDI connectors, both for dt_socket and dt_shmem transports.
This failure affects all types of connectors: launching, attaching
and listening. Typical error message is:
FATAL ERROR in native method: No transports initialized
Transport dt_socket failed to initialize, rc = 509.
These tests belong to testbase_nsk located here:
/net/sqesvr.eng/export/vsn/VM/testbase/testbase_nsk.v14
To reproduce the bug run 'doit*.sh' scripts located here:
/net/sqesvr.eng/export/vsn/GammaBase/Bugs/<this bug number>
Use:
sh doit1.sh $JAVA_HOME
sh doit2.sh $JAVA_HOME
Script 'doit1.sh' runs test for attaching connector with dt_socket transport.
Script 'doit2.sh' runs test for attaching connector with dt_shmem transport.
Here is output of doit1.sh (dt_socket transport):
-----------------------------------------------------------
$ sh doit1.sh $JAVA_HOME
Compiling support classes...
Compiling test classes...
java version "1.4.0-beta_refresh"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b68)
Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b68, mixed mode)
Running test...
command: h:/ld24/java/hotspot/jdk1.4/win\bin\java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000 nsk.jdi.AttachingConnector.attach.attach001t
Connector name=com.sun.jdi.SocketAttach
description=Attaches by socket to other VMs
transport=dt_socket
argument name=hostname
value=localhost
argument name=port
value=8000
FATAL ERROR in native method: No transports initialized
Transport dt_socket failed to initialize, rc = 509.
Connection attempt #0 failed: java.net.ConnectException: Connection refused: connect
<...>
Connection attempt #14 failed: java.net.ConnectException: Connection refused: connect
# ERROR: FAILURE: all attempts to connect to the debugee VM failed
# ERROR: TEST: Unable to attach the debugee VM
Java exit code = 97
-----------------------------------------------------------
Here is output of doit2.sh (dt_shmem transport):
-----------------------------------------------------------
$ sh doit2.sh $JAVA_HOME
Compiling support classes...
Compiling test classes...
Running test...
command: h:/ld24/java/hotspot/jdk1.4/win\bin\java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,server=y,address=nskjditestchannel nsk.jdi.AttachingConnector.attach.attach002t
Connector name=com.sun.jdi.SharedMemoryAttach
description=Attaches by shared memory to other VMs
transport=dt_shmem
argument name=name
value=nskjditestchannel
Connection attempt #0 failed: java.io.IOException: shmemBase_attach failed, error code = -1
FATAL ERROR in native method: No transports initialized
Transport dt_shmem failed to initialize, rc = 509.
Connection attempt #1 failed: java.io.IOException: shmemBase_attach failed, error code = -1
<...>
Connection attempt #14 failed: java.io.IOException: shmemBase_attach failed, error code = -1
# ERROR: FAILURE: all attempts to connect to the debugee VM failed
# ERROR: TEST: Unable to attach the debugee VM
Java exit code = 97
-----------------------------------------------------------
======================================================================
- relates to
-
JDK-4468409 b67: dga library doesn't get loaded due to dlopen error
- Resolved