JDK-8272474 : jdk/jfr/startupargs/TestMemoryOptions.java timed out
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 18
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows
  • CPU: x86_64
  • Submitted: 2021-08-14
  • Updated: 2022-01-14
  • Resolved: 2022-01-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
Description
The following test timed out in the JDK18 CI:

jdk/jfr/startupargs/TestMemoryOptions.java

Here's a snippet from the log file:

#section:main
----------messages:(9/395)----------
command: main jdk.jfr.startupargs.TestMemoryOptions
reason: User specified action: run main/timeout=900 jdk.jfr.startupargs.TestMemoryOptions 
Mode: agentvm
Agent id: 32
Additional exports to unnamed modules from @modules: jdk.jfr/jdk.jfr.internal java.base/jdk.internal.misc
Timeout refired 3600 times
Timeout information:
--- Timeout information end.
elapsed time (seconds): 3641.131
----------configuration:(18/1571)*----------
Boot Layer
  class path: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\javatest.jar 
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\jtreg.jar 
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\junit.jar 
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\hamcrest.jar 
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\testng.jar 
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\jcommander.jar 
              C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\guice.jar 
  patch:      java.base T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jfr\\patches\\java.base

Test Layer
  add exports: java.base/jdk.internal.misc ALL-UNNAMED
               jdk.jfr/jdk.jfr.internal    ALL-UNNAMED
  class path:  T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jfr\\classes\\2\\jdk\\jfr\\startupargs\\TestMemoryOptions.d 
               C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+11-518\\src.full\\open\\test\\jdk\\jdk\\jfr\\startupargs 
               T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jfr\\classes\\2\\test\\lib 
               C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+11-518\\src.full\\open\\test\\lib 

----------rerun:(35/4803)*----------

<snip>

----------stderr:(4/484)----------
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by com.sun.javatest.regtest.agent.RegressionSecurityManager (file:/C:/ade/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jtreg.jar)
WARNING: Please consider reporting this to the maintainers of com.sun.javatest.regtest.agent.RegressionSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
----------System.out:(118/11939)*----------
Testing 24 number of testcases
Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+11-518\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jfr\\classes\\2\\jdk\\jfr\\startupargs\\TestMemoryOptions.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+11-518\\src.full\\open\\test\\jdk\\jdk\\jfr\\startupargs;T:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jfr\\classes\\2\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\jtreg.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\junit.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\hamcrest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\testng.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\jcommander.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6\\1\\bundles\\jtreg-6+1.zip\\jtreg\\lib\\guice.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=t:\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jfr\\tmp -ea -esa --add-exports=jdk.jfr/jdk.jfr.internal=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED -XX:StartFlightRecording jdk.jfr.startupargs.TestMemoryOptions$SUT DefaultOptionsPositive ]
null
SUT VM is expected to start

<snip>

Parameter name: globalbuffersize
null
Input value: N/A
Predicted to start VM: true
Parameter name: numglob
result: Error. Agent error: java.lang.Exception: Agent 32 timed out with a timeout of 3600 seconds; check console log for any additional details


test result: Error. Agent error: java.lang.Exception: Agent 32 timed out with a timeout of 3600 seconds; check console log for any additional details


It looks like the test simply took too long to run, but with a 60
minute timeout that seems like that shouldn't have happened.
Comments
There are other failure modes of this test (jdk/jfr/startupargs/TestMemoryOptions.java) being tracked in this bug: JDK-8251849 jdk/jfr/startupargs/TestDumpOnExit.java failed with "exitValue = -1073741819" This makes me wonder about the stability of this test on the Windows platform at least...
14-08-2021