Details
-
Bug
-
Resolution: Fixed
-
P2
-
17
-
b27
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8268713 | 18 | Chris Hegarty | P2 | Closed | Fixed | b02 |
Description
The following test failed in the JDK17 CI:
java/foreign/channels/TestAsyncSocketChannels.java
Here's a snippet from the log file:
#section:testng
----------messages:(5/381)----------
command: testng TestAsyncSocketChannels
reason: User specified action: run testng/othervm TestAsyncSocketChannels
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base,jdk.incubator.foreign --add-exports java.base/sun.nio.ch=ALL-UNNAMED --add-exports jdk.incubator.foreign/jdk.internal.foreign=ALL-UNNAMED
elapsed time (seconds): 24.53
----------configuration:(5/216)----------
Boot Layer
add modules: java.base jdk.incubator.foreign
add exports: java.base/sun.nio.ch ALL-UNNAMED
jdk.incubator.foreign/jdk.internal.foreign ALL-UNNAMED
----------System.out:(31/1681)----------
Seed from RandomFactory = -849393116251581480L
test TestAsyncSocketChannels.testBasicIOWithSupportedScope(newSharedScope()): success
test TestAsyncSocketChannels.testBasicIOWithSupportedScope(newSharedScope(Cleaner)): success
test TestAsyncSocketChannels.testBasicIOWithSupportedScope(newImplicitScope()): success
test TestAsyncSocketChannels.testBasicIOWithSupportedScope(globalScope()): success
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
test TestAsyncSocketChannels.testCloseWithOutstandingRead(newSharedScope(), 0): success
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
test TestAsyncSocketChannels.testCloseWithOutstandingRead(newSharedScope(Cleaner), 0): success
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
test TestAsyncSocketChannels.testCloseWithOutstandingRead(newSharedScope(), 30): success
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
test TestAsyncSocketChannels.testCloseWithOutstandingRead(newSharedScope(Cleaner), 30): success
outstanding writes: 0
test TestAsyncSocketChannels.testCloseWithOutstandingWrite(newSharedScope(), 0): success
outstanding writes: 0
test TestAsyncSocketChannels.testCloseWithOutstandingWrite(newSharedScope(Cleaner), 0): success
outstanding writes: 0
test TestAsyncSocketChannels.testCloseWithOutstandingWrite(newSharedScope(), 30): success
----------System.err:(18/1504)----------
WARNING: Using incubator modules: jdk.incubator.foreign
java.lang.IllegalStateException: This segment is already closed
at java.base/jdk.internal.misc.ScopedMemoryAccess.putByte(ScopedMemoryAccess.java:368)
at java.base/java.lang.invoke.MemoryAccessVarHandleByteHelper.set(MemoryAccessVarHandleByteHelper.java:123)
at jdk.incubator.foreign/jdk.incubator.foreign.MemoryAccess.setByteAtOffset(MemoryAccess.java:118)
at AbstractChannelsTest.segmentBufferOfSize(AbstractChannelsTest.java:78)
at AbstractChannelsTest.segmentBuffersOfSize(AbstractChannelsTest.java:86)
at TestAsyncSocketChannels$1.completed(TestAsyncSocketChannels.java:262)
at TestAsyncSocketChannels$1.completed(TestAsyncSocketChannels.java:257)
at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129)
at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:284)
at java.base/sun.nio.ch.WindowsAsynchronousSocketChannelImpl$WriteTask.completed(WindowsAsynchronousSocketChannelImpl.java:843)
at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:387)
at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: This segment is already closed
----------rerun:(44/5916)*----------
java/foreign/channels/TestAsyncSocketChannels.java
Here's a snippet from the log file:
#section:testng
----------messages:(5/381)----------
command: testng TestAsyncSocketChannels
reason: User specified action: run testng/othervm TestAsyncSocketChannels
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base,jdk.incubator.foreign --add-exports java.base/sun.nio.ch=ALL-UNNAMED --add-exports jdk.incubator.foreign/jdk.internal.foreign=ALL-UNNAMED
elapsed time (seconds): 24.53
----------configuration:(5/216)----------
Boot Layer
add modules: java.base jdk.incubator.foreign
add exports: java.base/sun.nio.ch ALL-UNNAMED
jdk.incubator.foreign/jdk.internal.foreign ALL-UNNAMED
----------System.out:(31/1681)----------
Seed from RandomFactory = -849393116251581480L
test TestAsyncSocketChannels.testBasicIOWithSupportedScope(newSharedScope()): success
test TestAsyncSocketChannels.testBasicIOWithSupportedScope(newSharedScope(Cleaner)): success
test TestAsyncSocketChannels.testBasicIOWithSupportedScope(newImplicitScope()): success
test TestAsyncSocketChannels.testBasicIOWithSupportedScope(globalScope()): success
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
test TestAsyncSocketChannels.testCloseWithOutstandingRead(newSharedScope(), 0): success
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
test TestAsyncSocketChannels.testCloseWithOutstandingRead(newSharedScope(Cleaner), 0): success
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
test TestAsyncSocketChannels.testCloseWithOutstandingRead(newSharedScope(), 30): success
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
testCloseWithOutstandingRead - op
test TestAsyncSocketChannels.testCloseWithOutstandingRead(newSharedScope(Cleaner), 30): success
outstanding writes: 0
test TestAsyncSocketChannels.testCloseWithOutstandingWrite(newSharedScope(), 0): success
outstanding writes: 0
test TestAsyncSocketChannels.testCloseWithOutstandingWrite(newSharedScope(Cleaner), 0): success
outstanding writes: 0
test TestAsyncSocketChannels.testCloseWithOutstandingWrite(newSharedScope(), 30): success
----------System.err:(18/1504)----------
WARNING: Using incubator modules: jdk.incubator.foreign
java.lang.IllegalStateException: This segment is already closed
at java.base/jdk.internal.misc.ScopedMemoryAccess.putByte(ScopedMemoryAccess.java:368)
at java.base/java.lang.invoke.MemoryAccessVarHandleByteHelper.set(MemoryAccessVarHandleByteHelper.java:123)
at jdk.incubator.foreign/jdk.incubator.foreign.MemoryAccess.setByteAtOffset(MemoryAccess.java:118)
at AbstractChannelsTest.segmentBufferOfSize(AbstractChannelsTest.java:78)
at AbstractChannelsTest.segmentBuffersOfSize(AbstractChannelsTest.java:86)
at TestAsyncSocketChannels$1.completed(TestAsyncSocketChannels.java:262)
at TestAsyncSocketChannels$1.completed(TestAsyncSocketChannels.java:257)
at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129)
at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:284)
at java.base/sun.nio.ch.WindowsAsynchronousSocketChannelImpl$WriteTask.completed(WindowsAsynchronousSocketChannelImpl.java:843)
at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:387)
at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
STATUS:Failed.`main' threw exception: java.lang.IllegalStateException: This segment is already closed
----------rerun:(44/5916)*----------
Attachments
Issue Links
- backported by
-
JDK-8268713 java/foreign/channels/TestAsyncSocketChannels.java fails with "IllegalStateException: This segment is already closed"
-
- Closed
-