JDK-4511290 : JCK1.4, api/java_rmi/..., "-Xprof -verbose -verify" , linux
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.4.0
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2001-10-05
  • Updated: 2001-10-09
  • Resolved: 2001-10-09
Related Reports
Duplicate :  
Description

Name: iaR10016			Date: 10/05/2001


JDK            : JDK1.4.0-beta-b82
JCK            : JCK1.4-b10
Platform[s]    : RedHat Linux 6.2, RedHat Linux 7.1
                 (The tests pass under Windows OS)
switch/Mode    : -Xprof -verbose -verify -Xfuture
                 (The tests pass with default switches)
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test   : api/java_rmi/CreateTest.html [Create0001]
                 api/java_rmi/Naming/index.html#Rebind [Rebind0001, Rebind0002]
                 api/java_rmi/Naming/index.html#Unbind [Unbind0001]
                 api/java_rmi/Naming/index.html#Lookup [Lookup0001]
                 api/java_rmi/Naming/index.html#List [List0001]
                 api/java_rmi/server/RemoteObject/index.html#HashCode [HashCode0001, HashCode0004]
                 api/java_rmi/server/RemoteObject/index.html#Equals [Equals0001, Equals0003, Equals0005, Equals0007]
                 api/java_rmi/server/RemoteServer/index.html#GetClientHost [GetClHostTest]

Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/CreateTest.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/Naming/RebindTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/Naming/UnbindTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/Naming/LookupTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/Naming/ListTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/server/RemoteObject/HashCodeTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/server/RemoteObject/EqualsTests.java
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_rmi/server/RemoteServer/GetClientHostTests.java

jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/merlin/b82/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/CreateTest.jtr
/net/jtgb4u4c.eng/export/sail15/results/merlin/b82/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/Naming/index_Rebind.jtr
/net/jtgb4u4c.eng/export/sail15/results/merlin/b82/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/Naming/index_Unbind.jtr
/net/jtgb4u4c.eng/export/sail15/results/merlin/b82/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/Naming/index_Lookup.jtr
/net/jtgb4u4c.eng/export/sail15/results/merlin/b82/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/Naming/index_List.jtr
/net/jtgb4u4c.eng/export/sail15/results/merlin/b82/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/server/RemoteObject/index_HashCode.jtr
/net/jtgb4u4c.eng/export/sail15/results/merlin/b82/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/server/RemoteObject/index_Equals.jtr
/net/jtgb4u4c.eng/export/sail15/results/merlin/b82/jck14/linux/redhat7.1_gnome_client_prof_verbose_verify_linux-14/workDir/api/java_rmi/server/RemoteServer/index_GetClientHost.jtr

How to reproduce:
====================
Run the following script under RedHat Linux 6.2
(probably, you need to change JCK and JAVA_HOME paths):
--------Script START---------------------
#!/bin/sh
JAVA_HOME=/net/jdk/export/disk8/local.java/jdk1.4/linux-i386
JCK=/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14
export CLASSPATH="$JCK/classes:$JCK/javatest.jar"
$JAVA_HOME/bin/rmid&
executeClass="javasoft.sqe.tests.api.java.rmi.CreateTest -network.tcpPortRange 0"
$JAVA_HOME/bin/java -Xprof -verbose -verify -Xfuture ${executeClass}
---------Script END----------------------

Test output:
=============
[Opened /.automount/linux-15/root/export/home/java/jdk1.4.0/linux/jre/lib/rt.jar]
[Opened /.automount/linux-15/root/export/home/java/jdk1.4.0/linux/jre/lib/sunrsasign.jar]
[Opened /.automount/linux-15/root/export/home/java/jdk1.4.0/linux/jre/lib/jsse.jar]
[Opened /.automount/linux-15/root/export/home/java/jdk1.4.0/linux/jre/lib/jce.jar]
[Opened /.automount/linux-15/root/export/home/java/jdk1.4.0/linux/jre/lib/charsets.jar]
...

[Loaded sun.reflect.GeneratedSerializationConstructorAccessor12]
[Loaded java.lang.reflect.Array from /.automount/linux-15/root/export/home/java/jdk1.4.0/linux/jre/lib/rt.jar]
[Loaded sun.rmi.transport.tcp.TCPChannel$Reaper from /.automount/linux-15/root/export/home/java/jdk1.4.0/linux/jre/lib/rt.jar]
Using installed AllPermissionSM.
Registry created on port 35858
Using installed AllPermissionSM.
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
        java.io.EOFException
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:206)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:353)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:162)
        at javasoft.sqe.tests.api.java.rmi.CreateTest$1.run(CreateTest.java:82)
        at javasoft.sqe.jck.lib.AllPermissionSM.testRun(AllPermissionSM.java:88)
        at javasoft.sqe.tests.api.java.rmi.CreateTest.Create0001(CreateTest.java:119)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
        at java.lang.reflect.Method.invoke(Method.java:327)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:407)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:203)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:135)
        at javasoft.sqe.tests.api.java.rmi.CreateTest.main(CreateTest.java:47)
Caused by: java.io.EOFException
        at java.io.DataInputStream.readByte(DataInputStream.java:281)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:192)
        ... 14 more
java.rmi.NotBoundException: Create
        at sun.rmi.registry.RegistryImpl.unbind(RegistryImpl.java:143)
        at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
        at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:345)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:210)
        at sun.rmi.transport.Transport$1.run(Transport.java:151)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
        at java.lang.Thread.run(Thread.java:539)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:250)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:226)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:353)
        at sun.rmi.registry.RegistryImpl_Stub.unbind(Unknown Source)
        at java.rmi.Naming.unbind(Naming.java:137)
        at javasoft.sqe.tests.api.java.rmi.CreateTest$1.run(CreateTest.java:104)
        at javasoft.sqe.jck.lib.AllPermissionSM.testRun(AllPermissionSM.java:88)
        at javasoft.sqe.tests.api.java.rmi.CreateTest.Create0001(CreateTest.java:119)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
        at java.lang.reflect.Method.invoke(Method.java:327)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:407)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:203)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:135)
        at javasoft.sqe.tests.api.java.rmi.CreateTest.main(CreateTest.java:47)
[Loaded java.util.HashMap$KeyIterator from /.automount/linux-15/root/export/home/java/jdk1.4.0/linux/jre/lib/rt.jar]

Flat profile of 0.75 secs (14 total ticks): RMI TCP Connection(2)-129.144.234.224

  Interpreted + native   Method
 14.3%     0  +     2    java.net.SocketOutputStream.socketWrite0
  7.1%     0  +     1    sun.misc.Unsafe.defineClass
  7.1%     1  +     0    java.lang.reflect.Constructor.newInstance
 28.6%     1  +     3    Total interpreted

  Thread-local ticks:
  7.1%     1             Class loader
 64.3%     9             Compilation


Flat profile of 4.31 secs (72 total ticks): RMI TCP Accept-35858

  Interpreted + native   Method
 95.8%     0  +    68    java.net.PlainSocketImpl.socketAccept
  2.8%     0  +     2    java.net.ServerSocket.accept
 98.6%     0  +    70    Total interpreted

  Thread-local ticks:
  1.4%     1             Blocked (of total)
  1.4%     1             Unknown: thread_state


Flat profile of 10.85 secs (195 total ticks): main

  Interpreted + native   Method
  6.8%     0  +    13    java.io.UnixFileSystem.getBooleanAttributes0
  6.3%     0  +    12    java.net.SocketInputStream.socketRead0
  4.2%     0  +     8    java.io.UnixFileSystem.canonicalize
  3.7%     0  +     7    java.io.FileInputStream.readBytes
  2.6%     0  +     5    sun.misc.Unsafe.defineClass
  1.6%     0  +     3    java.lang.Class.forName0
  1.0%     0  +     2    java.lang.ClassLoader.defineClass0
  1.0%     0  +     2    java.io.ObjectOutputStream.<init>
  0.5%     0  +     1    java.util.zip.Inflater.init
  0.5%     0  +     1    java.lang.Throwable.fillInStackTrace
  0.5%     0  +     1    java.lang.ClassLoader$NativeLibrary.load
  0.5%     0  +     1    java.io.FileInputStream.open
  0.5%     0  +     1    java.net.PlainSocketImpl.socketConnect
  0.5%     0  +     1    java.rmi.server.RMIClassLoader$2.getClassAnnotation
  0.5%     0  +     1    java.net.SocketOutputStream.socketWrite0
  0.5%     0  +     1    java.security.BasicPermission.newPermissionCollection
  0.5%     0  +     1    java.rmi.registry.LocateRegistry.createRegistry
  0.5%     1  +     0    java.lang.String.endsWith
  0.5%     0  +     1    java.security.SecureClassLoader.getPermissions
  0.5%     0  +     1    sun.nio.cs.UTF_8.newDecoder
  0.5%     0  +     1    java.rmi.server.RemoteServer.<clinit>
  0.5%     0  +     1    sun.rmi.transport.LiveRef.<init>
  0.5%     1  +     0    java.io.ObjectOutputStream.auditSubclass
  0.5%     0  +     1    sun.reflect.BootstrapConstructorAccessorImpl.newInstance
  0.5%     1  +     0    java.util.jar.Manifest.toLower
 55.0%    11  +    94    Total interpreted (including elided)

  Thread-local ticks:
  2.1%     4             Blocked (of total)
 42.9%    82             Class loader
  0.5%     1             Interpreter
  1.0%     2             Unknown: no last frame
  0.5%     1             Unknown: thread_state


Global summary of 10.85 seconds:
100.0%   211             Received ticks
  1.4%     3             Compilation
 39.3%    83             Class loader
  0.5%     1             Interpreter
  1.9%     4             Unknown code
----------log:(2/164)----------
Create0001: Failed. Couldn't unbind rmi://:35858/Create : java.rmi.NotBoundException: Create
STATUS:Failed.tests: 1; failed: 1; first test case failure: Create0001
result: Failed. tests: 1; failed: 1; first test case failure: Create0001

Specific Machine Info:
=====================
Hostname: Linux-14
OS: RedHat Linux 7.1

======================================================================

Comments
EVALUATION Please rerun the tests, the jtr files do not exist as stated. ###@###.### 2001-10-05 This could be related to NET/NIO changes putback to b82 ###@###.### 2001-10-05 This may be a duplicare of 4511253 -- Yes, this is a duplicate of 4511253. -Xprof is generate a lot of signals that are interrupting a system call that isn't automatically restarted. A fix for this will be putback shortly. ###@###.### 2001-10-09
09-10-2001