Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8307411

Test java/foreign/channels/TestAsyncSocketChannels.java failed: IllegalStateException: Already closed

XMLWordPrintable

        ----------System.out:(16/838)----------
        Seed from RandomFactory = -101903027041002175L
        test TestAsyncSocketChannels.testBasicIOWithSupportedSession(shared arena): success
        testCloseWithOutstandingRead - op
        testCloseWithOutstandingRead - op
        testCloseWithOutstandingRead - op
        testCloseWithOutstandingRead - op
        test TestAsyncSocketChannels.testCloseWithOutstandingRead(shared arena, 0): success
        testCloseWithOutstandingRead - op
        testCloseWithOutstandingRead - op
        testCloseWithOutstandingRead - op
        testCloseWithOutstandingRead - op
        test TestAsyncSocketChannels.testCloseWithOutstandingRead(shared arena, 30): success
        awaitNoFurtherWrites: i=4 , bytesWritten=391968
        awaiting outstanding writes....................................outstanding writes: 0
        test TestAsyncSocketChannels.testCloseWithOutstandingWrite(shared arena, 0): success
        awaitNoFurtherWrites: i=2 , bytesWritten=380668
        ----------System.err:(21/1828)----------
        java.lang.IllegalStateException: Already closed
        at java.base/jdk.internal.foreign.MemorySessionImpl.alreadyClosed(MemorySessionImpl.java:311)
        at java.base/jdk.internal.misc.ScopedMemoryAccess$ScopedAccessError.newRuntimeException(ScopedMemoryAccess.java:113)
        at java.base/jdk.internal.foreign.MemorySessionImpl.checkValidState(MemorySessionImpl.java:219)
        at java.base/jdk.internal.foreign.NativeMemorySegmentImpl.makeNativeSegment(NativeMemorySegmentImpl.java:119)
        at java.base/jdk.internal.foreign.MemorySessionImpl.allocate(MemorySessionImpl.java:158)
        at java.base/java.lang.foreign.Arena.allocate(Arena.java:270)
        at AbstractChannelsTest.segmentBufferOfSize(AbstractChannelsTest.java:71)
        at AbstractChannelsTest.segmentBuffersOfSize(AbstractChannelsTest.java:81)
        at TestAsyncSocketChannels$1.completed(TestAsyncSocketChannels.java:268)
        at TestAsyncSocketChannels$1.completed(TestAsyncSocketChannels.java:263)
        at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129)
        at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishWrite(UnixAsynchronousSocketChannelImpl.java:647)
        at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:199)
        at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:217)
        at java.base/sun.nio.ch.KQueuePort$EventHandlerTask.run(KQueuePort.java:312)
        at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
        at java.base/java.lang.Thread.run(Thread.java:1583)
        STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: Already closed

              mcimadamore Maurizio Cimadamore
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: