The following test failed in the JDK18 CI:
runtime/ErrorHandling/TestOnOutOfMemoryError.java
Here's a snippet from the log file:
----------System.out:(6/3923)----------
Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+25-1631/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S91421/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ec7bd041-0ae9-4ba6-bfde-15c23211e4e0/runs/e35c5634-7249-4755-9c57-a8319af70a8f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/runtime/ErrorHandling/TestOnOutOfMemoryError.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+25-1631/src.full/open/test/hotspot/jtreg/runtime/ErrorHandling:/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S91421/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ec7bd041-0ae9-4ba6-bfde-15c23211e4e0/runs/e35c5634-7249-4755-9c57-a8319af70a8f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:OnOutOfMemoryError=echo Test1 Succeeded TestOnOutOfMemoryError throwOOME ]
Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+25-1631/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S91421/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ec7bd041-0ae9-4ba6-bfde-15c23211e4e0/runs/e35c5634-7249-4755-9c57-a8319af70a8f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/runtime/ErrorHandling/TestOnOutOfMemoryError.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+25-1631/src.full/open/test/hotspot/jtreg/runtime/ErrorHandling:/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S91421/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ec7bd041-0ae9-4ba6-bfde-15c23211e4e0/runs/e35c5634-7249-4755-9c57-a8319af70a8f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:OnOutOfMemoryError=echo Test1 Succeeded -XX:OnOutOfMemoryError=echo Test2 Succeeded TestOnOutOfMemoryError throwOOME ]
[2021-11-18T18:28:53.843392Z] Gathering output for process 23635
[2021-11-18T18:28:53.856175Z] Gathering output for process 23637
[2021-11-18T18:28:53.890964Z] Waiting for completion for process 23635
[2021-11-18T18:28:53.891110Z] Waiting for completion finished for process 23635
----------System.err:(18/813)----------
stdout: [Error occurred during initialization of VM
Unable to read generic CDS file map header from shared archive
];
stderr: []
exitValue = 1
java.lang.RuntimeException: 'Requested array size exceeds VM limit' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
at TestOnOutOfMemoryError.main(TestOnOutOfMemoryError.java:76)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:833)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Requested array size exceeds VM limit' missing from stdout/stderr
runtime/ErrorHandling/TestOnOutOfMemoryError.java
Here's a snippet from the log file:
----------System.out:(6/3923)----------
Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+25-1631/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S91421/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ec7bd041-0ae9-4ba6-bfde-15c23211e4e0/runs/e35c5634-7249-4755-9c57-a8319af70a8f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/runtime/ErrorHandling/TestOnOutOfMemoryError.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+25-1631/src.full/open/test/hotspot/jtreg/runtime/ErrorHandling:/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S91421/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ec7bd041-0ae9-4ba6-bfde-15c23211e4e0/runs/e35c5634-7249-4755-9c57-a8319af70a8f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:OnOutOfMemoryError=echo Test1 Succeeded TestOnOutOfMemoryError throwOOME ]
Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+25-1631/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S91421/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ec7bd041-0ae9-4ba6-bfde-15c23211e4e0/runs/e35c5634-7249-4755-9c57-a8319af70a8f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/runtime/ErrorHandling/TestOnOutOfMemoryError.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+25-1631/src.full/open/test/hotspot/jtreg/runtime/ErrorHandling:/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S91421/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ec7bd041-0ae9-4ba6-bfde-15c23211e4e0/runs/e35c5634-7249-4755-9c57-a8319af70a8f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -XX:OnOutOfMemoryError=echo Test1 Succeeded -XX:OnOutOfMemoryError=echo Test2 Succeeded TestOnOutOfMemoryError throwOOME ]
[2021-11-18T18:28:53.843392Z] Gathering output for process 23635
[2021-11-18T18:28:53.856175Z] Gathering output for process 23637
[2021-11-18T18:28:53.890964Z] Waiting for completion for process 23635
[2021-11-18T18:28:53.891110Z] Waiting for completion finished for process 23635
----------System.err:(18/813)----------
stdout: [Error occurred during initialization of VM
Unable to read generic CDS file map header from shared archive
];
stderr: []
exitValue = 1
java.lang.RuntimeException: 'Requested array size exceeds VM limit' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
at TestOnOutOfMemoryError.main(TestOnOutOfMemoryError.java:76)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:833)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Requested array size exceeds VM limit' missing from stdout/stderr