TestAliasingFuzzer.javaTest cases:
- compiler/loopopts/superword/TestAliasingFuzzer.java#vanilla
- compiler/loopopts/superword/TestAliasingFuzzer.java#random-flags
--------------------------------------------------------------------------------------------------------------
TestAliasingFuzzer.java generates 30 subtests for every run. They are randomized. Some vectorize and execute faster, some fail to vectorize and execute slower.
Hence, some natural variance in the duration is expected.
On most machines, it seems the variance in "Running Tests" is about 30-50sec (total test time about 35-70sec). But on some machines (macosx-x64-debug), the execution time is a bit slower: 60-100 in "Running Tests", with some outliers at 110+sec. These occasionally trip the 120sec timeout, and when they trip it, they somehow cause the harness to take an excessive 9+min to shut everything down.
Solutions:
- Option 1: generate fewer tests in TestAliasingFuzzer.java. Would be sad, the test has now found 2 real bugs within 2 weeks.
- Option 2: increase test timeout. That is what I'll do.
--------------------------------------------------------------------------------------------------------------
The main logs show e.g.
Output and diagnostic info for process 85024 was saved into 'pid-85024-output.log'
Code Generation: 1.2900121
Code Compilation: 12.093837
Running Tests: 109.559235
----------System.err:(3/35)----------
JavaTest Message: Test complete.
result: Error. "driver" action timed out with a timeout of 120 seconds on agent 42
The timeout handler logs and crash dumps show nothing. The driver process appears to be executing no test code at all and the main threads is doing I/O:
"tid": "3",
"time": "2025-09-04T18:28:03.735156Z",
"name": "main",
"state": "RUNNABLE",
"stack": [
"java.base\/sun.nio.ch.Net.poll(Native Method)",
"java.base\/sun.nio.ch.NioSocketImpl.park(NioSocketImpl.java:190)",
"java.base\/sun.nio.ch.NioSocketImpl.timedRead(NioSocketImpl.java:279)",
"java.base\/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:302)",
"java.base\/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:354)",
"java.base\/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:798)",
"java.base\/java.net.Socket$SocketInputStream.implRead(Socket.java:981)",
"java.base\/java.net.Socket$SocketInputStream.read(Socket.java:971)",
"java.base\/java.io.BufferedInputStream.fill(BufferedInputStream.java:289)",
"java.base\/java.io.BufferedInputStream.read(BufferedInputStream.java:308)",
"java.base\/java.io.FilterInputStream.read(FilterInputStream.java:71)",
"com.sun.javatest.regtest.agent.AgentServer.run(AgentServer.java:238)",
"com.sun.javatest.regtest.agent.AgentServer.main(AgentServer.java:71)"
Suspicion is that this could be a test harness and/or infra issue as we have seen similar odd timeouts.