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

runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java sub-tests fail with exitValue = 134

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux, os_x

      Description

      The following test failed in the JDK18 CI:

      runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java#default-cl

      Here's a snippet from the log file:

       [82.927s][info][class,load] java.security.AllPermission source: shared objects file
      [82.935s][info][class,load] java.security.UnresolvedPermission source: shared objects file
      [84.335s][info][class,load] LoaderConstraintsApp source: file:/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S106356/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0e77d5fd-73b0-4e93-a164-65cce5e5c1c3/runs/07c4a7dd-5fec-484f-951f-7e3ca49c7b99/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/loader_constraints.jar
      [84.335s][info][class,load] sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo source: jrt:/jdk.localedata
      [84.383s][info][class,load] java.lang.NamedPackage source: shared objects file
      [84.834s][info][class,loader,constraints] adding new constraint for name: sun/util/locale/provider/LocaleProviderAdapter$Type, loader[0]: 'platform', loader[1]: 'bootstrap'
      [84.834s][info][class,loader,constraints] [CDS record loader constraint for class: sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo constraint_name: sun/util/locale/provider/LocaleProviderAdapter$Type loader[0]: 'platform' loader[1]: 'bootstrap' total 1]
      [84.834s][info][class,loader,constraints] adding new constraint for name: java/lang/String, loader[0]: 'platform', loader[1]: 'bootstrap'
      [84.834s][info][class,loader,constraints] [CDS record loader constraint for class: sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo constraint_name: java/lang/String loader[0]: 'platform' loader[1]: 'bootstrap' total 2]
      [84.834s][info][class,loader,constraints] [CDS record loader constraint for class: sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo constraint_name: java/lang/String loader[0]: 'platform' loader[1]: 'bootstrap' already added]
      [85.894s][info][class,load ] java.util.ServiceLoader$1 source: shared objects file
      [86.003s][info][class,load ] java.util.ServiceLoader$ProviderImpl source: shared objects file
      [86.150s][info][class,load ] com.sun.net.httpserver.HttpHandler source: jrt:/jdk.httpserver
      [86.429s][info][class,load ] sun.util.resources.provider.NonBaseLocaleDataMetaInfo source: jrt:/jdk.localedata
      [86.622s][info][class,loader,constraints] adding new constraint for name: java/io/PrintStream, loader[0]: 'app', loader[1]: 'bootstrap'
      [86.682s][info][class,loader,constraints] adding new constraint for name: java/lang/ClassLoader, loader[0]: 'app', loader[1]: 'bootstrap'
      [86.745s][info][class,loader,constraints] [CDS record loader constraint for class: sun.util.resources.provider.NonBaseLocaleDataMetaInfo constraint_name: sun/util/locale/provider/LocaleProviderAdapter$Type loader[0]: 'platform' loader[1]: 'bootstrap' total 1]
      [86.745s][info][class,loader,constraints] [CDS record loader constraint for class: sun.util.resources.provider.NonBaseLocaleDataMetaInfo constraint_name: java/lang/String loader[0]: 'platform' loader[1]: 'bootstrap' total 2]
      [86.745s][info][class,loader,constraints] [CDS record loader constraint for class: sun.util.resources.provider.NonBaseLocaleDataMetaInfo constraint_name: java/lang/String loader[0]: 'platform' loader[1]: 'bootstrap' already added]
      [87.154s][info][class,load ] com.sun.net.httpserver.HttpExchange source: jrt:/jdk.httpserver
      [87.162s][info][class,loader,constraints] adding new constraint for name: java/lang/invoke/MethodHandles$Lookup, loader[0]: 'app', loader[1]: 'bootstrap'
      [87.162s][info][class,loader,constraints] adding new constraint for name: java/lang/invoke/MethodType, loader[0]: 'app', loader[1]: 'bootstrap'
      [87.162s][info][class,loader,constraints] adding new constraint for name: java/lang/invoke/CallSite, loader[0]: 'app', loader[1]: 'bootstrap'
      [87.362s][info][class,load ] java.lang.invoke.MethodHandleImpl$AsVarargsCollector source: shared objects file
      [88.436s][info][class,load ] sun.util.locale.provider.LocaleResources source: shared objects file
      [88.521s][info][class,load ] sun.util.resources.LocaleData source: shared objects file
      [88.689s][info][class,load ] sun.util.resources.LocaleData$1 source: shared objects file
      [88.889s][info][class,load ] sun.util.resources.Bundles$Strategy source: shared objects file
      [88.894s][info][class,load ] sun.util.resources.LocaleData$LocaleDataStrategy source: shared objects file
      [88.974s][info][class,load ] sun.util.resources.Bundles source: shared objects file
      [89.245s][info][class,load ] sun.util.resources.Bundles$1 source: shared objects file
      [89.292s][info][class,load ] jdk.internal.access.JavaUtilResourceBundleAccess source: shared objects file
      [89.298s][info][class,load ] java.util.ResourceBundle$1 source: shared objects file
      [89.327s][info][class,load ] java.util.ResourceBundle$2 source: shared objects file
      [89.374s][info][class,load ] sun.util.resources.Bundles$CacheKey source: shared objects file
      [89.557s][info][class,load ] java.util.Arrays$ArrayItr source: shared objects file
      [91.008s][info][class,load ] sun.util.resources.OpenListResourceBundle source: jrt:/java.base
      [91.013s][info][class,load ] sun.util.resources.TimeZoneNamesBundle source: jrt:/java.base
      [91.018s][info][class,load ] sun.util.resources.cldr.TimeZoneNames source: jrt:/java.base
      [91.267s][info][class,load ] java.util.ResourceBundle$ResourceBundleProviderHelper source: shared objects file
      [91.924s][info][class,load ] java.util.ResourceBundle$ResourceBundleProviderHelper$$Lambda$21/0x000000080104c728 source: java.util.ResourceBundle
      [93.275s][info][class,load ] sun.util.resources.Bundles$CacheKeyReference source: shared objects file
      [93.282s][info][class,load ] sun.util.resources.Bundles$BundleReference source: shared objects file
      [93.314s][info][class,load ] sun.util.resources.cldr.TimeZoneNames_en source: jrt:/java.base
      [94.263s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801002000 source: __JVM_LookupDefineClass__
      [94.507s][info][class,load ] java.util.LinkedHashMap$LinkedKeySet source: jrt:/java.base
      [95.768s][info][class,load ] sun.util.locale.provider.LocaleResources$ResourceReference source: shared objects file
      [95.950s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LL source: shared objects file
      [100.385s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801002400 source: __JVM_LookupDefineClass__
      [100.834s][info][class,load ] sun.util.resources.TimeZoneNames source: jrt:/java.base
      [101.302s][info][class,load ] sun.util.resources.TimeZoneNames_en source: jrt:/java.base
      [103.544s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801002800 source: __JVM_LookupDefineClass__
      [104.379s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLL source: shared objects file
      [105.097s][info][class,load ] java.lang.Readable source: shared objects file
      [105.104s][info][class,load ] java.nio.CharBuffer source: shared objects file
      [106.184s][info][class,load ] java.nio.HeapCharBuffer source: shared objects file
      [106.797s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801002c00 source: __JVM_LookupDefineClass__
      [107.510s][info][class,load ] java.lang.invoke.MethodHandles$1 source: shared objects file
      [107.617s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LJ source: shared objects file
      [107.808s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801003000 source: __JVM_LookupDefineClass__
      [107.843s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLLL source: shared objects file
      [108.070s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801003400 source: __JVM_LookupDefineClass__
      real HttpExchange = 1421795058
      [108.785s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801003800 source: __JVM_LookupDefineClass__
      real HttpExchange (loader) = jdk.internal.loader.ClassLoaders$PlatformClassLoader@4a574795
      [109.035s][info][class,loader,constraints] adding new constraint for name: java/security/ProtectionDomain, loader[0]: 'app', loader[1]: 'bootstrap'
      [111.395s][info][class,loader,constraints] adding new constraint for name: java/io/InputStream, loader[0]: 'app', loader[1]: 'bootstrap'
      [111.403s][info][class,load ] java.net.URLConnection source: jrt:/java.base
      [111.414s][info][class,load ] sun.net.www.URLConnection source: jrt:/java.base
      [111.420s][info][class,load ] sun.net.www.protocol.jrt.JavaRuntimeURLConnection source: jrt:/java.base
      [111.570s][info][class,load ] sun.net.www.protocol.jrt.JavaRuntimeURLConnection$$Lambda$22/0x000000080104dee8 source: sun.net.www.protocol.jrt.JavaRuntimeURLConnection
      [111.973s][info][class,load ] sun.net.www.MessageHeader source: jrt:/java.base
      [112.255s][info][class,load ] sun.net.www.protocol.jrt.JavaRuntimeURLConnection$1 source: jrt:/java.base
      [112.323s][info][class,load ] jdk.internal.jimage.ImageBufferCache source: jrt:/java.base
      [112.337s][info][class,load ] jdk.internal.jimage.ImageBufferCache$1 source: jrt:/java.base
      [112.354s][info][class,load ] jdk.internal.jimage.ImageBufferCache$2 source: jrt:/java.base
      [112.402s][info][class,load ] java.util.AbstractMap$SimpleEntry source: jrt:/java.base
      [112.427s][info][class,load ] java.util.Arrays$LegacyMergeSort source: shared objects file
      [112.449s][info][class,load ] java.util.TimSort source: shared objects file
      [112.626s][info][class,load ] com.sun.net.httpserver.HttpExchange source: __JVM_DefineClass__
      fake HttpExchange = 468121027
      fake HttpExchange (loader) = jdk.internal.loader.ClassLoaders$AppClassLoader@3d4eac69
      [115.244s][info][class,load ] MyHttpHandlerB source: file:/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S106356/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0e77d5fd-73b0-4e93-a164-65cce5e5c1c3/runs/07c4a7dd-5fec-484f-951f-7e3ca49c7b99/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/loader_constraints.jar
      [115.691s][info][class,load ] MyClassLoader source: file:/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S106356/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0e77d5fd-73b0-4e93-a164-65cce5e5c1c3/runs/07c4a7dd-5fec-484f-951f-7e3ca49c7b99/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/loader_constraints.jar
      [115.752s][info][class,load ] java.io.IOException source: jrt:/java.base
      [115.758s][info][class,loader,constraints] [CDS record loader constraint for class: MyClassLoader constraint_name: java/lang/String loader[0]: 'app' loader[1]: 'bootstrap' total 1]
      [115.758s][info][class,loader,constraints] [CDS record loader constraint for class: MyClassLoader constraint_name: java/lang/Class loader[0]: 'app' loader[1]: 'bootstrap' total 2]
      [116.550s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801004000 source: __JVM_LookupDefineClass__
      [116.631s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801004400 source: __JVM_LookupDefineClass__
      [116.935s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801004800 source: __JVM_LookupDefineClass__
      [118.842s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801004c00 source: __JVM_LookupDefineClass__
      [118.900s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801005000 source: __JVM_LookupDefineClass__
      [118.927s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801005400 source: __JVM_LookupDefineClass__
      [120.129s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLLLL source: shared objects file
      [120.552s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801005800 source: __JVM_LookupDefineClass__
      [121.102s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLLLLL source: shared objects file
      [121.217s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801005c00 source: __JVM_LookupDefineClass__
      [122.082s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLLLLLL source: shared objects file
      [122.169s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801006000 source: __JVM_LookupDefineClass__
      MyClassLoader: loadClass("MyHttpHandlerC", false)
      [123.085s][info][class,load ] java.net.JarURLConnection source: jrt:/java.base
      [123.094s][info][class,load ] sun.net.www.protocol.jar.JarURLConnection source: jrt:/java.base
      [123.121s][info][class,load ] sun.net.www.protocol.jar.URLJarFile$URLJarFileCloseController source: jrt:/java.base
      [123.130s][info][class,load ] sun.net.www.protocol.jar.JarFileFactory source: jrt:/java.base
      [123.260s][info][class,load ] java.net.Proxy source: jrt:/java.base
      [123.313s][info][class,load ] sun.net.www.protocol.file.FileURLConnection source: jrt:/java.base
      [123.465s][info][class,load ] sun.net.www.protocol.jar.URLJarFile source: jrt:/java.base
      [123.843s][info][class,load ] java.time.temporal.TemporalAccessor source: shared objects file
      [123.849s][info][class,load ] java.time.temporal.Temporal source: shared objects file
      [123.855s][info][class,load ] java.time.temporal.TemporalAdjuster source: shared objects file
      [123.860s][info][class,load ] java.time.Instant source: shared objects file
      [123.913s][info][class,load ] sun.nio.fs.UnixFileKey source: jrt:/java.base
      ];
       stderr: []
       exitValue = 134

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

      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489)
      at jdk.test.lib.cds.CDSTestUtils$Result.assertNormalExit(CDSTestUtils.java:195)
      at DynamicLoaderConstraintsTest.doTest(DynamicLoaderConstraintsTest.java:140)
      at DynamicLoaderConstraintsTest.doTest(DynamicLoaderConstraintsTest.java:98)
      at DynamicArchiveTestBase.runTest(DynamicArchiveTestBase.java:74)
      at DynamicLoaderConstraintsTest.main(DynamicLoaderConstraintsTest.java:89)
      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.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
      ----------rerun:(49/11253)*----------

      <snip>

      result: Error. Program `/mesos/work_dir/jib-master/install/jdk-18+13-659/macosx-x64-debug.jdk/jdk-18/fastdebug/bin/java' timed out (timeout set to 1200000ms, elapsed time including timeout handling was 1356770ms).


      So the failure is reported as a timeout, but the underlying cause is
      exitValue = 134

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ccheung Calvin Cheung
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: