JDK-8272749 : java/foreign/channels/TestSocketChannels.java times out on windows with virtual threads
  • Type: Bug
  • Component: core-libs
  • Affected Version: 22,repo-loom
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2021-08-20
  • Updated: 2023-12-30
  • Resolved: 2023-12-30
Related Reports
Duplicate :  
Description
Test
java/foreign/channels/TestSocketChannels.java

might hang on windows.
Comments
Reclosed as duplicate instead of Resolved as...
30-12-2023

The latest sighting is Windows Server 2016 and the stack trace of the virtual thread that is blocked indefinitely is ``` { "tid": "21", "name": "MainThread", "stack": [ "java.base\/java.lang.VirtualThread.park(VirtualThread.java:582)", "java.base\/java.lang.System$2.parkVirtualThread(System.java:2636)", "java.base\/jdk.internal.misc.VirtualThreads.park(VirtualThreads.java:54)", "java.base\/java.util.concurrent.locks.LockSupport.park(LockSupport.java:369)", "java.base\/sun.nio.ch.Poller.pollIndirect(Poller.java:139)", "java.base\/sun.nio.ch.Poller.poll(Poller.java:102)", "java.base\/sun.nio.ch.Poller.poll(Poller.java:89)", "java.base\/sun.nio.ch.SelChImpl.park(SelChImpl.java:88)", "java.base\/sun.nio.ch.SelChImpl.park(SelChImpl.java:116)", "java.base\/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:928)", "TestSocketChannels.connectChannels(TestSocketChannels.java:213)", "TestSocketChannels.testBasicIOWithDifferentSessions(TestSocketChannels.java:192)", ``` It's likely this is another case of JDK-8282726. Unfortunately we've got nowhere with Microsoft on this, so little hope that they will fix this bug on older versions of Windows.
19-08-2023

Here's a log file snippet for the jdk-22+12-831-tier5 sighting: java/foreign/channels/TestSocketChannels.java #section:testng ----------messages:(9/412)---------- command: testng TestSocketChannels reason: User specified action: run testng/othervm TestSocketChannels started: Sat Aug 19 12:27:34 UTC 2023 Mode: othervm [/othervm specified] Additional options from @modules: --add-modules java.base --add-exports java.base/sun.nio.ch=ALL-UNNAMED Timeout information: --- Timeout information end. finished: Sat Aug 19 12:39:13 UTC 2023 elapsed time (seconds): 698.95 ----------configuration:(4/101)---------- Boot Layer add modules: java.base add exports: java.base/sun.nio.ch ALL-UNNAMED ----------System.out:(7/433)---------- Seed from RandomFactory = -1597236155383029885L test TestSocketChannels.testBasicHeapIOWithGlobalSession(): success test TestSocketChannels.testBasicIO(shared arena): success test TestSocketChannels.testBasicIO(confined arena): success test TestSocketChannels.testBasicIOWithClosedSegment(shared arena): success test TestSocketChannels.testBasicIOWithClosedSegment(confined arena): success Timeout signalled after 480 seconds ----------System.err:(0/0)---------- ----------rerun:(48/6871)*----------
19-08-2023