Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277404

Test VMDeprecatedOptions.java failing with Unable to create shared archive file

    XMLWordPrintable

Details

    • b25

    Description

      Test is failing because it is trying to dump the archive while it is using the archive.

      The following test fails in the JDK18 CI:

      runtime/CommandLine/VMDeprecatedOptions.java

      Here's a snippet from the log file:

      ----------System.out:(6/1967)*----------
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+25-1625\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\bin\\java.exe -cp T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_tier1_runtime\\classes\\5\\runtime\\CommandLine\\VMDeprecatedOptions.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+25-1625\\src.full\\open\\test\\hotspot\\jtreg\\runtime\\CommandLine;T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_tier1_runtime\\classes\\5\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\javatest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\jtreg.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\junit.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\hamcrest.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\testng.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\jcommander.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\6.1\\1\\bundles\\jtreg-6.1+1.zip\\jtreg\\lib\\guice.jar -XX:MaxGCMinorPauseMillis=1032 -XX:MaxRAMFraction=8 -XX:MinRAMFraction=2 -XX:InitialRAMFraction=64 -XX:-TLABStats -XX:+AllowRedefinitionToAddDeleteMethods -XX:-UseSharedSpaces -XX:+RequireSharedSpaces -XX:+DumpSharedSpaces -XX:+DynamicDumpSharedSpaces -XX:DefaultMaxRAMFraction=4 -XX:-CreateMinidumpOnCrash -version ]
      [2021-11-18T13:47:41.965797700Z] Gathering output for process 14788
      [2021-11-18T13:47:41.981516700Z] Waiting for completion for process 14788
      [2021-11-18T13:47:44.233415Z] Waiting for completion finished for process 14788
      [2021-11-18T13:47:44.233415Z] Waiting for completion for process 14788
      [2021-11-18T13:47:44.233415Z] Waiting for completion finished for process 14788
      ----------System.err:(34/3034)*----------
       stdout: [Error occurred during initialization of VM
      Unable to use shared archive.
      ];
       stderr: [Java HotSpot(TM) 64-Bit Server VM warning: Option MaxGCMinorPauseMillis was deprecated in version 8.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option MinRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option InitialRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option TLABStats was deprecated in version 12.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option AllowRedefinitionToAddDeleteMethods was deprecated in version 13.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option UseSharedSpaces was deprecated in version 18.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option RequireSharedSpaces was deprecated in version 18.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option DumpSharedSpaces was deprecated in version 18.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option DynamicDumpSharedSpaces was deprecated in version 18.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Option DefaultMaxRAMFraction was deprecated in version 8.0 and will likely be removed in a future release. Use option MaxRAMFraction instead.
      Java HotSpot(TM) 64-Bit Server VM warning: Option CreateMinidumpOnCrash was deprecated in version 9.0 and will likely be removed in a future release. Use option CreateCoredumpOnCrash instead.
      Java HotSpot(TM) 64-Bit Server VM warning: Cannot dump shared archive while using shared archive
      An error has occurred while processing the shared archive file.
      Unable to create shared archive file c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+25-1625\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\bin\\server\\classes.jsa: (Unknown error).
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0]

      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489)
      at VMDeprecatedOptions.testDeprecated(VMDeprecatedOptions.java:76)
      at VMDeprecatedOptions.main(VMDeprecatedOptions.java:110)
      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: Expected to get exit value of [0]

      Attachments

        Issue Links

          Activity

            People

              hseigel Harold Seigel (Inactive)
              hseigel Harold Seigel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: