-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: repo-valhalla, 11.0.31-oracle, 21.0.11-oracle, 25.0.3-oracle, 8u491
-
Component/s: core-libs
-
x86_64
-
linux
The following test has failed in various CIs:
java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java
Here's a snippet for a failing run:
#section:testng
----------messages:(7/277)----------
command: testng InheritedChannelTest
reason: User specified action: run testng/othervm/native InheritedChannelTest
started: Mon Dec 01 07:39:49 UTC 2025
Mode: othervm [/othervm specified]
Process id: 99628
finished: Mon Dec 01 07:40:05 UTC 2025
elapsed time (seconds): 16.326
----------configuration:(0/0)----------
----------System.out:(129/14077)----------
LD_LIBRARY_PATH=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25.0.3+1-51/linux-x64.test/jdk/jtreg/native
Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-25.0.3+1-51/linux-x64.jdk/jdk-25.0.3/bin/java -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/tmp -ea -esa --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED UnixDomainChannelTest]
[2025-12-01T07:39:49.632941613Z] Gathering output for process 99653
[2025-12-01T07:39:49.637329269Z] Waiting for completion for process 99653
[2025-12-01T07:39:49.854392067Z] Waiting for completion finished for process 99653
Output and diagnostic info for process 99653 was saved into 'pid-99653-output.log'
test1: launching child
test2: launching child
test3: launching child
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by Launcher in an unnamed module (file:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
<snip>
test InheritedChannelTest.test("UnixSocketTest", [UnixSocketTest]): success [166ms]
LD_LIBRARY_PATH=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25.0.3+1-51/linux-x64.test/jdk/jtreg/native
Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-25.0.3+1-51/linux-x64.jdk/jdk-25.0.3/bin/java -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/tmp -ea -esa --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED StateTest -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.d]
[2025-12-01T07:39:50.034553915Z] Gathering output for process 99808
[2025-12-01T07:39:50.034736153Z] Waiting for completion for process 99808
[2025-12-01T07:40:05.218910361Z] Waiting for completion finished for process 99808
Output and diagnostic info for process 99808 was saved into 'pid-99808-output.log'
Using INET (IPv4) channel
Socket bound to /127.0.0.1:42501
Listener bound to: /100.103.60.85:42781
launchWithInetSocketChannel
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by Launcher in an unnamed module (file:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Waiting for test results
Waiting for the service to connect
Waiting for the service to report test result
Cleaning up
Examine test result
launchWithInetServerSocketChannel
Waiting for the service to connect
Waiting for the service to report test result
Cleaning up
Examine test result
launchWithDatagramChannel
Waiting for the service to connect
Exception in thread "main" java.io.IOException: Timed out waiting for service to report test result
at StateTest.waitForTestResult(StateTest.java:85)
at StateTest.main(StateTest.java:194)
test InheritedChannelTest.test("StateTest", java.util.ImmutableCollections$List12@3d927344): failure [15190ms]
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:522)
at InheritedChannelTest.test(InheritedChannelTest.java:98)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.base/java.lang.Thread.run(Thread.java:1474)
===============================================
java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java
Total tests run: 6, Passes: 5, Failures: 1, Skips: 0
===============================================
----------System.err:(40/2166)----------
stdout: [Using INET (IPv4) channel
Socket bound to /127.0.0.1:42501
];
stderr: [Listener bound to: /100.103.60.85:42781
launchWithInetSocketChannel
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by Launcher in an unnamed module (file:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Waiting for test results
Waiting for the service to connect
Waiting for the service to report test result
Cleaning up
Examine test result
launchWithInetServerSocketChannel
Waiting for the service to connect
Waiting for the service to report test result
Cleaning up
Examine test result
launchWithDatagramChannel
Waiting for the service to connect
Exception in thread "main" java.io.IOException: Timed out waiting for service to report test result
at StateTest.waitForTestResult(StateTest.java:85)
at StateTest.main(StateTest.java:194)
]
exitValue = 1
java.lang.Exception: config failures: 0, test failures: 1
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:111)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:63)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1474)
JavaTest Message: Test threw exception: java.lang.Exception: config failures: 0, test failures: 1
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.Exception: config failures: 0, test failures: 1
----------rerun:(42/8398)*----------
java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java
Here's a snippet for a failing run:
#section:testng
----------messages:(7/277)----------
command: testng InheritedChannelTest
reason: User specified action: run testng/othervm/native InheritedChannelTest
started: Mon Dec 01 07:39:49 UTC 2025
Mode: othervm [/othervm specified]
Process id: 99628
finished: Mon Dec 01 07:40:05 UTC 2025
elapsed time (seconds): 16.326
----------configuration:(0/0)----------
----------System.out:(129/14077)----------
LD_LIBRARY_PATH=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25.0.3+1-51/linux-x64.test/jdk/jtreg/native
Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-25.0.3+1-51/linux-x64.jdk/jdk-25.0.3/bin/java -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/tmp -ea -esa --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED UnixDomainChannelTest]
[2025-12-01T07:39:49.632941613Z] Gathering output for process 99653
[2025-12-01T07:39:49.637329269Z] Waiting for completion for process 99653
[2025-12-01T07:39:49.854392067Z] Waiting for completion finished for process 99653
Output and diagnostic info for process 99653 was saved into 'pid-99653-output.log'
test1: launching child
test2: launching child
test3: launching child
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by Launcher in an unnamed module (file:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
<snip>
test InheritedChannelTest.test("UnixSocketTest", [UnixSocketTest]): success [166ms]
LD_LIBRARY_PATH=/opt/mach5/mesos/work_dir/jib-master/install/jdk-25.0.3+1-51/linux-x64.test/jdk/jtreg/native
Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-25.0.3+1-51/linux-x64.jdk/jdk-25.0.3/bin/java -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/24/36/bundles/linux-x64/jdk-24_linux-x64_bin.tar.gz/jdk-24 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/tmp -ea -esa --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED StateTest -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.d]
[2025-12-01T07:39:50.034553915Z] Gathering output for process 99808
[2025-12-01T07:39:50.034736153Z] Waiting for completion for process 99808
[2025-12-01T07:40:05.218910361Z] Waiting for completion finished for process 99808
Output and diagnostic info for process 99808 was saved into 'pid-99808-output.log'
Using INET (IPv4) channel
Socket bound to /127.0.0.1:42501
Listener bound to: /100.103.60.85:42781
launchWithInetSocketChannel
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by Launcher in an unnamed module (file:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Waiting for test results
Waiting for the service to connect
Waiting for the service to report test result
Cleaning up
Examine test result
launchWithInetServerSocketChannel
Waiting for the service to connect
Waiting for the service to report test result
Cleaning up
Examine test result
launchWithDatagramChannel
Waiting for the service to connect
Exception in thread "main" java.io.IOException: Timed out waiting for service to report test result
at StateTest.waitForTestResult(StateTest.java:85)
at StateTest.main(StateTest.java:194)
test InheritedChannelTest.test("StateTest", java.util.ImmutableCollections$List12@3d927344): failure [15190ms]
java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:522)
at InheritedChannelTest.test(InheritedChannelTest.java:98)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
at org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.base/java.lang.Thread.run(Thread.java:1474)
===============================================
java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java
Total tests run: 6, Passes: 5, Failures: 1, Skips: 0
===============================================
----------System.err:(40/2166)----------
stdout: [Using INET (IPv4) channel
Socket bound to /127.0.0.1:42501
];
stderr: [Listener bound to: /100.103.60.85:42781
launchWithInetSocketChannel
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by Launcher in an unnamed module (file:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S26388/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9ea66f7b-350f-4ac6-9adc-23420b4d0992/runs/a27fe2a6-e83d-4c84-b7cd-c12afc16a952/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/classes/3/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.d/)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Waiting for test results
Waiting for the service to connect
Waiting for the service to report test result
Cleaning up
Examine test result
launchWithInetServerSocketChannel
Waiting for the service to connect
Waiting for the service to report test result
Cleaning up
Examine test result
launchWithDatagramChannel
Waiting for the service to connect
Exception in thread "main" java.io.IOException: Timed out waiting for service to report test result
at StateTest.waitForTestResult(StateTest.java:85)
at StateTest.main(StateTest.java:194)
]
exitValue = 1
java.lang.Exception: config failures: 0, test failures: 1
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:111)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:63)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1474)
JavaTest Message: Test threw exception: java.lang.Exception: config failures: 0, test failures: 1
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.Exception: config failures: 0, test failures: 1
----------rerun:(42/8398)*----------
- relates to
-
JDK-8255463 java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java failed with ThreadTimeoutException
-
- Resolved
-