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

cds/appcds/loaderConstraints/LoaderConstraintsTest.java fails on x86_32 due to customized class loader is not supported

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      x86
    • OS:
      linux

      Description

      [STDERR]
      An error has occurred while processing class list file /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/runtime.cds.appcds.loaderConstraints.LoaderConstraintsTest.java-test.classlist 3:45.
      AppCDS custom class loaders not supported on this platform:
      LoaderConstraintsApp id: 2 super: 1 source: /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/loader_constraints.jar
                                                  ^




      Command line: [/home/jdk/build/linux-x86-server-fastdebug/images/jdk/bin/java -cp /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/classes/0/runtime/cds/appcds/loaderConstraints/LoaderConstraintsTest.d:/home/jdk/test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints:/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/classes/0/test/lib:/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/classes/0/test/hotspot/jtreg/runtime/cds/appcds:/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/classes/0/test/hotspot/jtreg/runtime/cds/appcds/test-classes:/opt/jtreg/lib/javatest.jar:/opt/jtreg/lib/jtreg.jar:/opt/jtreg/lib/junit.jar:/opt/jtreg/lib/testng.jar:/opt/jtreg/lib/jcommander.jar -XX:MaxRAMPercentage=0.284091 -Djava.io.tmpdir=/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/tmp -Xshare:on -showversion -XX:SharedArchiveFile=/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/appcds-00h27m33s151.jsa -Dtest.timeout.factor=4.0 -cp /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/custom_app_loader.jar -Xlog:cds -Xlog:class+loader+constraints=debug --add-exports java.base/jdk.internal.misc=ALL-UNNAMED CustomAppLoader /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/loader_constraints.jar LoaderConstraintsApp 1 ]
      [2021-05-26T00:27:33.529983038Z] Gathering output for process 55050
      [ELAPSED: 22 ms]
      [logging stdout to /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/runtime.cds.appcds.loaderConstraints.LoaderConstraintsTest.java-0005-exec.stdout]
      [logging stderr to /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/runtime.cds.appcds.loaderConstraints.LoaderConstraintsTest.java-0005-exec.stderr]
      [STDERR]
      An error has occurred while processing the shared archive file.
      Specified shared archive not found (/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/appcds-00h27m33s151.jsa).

      [2021-05-26T00:27:33.551104190Z] Waiting for completion for process 55050
      [2021-05-26T00:27:33.551461054Z] Waiting for completion finished for process 55050
      [2021-05-26T00:27:33.551574001Z] Waiting for completion for process 55050
      [2021-05-26T00:27:33.551618485Z] Waiting for completion finished for process 55050
      [2021-05-26T00:27:33.551669902Z] Waiting for completion for process 55050
      [2021-05-26T00:27:33.551714822Z] Waiting for completion finished for process 55050
      [2021-05-26T00:27:33.551770849Z] Waiting for completion for process 55050
      [2021-05-26T00:27:33.551815059Z] Waiting for completion finished for process 55050
      STDERR:
       stdout: [[0.000s][info][cds] optimized module handling: disabled due to incompatible property: jdk.module.addexports.0=java.base/jdk.internal.misc=ALL-UNNAMED
      [0.012s][info][cds] trying to map /home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/appcds-00h27m33s151.jsa
      Error occurred during initialization of VM
      Unable to use shared archive.
      ];
       stderr: [An error has occurred while processing the shared archive file.
      Specified shared archive not found (/home/jdk/build/linux-x86-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_runtime_cds_appcds_loaderConstraints_LoaderConstraintsTest_java/scratch/0/appcds-00h27m33s151.jsa).
      ]
       exitValue = 1

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

              at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:474)
              at jdk.test.lib.cds.CDSTestUtils$Result.assertNormalExit(CDSTestUtils.java:195)
              at LoaderConstraintsTest.runWithArchive(LoaderConstraintsTest.java:107)
              at LoaderConstraintsTest.doTestCustomLoader(LoaderConstraintsTest.java:100)
              at LoaderConstraintsTest.main(LoaderConstraintsTest.java:116)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:568)
              at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
              at java.base/java.lang.Thread.run(Thread.java:831)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: