This is a version of SelectorTest edited to run for x number of hours. It
fails early with and repeatedly on Solaris. The error ID is identical to 4511624, as is the thread dump. However the fix for 4511624, that is, using PollSelectorProvider has no effect--crash and thread dump is the same. B84.
execute attached test:
java SelectorTest 1
Server: @ Wed Oct 24 17:29:44 PDT 2001java.net.SocketException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:86)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:62)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:54)
at SelectorTest$Server.go(SelectorTest.java:262)
at TestThread.run(TestThread.java:27)
Client: @ Wed Oct 24 17:29:45 PDT 2001java.io.IOException: Connection reset by peer
.
.
.
.
quickly crashes with:
------------------------------------------------------------------------
Client: @ Wed Oct 24 15:03:03 PDT 2001java.lang.Exception: Client timed out
at TestThread.finish(TestThread.java:39)
at SelectorTest.main(SelectorTest.java:99)
Server: @ Wed Oct 24 15:03:04 PDT 2001java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.initPipe(Native Method)
Client: @ Wed Oct 24 15:03:04 PDT 2001java.lang.Exception: Client timed out
at TestThread.finish(TestThread.java:39)
at SelectorTest.main(SelectorTest.java:99)
Unexpected Signal : 11 occurred at PC=0xFE12F19C
Function=[Unknown. Nearest: JVM_RegisterSignal+0x2744]
Library=/net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/client/libjvm.so
Current Java thread:
at sun.nio.ch.FileDispatcher.close0(Native Method)
at sun.nio.ch.SocketDispatcher.close(SocketDispatcher.java:39)
at sun.nio.ch.SocketChannelImpl.implCloseSelectableChannel(SocketChannelImpl.java:385)
at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:203)
at java.nio.channels.spi.AbstractChannel.close(AbstractChannel.java:96)
- locked <f27f5a18> (a java.lang.Object)
at sun.nio.ch.SocketChannelImpl.finalize(SocketChannelImpl.java:389)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:86)
at java.lang.ref.Finalizer.access$100(Finalizer.java:17)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:163)
Dynamic libraries:
0x10000 /import/javasoft/java/jdk1.4/solsparc/bin/java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
0xfe000000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/client/libjvm.so
0xff2d0000 /usr/lib/libCrun.so.1
0xff1d0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff300000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff080000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/native_threads/libhpi.so
0xff050000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libverify.so
0xff020000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libjava.so
0xfe7e0000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libzip.so
0xfe4b0000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libnet.so
0xfe490000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libnio.so
0xfe470000 /usr/lib/libposix4.so.1
0xfe450000 /usr/lib/libaio.so.1
Local Time = Wed Oct 24 15:03:05 2001
Elapsed Time = 24
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002BA 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta3-b84 mixed mode)
#
Server: @ Wed Oct 24 15:03:05 PDT 2001java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.initPipe(Native Method)
Client: @ Wed Oct 24 15:03:05 PDT 2001java.lang.Exception: Client timed out
at TestThread.finish(TestThread.java:39)
at SelectorTest.main(SelectorTest.java:99)
# An error report file has been saved as hs_err_pid26021.log.
# Please refer to the file for further information.
#
-------------------------------------
fails early with and repeatedly on Solaris. The error ID is identical to 4511624, as is the thread dump. However the fix for 4511624, that is, using PollSelectorProvider has no effect--crash and thread dump is the same. B84.
execute attached test:
java SelectorTest 1
Server: @ Wed Oct 24 17:29:44 PDT 2001java.net.SocketException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:86)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:62)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:54)
at SelectorTest$Server.go(SelectorTest.java:262)
at TestThread.run(TestThread.java:27)
Client: @ Wed Oct 24 17:29:45 PDT 2001java.io.IOException: Connection reset by peer
.
.
.
.
quickly crashes with:
------------------------------------------------------------------------
Client: @ Wed Oct 24 15:03:03 PDT 2001java.lang.Exception: Client timed out
at TestThread.finish(TestThread.java:39)
at SelectorTest.main(SelectorTest.java:99)
Server: @ Wed Oct 24 15:03:04 PDT 2001java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.initPipe(Native Method)
Client: @ Wed Oct 24 15:03:04 PDT 2001java.lang.Exception: Client timed out
at TestThread.finish(TestThread.java:39)
at SelectorTest.main(SelectorTest.java:99)
Unexpected Signal : 11 occurred at PC=0xFE12F19C
Function=[Unknown. Nearest: JVM_RegisterSignal+0x2744]
Library=/net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/client/libjvm.so
Current Java thread:
at sun.nio.ch.FileDispatcher.close0(Native Method)
at sun.nio.ch.SocketDispatcher.close(SocketDispatcher.java:39)
at sun.nio.ch.SocketChannelImpl.implCloseSelectableChannel(SocketChannelImpl.java:385)
at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:203)
at java.nio.channels.spi.AbstractChannel.close(AbstractChannel.java:96)
- locked <f27f5a18> (a java.lang.Object)
at sun.nio.ch.SocketChannelImpl.finalize(SocketChannelImpl.java:389)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:86)
at java.lang.ref.Finalizer.access$100(Finalizer.java:17)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:163)
Dynamic libraries:
0x10000 /import/javasoft/java/jdk1.4/solsparc/bin/java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
0xfe000000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/client/libjvm.so
0xff2d0000 /usr/lib/libCrun.so.1
0xff1d0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff300000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff080000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/native_threads/libhpi.so
0xff050000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libverify.so
0xff020000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libjava.so
0xfe7e0000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libzip.so
0xfe4b0000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libnet.so
0xfe490000 /net/jdk.sfbay/export/disk6/promoted/jdk/1.4/beta3/b84/binaries/solsparc/jre/lib/sparc/libnio.so
0xfe470000 /usr/lib/libposix4.so.1
0xfe450000 /usr/lib/libaio.so.1
Local Time = Wed Oct 24 15:03:05 2001
Elapsed Time = 24
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002BA 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta3-b84 mixed mode)
#
Server: @ Wed Oct 24 15:03:05 PDT 2001java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.initPipe(Native Method)
Client: @ Wed Oct 24 15:03:05 PDT 2001java.lang.Exception: Client timed out
at TestThread.finish(TestThread.java:39)
at SelectorTest.main(SelectorTest.java:99)
# An error report file has been saved as hs_err_pid26021.log.
# Please refer to the file for further information.
#
-------------------------------------
- duplicates
-
JDK-4513011 (ch) File-descriptor aliasing problem in Selectors
-
- Closed
-