JDK-8273509 : runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java sub-tests fail with exitValue = 134
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 18
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: linux,os_x
  • CPU: x86_64
  • Submitted: 2021-09-08
  • Updated: 2021-11-08
  • Resolved: 2021-11-08
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.
JDK 18
18Resolved
Related Reports
Relates :  
Relates :  
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
Comments
The last failure on linux-x64-debug was on Sept. 8, 2021. It is likely related to JDK-8273612 which was fixed on Oct. 5.
08-11-2021

ILW = HLM = P3
14-09-2021

Normally you can see from the log when a timeout results in a process getting killed. But exit code 134 = 128 + 6 - which indicates it was a SIGABRT.
10-09-2021

So far I'm unable to reproduce the exitValue = 134 and only saw timeout. Attached are the call stacks of all threads from the Mac core file. Note that there's no CDS related code in the call stacks. The core file could be generated automatically on timeout so it isn't really a vm crash. Among the threads, thread #16 has the deepest stack.
10-09-2021

Assigned to Calvin since he's able to reproduce the crashes on macos.
09-09-2021

It's strange that both jdk-18+14-723-tier7 and jdk-18+13-659-tier8 did not save the hs_err file. Also, jdk-18+13-659-tier8 has a core file (macos) but jdk-18+14-723-tier7 did not save the core file, either.
09-09-2021

The following test failed in the JDK18 CI: runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java#custom-cl Here's a snippet from the log file: [68.789s][info][class,load] java.security.AllPermission source: shared objects file [68.795s][info][class,load] java.security.UnresolvedPermission source: shared objects file [69.106s][info][class,load] CustomAppLoader source: file:/opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S17979/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c45ee96c-ffb2-4a3c-a912-f71f0ac3f973/runs/c725925a-ba59-426b-8e43-585522a1d1b0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/custom_app_loader.jar [70.565s][info][class,load] sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo source: jrt:/jdk.localedata [70.571s][info][class,load] java.lang.NamedPackage source: shared objects file [70.876s][info][class,load] java.net.URLClassLoader source: jrt:/java.base [70.894s][info][class,loader,constraints] adding new constraint for name: sun/util/locale/provider/LocaleProviderAdapter$Type, loader[0]: 'platform', loader[1]: 'bootstrap' [70.894s][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] [70.894s][info][class,loader,constraints] adding new constraint for name: java/lang/String, loader[0]: 'platform', loader[1]: 'bootstrap' [70.894s][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] [70.894s][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] [70.940s][info][class,load ] java.util.ServiceLoader$1 source: shared objects file [70.999s][info][class,loader,constraints] adding new constraint for name: java/net/URL, loader[0]: 'app', loader[1]: 'bootstrap' [71.005s][info][class,load ] java.util.ServiceLoader$ProviderImpl source: shared objects file [71.021s][info][class,loader,constraints] adding new constraint for name: java/lang/invoke/MethodHandles$Lookup, loader[0]: 'app', loader[1]: 'bootstrap' [71.021s][info][class,loader,constraints] adding new constraint for name: java/lang/invoke/MethodType, loader[0]: 'app', loader[1]: 'bootstrap' [71.021s][info][class,loader,constraints] adding new constraint for name: java/lang/invoke/CallSite, loader[0]: 'app', loader[1]: 'bootstrap' [71.191s][info][class,load ] java.lang.invoke.MethodHandleImpl$AsVarargsCollector source: shared objects file [72.629s][info][class,load ] sun.util.resources.provider.NonBaseLocaleDataMetaInfo source: jrt:/jdk.localedata [72.683s][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] [72.683s][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] [72.683s][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] [73.680s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LL source: shared objects file [73.710s][info][class,load ] sun.util.locale.provider.LocaleResources source: shared objects file [73.974s][info][class,load ] sun.util.resources.LocaleData source: shared objects file [74.336s][info][class,load ] sun.util.resources.LocaleData$1 source: shared objects file [74.361s][info][class,load ] sun.util.resources.Bundles$Strategy source: shared objects file [74.367s][info][class,load ] sun.util.resources.LocaleData$LocaleDataStrategy source: shared objects file [74.436s][info][class,load ] sun.util.resources.Bundles source: shared objects file [74.458s][info][class,load ] sun.util.resources.Bundles$1 source: shared objects file [74.488s][info][class,load ] jdk.internal.access.JavaUtilResourceBundleAccess source: shared objects file [74.493s][info][class,load ] java.util.ResourceBundle$1 source: shared objects file [74.513s][info][class,load ] java.util.ResourceBundle$2 source: shared objects file [74.917s][info][class,load ] sun.util.resources.Bundles$CacheKey source: shared objects file [75.061s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801001800 source: __JVM_LookupDefineClass__ [76.220s][info][class,load ] sun.util.resources.OpenListResourceBundle source: jrt:/java.base [76.226s][info][class,load ] sun.util.resources.TimeZoneNamesBundle source: jrt:/java.base [76.232s][info][class,load ] sun.util.resources.cldr.TimeZoneNames source: jrt:/java.base [76.239s][info][class,load ] java.util.ResourceBundle$ResourceBundleProviderHelper source: shared objects file [77.151s][info][class,load ] java.util.ResourceBundle$ResourceBundleProviderHelper$$Lambda$21/0x000000080104c600 source: java.util.ResourceBundle [77.646s][info][class,load ] sun.util.resources.Bundles$CacheKeyReference source: shared objects file [77.652s][info][class,load ] sun.util.resources.Bundles$BundleReference source: shared objects file [78.623s][info][class,load ] sun.util.resources.cldr.TimeZoneNames_en source: jrt:/java.base [79.616s][info][class,load ] java.net.URLClassLoader$1 source: jrt:/java.base [79.652s][info][class,load ] java.util.LinkedHashMap$LinkedKeySet source: jrt:/java.base [81.870s][info][class,load ] sun.util.locale.provider.LocaleResources$ResourceReference source: shared objects file [82.566s][info][class,load ] java.time.temporal.TemporalAccessor source: shared objects file [82.572s][info][class,load ] java.time.temporal.Temporal source: shared objects file [82.577s][info][class,load ] java.time.temporal.TemporalAdjuster source: shared objects file [82.583s][info][class,load ] java.time.Instant source: shared objects file [83.828s][info][class,load ] sun.util.resources.TimeZoneNames source: jrt:/java.base [84.081s][info][class,load ] sun.util.resources.TimeZoneNames_en source: jrt:/java.base [84.153s][info][class,load ] java.net.URLConnection source: jrt:/java.base [84.182s][info][class,load ] java.net.Proxy source: jrt:/java.base [84.280s][info][class,load ] sun.net.www.URLConnection source: jrt:/java.base [84.288s][info][class,load ] sun.net.www.protocol.file.FileURLConnection source: jrt:/java.base [86.339s][info][class,load ] sun.net.www.MessageHeader source: jrt:/java.base [87.119s][info][class,load ] java.io.FilePermission source: shared objects file [87.454s][info][class,load ] jdk.internal.access.JavaIOFilePermissionAccess source: jrt:/java.base [87.461s][info][class,load ] java.io.FilePermission$1 source: jrt:/java.base [87.712s][info][class,load ] sun.security.util.FilePermCompat source: shared objects file [87.737s][info][class,load ] sun.security.util.SecurityProperties source: shared objects file [88.819s][info][class,load ] java.security.Security source: shared objects file [88.842s][info][class,load ] java.security.Security$1 source: shared objects file [88.868s][info][class,load ] java.lang.Readable source: shared objects file [88.874s][info][class,load ] java.nio.CharBuffer source: shared objects file [88.977s][info][class,load ] java.nio.HeapCharBuffer source: shared objects file [88.998s][info][class,load ] java.util.Properties$LineReader source: shared objects file [89.823s][info][class,load ] java.io.FilePermissionCollection source: jrt:/java.base [89.851s][info][class,load ] java.util.Vector source: jrt:/java.base [89.875s][info][class,load ] java.io.FilePermissionCollection$1 source: jrt:/java.base [91.906s][info][class,load ] LoaderConstraintsApp source: file:/opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S17979/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c45ee96c-ffb2-4a3c-a912-f71f0ac3f973/runs/c725925a-ba59-426b-8e43-585522a1d1b0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/loader_constraints.jar [93.192s][info][class,load ] com.sun.net.httpserver.HttpHandler source: jrt:/jdk.httpserver [93.204s][info][class,loader,constraints] adding new constraint for name: java/lang/reflect/Method, loader[0]: 'app', loader[1]: 'bootstrap' [93.267s][info][class,loader,constraints] adding new constraint for name: java/io/PrintStream, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'bootstrap' [93.501s][info][class,load ] com.sun.net.httpserver.HttpExchange source: jrt:/jdk.httpserver [93.507s][info][class,loader,constraints] extending constraint for name java/lang/invoke/MethodHandles$Lookup by adding loader[2]: java.net.URLClassLoader @27716f4 [93.507s][info][class,loader,constraints] extending constraint for name java/lang/invoke/MethodType by adding loader[2]: java.net.URLClassLoader @27716f4 [93.507s][info][class,loader,constraints] extending constraint for name java/lang/invoke/CallSite by adding loader[2]: java.net.URLClassLoader @27716f4 [94.704s][info][class,load ] java.util.Arrays$ArrayItr source: shared objects file [95.128s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801002800 source: __JVM_LookupDefineClass__ [96.260s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801002c00 source: __JVM_LookupDefineClass__ [97.351s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801003000 source: __JVM_LookupDefineClass__ [97.388s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLL source: shared objects file [97.965s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801003400 source: __JVM_LookupDefineClass__ [98.370s][info][class,load ] java.lang.invoke.MethodHandles$1 source: shared objects file [98.419s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LJ source: shared objects file [98.481s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801003800 source: __JVM_LookupDefineClass__ [99.671s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLLL source: shared objects file [99.910s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801003c00 source: __JVM_LookupDefineClass__ real HttpExchange = 1670782018 real HttpExchange (loader) = jdk.internal.loader.ClassLoaders$PlatformClassLoader@72ea2f77 [101.483s][info][class,loader,constraints] adding new constraint for name: java/security/ProtectionDomain, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'bootstrap' [101.493s][info][class,loader,constraints] adding new constraint for name: java/io/InputStream, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'bootstrap' [101.537s][info][class,load ] sun.net.www.protocol.jrt.JavaRuntimeURLConnection source: jrt:/java.base [101.642s][info][class,load ] sun.net.www.protocol.jrt.JavaRuntimeURLConnection$$Lambda$22/0x000000080104f650 source: sun.net.www.protocol.jrt.JavaRuntimeURLConnection [101.893s][info][class,load ] sun.net.www.protocol.jrt.JavaRuntimeURLConnection$1 source: jrt:/java.base [101.948s][info][class,load ] jdk.internal.jimage.ImageBufferCache source: jrt:/java.base [101.962s][info][class,load ] jdk.internal.jimage.ImageBufferCache$1 source: jrt:/java.base [101.976s][info][class,load ] jdk.internal.jimage.ImageBufferCache$2 source: jrt:/java.base [102.006s][info][class,load ] java.util.AbstractMap$SimpleEntry source: jrt:/java.base [102.028s][info][class,load ] java.util.Arrays$LegacyMergeSort source: shared objects file [102.048s][info][class,load ] java.util.TimSort source: shared objects file [102.210s][info][class,load ] com.sun.net.httpserver.HttpExchange source: __JVM_DefineClass__ fake HttpExchange = 471910020 fake HttpExchange (loader) = java.net.URLClassLoader@27716f4 [103.514s][info][class,load ] MyHttpHandlerB source: file:/opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S17979/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c45ee96c-ffb2-4a3c-a912-f71f0ac3f973/runs/c725925a-ba59-426b-8e43-585522a1d1b0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/loader_constraints.jar [103.627s][info][class,load ] MyClassLoader source: file:/opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S17979/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c45ee96c-ffb2-4a3c-a912-f71f0ac3f973/runs/c725925a-ba59-426b-8e43-585522a1d1b0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/loader_constraints.jar [103.683s][info][class,load ] java.io.IOException source: jrt:/java.base [104.936s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801004800 source: __JVM_LookupDefineClass__ [105.719s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801004c00 source: __JVM_LookupDefineClass__ [105.977s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801005000 source: __JVM_LookupDefineClass__ [106.103s][info][class,load ] java.lang.ref.FinalizerHistogram source: jrt:/java.base [106.123s][info][class,load ] java.lang.ref.FinalizerHistogram$Entry source: jrt:/java.base [106.131s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801005400 source: __JVM_LookupDefineClass__ [106.149s][info][class,load ] java.lang.IncompatibleClassChangeError source: shared objects file [106.156s][info][class,load ] java.lang.NoSuchMethodError source: shared objects file [106.188s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801005800 source: __JVM_LookupDefineClass__ [106.213s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801005c00 source: __JVM_LookupDefineClass__ [106.234s][info][class,load ] java.lang.ref.FinalizerHistogram$$Lambda$23/0x0000000801050c50 source: java.lang.ref.FinalizerHistogram [106.251s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801006000 source: __JVM_LookupDefineClass__ [106.282s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLLLL source: shared objects file [106.369s][info][class,load ] java.util.function.ToIntFunction source: shared objects file [106.381s][info][class,load ] java.lang.ref.FinalizerHistogram$$Lambda$24/0x0000000801050e80 source: java.lang.ref.FinalizerHistogram [106.419s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801006400 source: __JVM_LookupDefineClass__ [106.601s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801006800 source: __JVM_LookupDefineClass__ [106.771s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLLLLL source: shared objects file [106.931s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801006c00 source: __JVM_LookupDefineClass__ [107.096s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801007000 source: __JVM_LookupDefineClass__ [107.738s][info][class,load ] java.lang.invoke.BoundMethodHandle$Species_LLLLLLL source: shared objects file [107.821s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801007400 source: __JVM_LookupDefineClass__ [108.308s][info][class,load ] java.util.Comparator$$Lambda$25/0x0000000801051098 source: java.util.Comparator [108.341s][info][class,load ] java.util.Collections$ReverseComparator source: jrt:/java.base [108.359s][info][class,load ] java.util.Comparators$NaturalOrderComparator source: jrt:/java.base MyClassLoader: loadClass("MyHttpHandlerC", false) [108.384s][info][class,load ] java.util.Collections$ReverseComparator2 source: jrt:/java.base [108.774s][info][class,load ] java.net.URLClassLoader$2 source: jrt:/java.base [108.941s][info][class,load ] java.net.JarURLConnection source: jrt:/java.base [108.948s][info][class,load ] sun.net.www.protocol.jar.JarURLConnection source: jrt:/java.base [108.969s][info][class,load ] sun.net.www.protocol.jar.URLJarFile$URLJarFileCloseController source: jrt:/java.base [108.977s][info][class,load ] sun.net.www.protocol.jar.JarFileFactory source: jrt:/java.base [109.086s][info][class,load ] sun.net.www.protocol.jar.URLJarFile source: jrt:/java.base [109.165s][info][class,load ] sun.nio.fs.UnixFileKey source: jrt:/java.base [109.469s][info][class,load ] sun.net.www.protocol.jar.URLJarFile$URLJarFileEntry source: jrt:/java.base [109.676s][info][class,load ] sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream source: jrt:/java.base MyClassLoader: loadClass("com.sun.net.httpserver.HttpHandler", false) [110.355s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801007800 source: __JVM_LookupDefineClass__ [110.615s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801007c00 source: __JVM_LookupDefineClass__ [110.637s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801008000 source: __JVM_LookupDefineClass__ [110.661s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801008400 source: __JVM_LookupDefineClass__ [110.686s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801008800 source: __JVM_LookupDefineClass__ [110.710s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801008c00 source: __JVM_LookupDefineClass__ [110.732s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801009000 source: __JVM_LookupDefineClass__ [111.154s][info][class,load ] java.util.SortedMap source: shared objects file [111.160s][info][class,load ] java.util.NavigableMap source: shared objects file [111.167s][info][class,load ] java.util.TreeMap source: shared objects file [111.196s][info][class,load ] java.lang.invoke.LambdaFormEditor$1 source: shared objects file [111.235s][info][class,load ] java.util.TreeMap$Entry source: shared objects file [111.315s][info][class,load ] java.util.TreeMap$EntrySet source: shared objects file [111.332s][info][class,load ] java.util.TreeMap$PrivateEntryIterator source: shared objects file [111.338s][info][class,load ] java.util.TreeMap$EntryIterator source: shared objects file [111.401s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801009400 source: __JVM_LookupDefineClass__ MyClassLoader: loaded com.sun.net.httpserver.HttpHandler = interface com.sun.net.httpserver.HttpHandler MyClassLoader: loadClass("java.lang.Object", false) MyClassLoader: loaded java.lang.Object = class java.lang.Object [113.003s][info][class,load ] MyHttpHandlerC source: __JVM_DefineClass__ MyClassLoader: loaded MyHttpHandlerC = class MyHttpHandlerC MyHttpHandlerC = class MyHttpHandlerC MyHttpHandlerC (loader) = MyClassLoader@53d8d10a MyClassLoader: loadClass("java.lang.Throwable", false) MyClassLoader: loaded java.lang.Throwable = class java.lang.Throwable MyClassLoader: loadClass("java.lang.RuntimeException", false) MyClassLoader: loaded java.lang.RuntimeException = class java.lang.RuntimeException [113.048s][info][class,loader,constraints] adding new constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: MyClassLoader @53d8d10a, loader[1]: 'platform' [113.056s][info][class,load ] java.lang.Class$1 source: shared objects file [113.081s][info][class,loader,constraints] Failed to add constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'platform', Reason: The class objects presented by loader[0] and loader[1] are different [113.081s][info][class,loader,constraints] Failed to add constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'platform', Reason: The class objects presented by loader[0] and loader[1] are different [113.082s][info][class,loader,constraints] Failed to add constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'platform', Reason: The class objects presented by loader[0] and loader[1] are different [113.082s][info][class,loader,constraints] Failed to add constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'platform', Reason: The class objects presented by loader[0] and loader[1] are different Expected: java.lang.LinkageError: loader constraint violation: when resolving interface method 'void com.sun.net.httpserver.HttpHandler.handle(com.sun.net.httpserver.HttpExchange)' the class loader java.net.URLClassLoader @27716f4 of the current class, MyHttpHandlerB, and the class loader 'platform' for the method's defining class, com/sun/net/httpserver/HttpHandler, have different Class objects for the type com/sun/net/httpserver/HttpExchange used in the signature (MyHttpHandlerB is in unnamed module of loader java.net.URLClassLoader @27716f4, parent loader 'app'; com.sun.net.httpserver.HttpHandler is in module jdk.httpserver of loader 'platform') [113.087s][info][class,load ] java.util.regex.Pattern source: shared objects file [113.103s][info][class,load ] java.util.regex.Pattern$Node source: shared objects file [113.123s][info][class,load ] java.util.regex.Pattern$LastNode source: shared objects file [113.260s][info][class,load ] java.util.regex.Pattern$GroupHead source: shared objects file [113.310s][info][class,load ] java.util.regex.Pattern$CharProperty source: shared objects file [113.325s][info][class,load ] java.util.regex.Pattern$CharPredicate source: shared objects file [115.229s][info][class,load ] java.util.regex.Pattern$$Lambda$26/0x0000000801053b20 source: java.util.regex.Pattern [115.281s][info][class,load ] java.util.regex.Pattern$Qtype source: shared objects file [115.322s][info][class,load ] java.util.regex.Pattern$BmpCharProperty source: shared objects file [115.330s][info][class,load ] java.util.regex.Pattern$CharPropertyGreedy source: shared objects file [115.431s][info][class,load ] java.util.regex.Pattern$SliceNode source: shared objects file [115.439s][info][class,load ] java.util.regex.Pattern$Slice source: shared objects file [115.479s][info][class,load ] java.util.regex.Pattern$Begin source: shared objects file [115.485s][info][class,load ] java.util.regex.Pattern$First source: shared objects file [115.491s][info][class,load ] java.util.regex.Pattern$Start source: shared objects file [115.507s][info][class,load ] java.util.regex.Pattern$TreeInfo source: shared objects file [115.532s][info][class,load ] java.util.regex.MatchResult source: shared objects file [115.538s][info][class,load ] java.util.regex.Matcher source: shared objects file [115.580s][info][class,load ] java.util.regex.IntHashSet source: shared objects file [117.496s][info][class,load ] java.lang.Package source: shared objects file [117.530s][info][class,load ] java.lang.Package$VersionInfo source: shared objects file [117.627s][info][class,load ] jdk.test.lib.Asserts source: file:/opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S17979/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c45ee96c-ffb2-4a3c-a912-f71f0ac3f973/runs/c725925a-ba59-426b-8e43-585522a1d1b0/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/loader_constraints.jar [117.688s][info][class,load ] java.lang.Throwable$PrintStreamOrWriter source: jrt:/java.base [117.694s][info][class,load ] java.lang.Throwable$WrappedPrintStream source: jrt:/java.base java.lang.LinkageError: loader constraint violation: when resolving interface method 'void com.sun.net.httpserver.HttpHandler.handle(com.sun.net.httpserver.HttpExchange)' the class loader java.net.URLClassLoader @27716f4 of the current class, MyHttpHandlerB, and the class loader 'platform' for the method's defining class, com/sun/net/httpserver/HttpHandler, have different Class objects for the type com/sun/net/httpserver/HttpExchange used in the signature (MyHttpHandlerB is in unnamed module of loader java.net.URLClassLoader @27716f4, parent loader 'app'; com.sun.net.httpserver.HttpHandler is in module jdk.httpserver of loader 'platform') [117.797s][info][class,load ] java.lang.StackTraceElement$HashedModules source: jrt:/java.base at MyHttpHandlerB.test(MyHttpHandlerB.java:40) at LoaderConstraintsApp.doTest(LoaderConstraintsApp.java:115) at LoaderConstraintsApp.main(LoaderConstraintsApp.java:148) 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 CustomAppLoader.main(CustomAppLoader.java:53) [117.904s][info][class,load ] java.util.IdentityHashMap$IdentityHashMapIterator source: shared objects file [117.911s][info][class,load ] java.util.IdentityHashMap$KeyIterator source: shared objects file [118.120s][info][class,load ] java.util.Spliterators$ArraySpliterator source: shared objects file [118.145s][info][class,load ] java.lang.invoke.GenerateJLIClassesHelper source: shared objects file [118.249s][info][class,load ] java.lang.invoke.GenerateJLIClassesHelper$HolderClassBuilder source: shared objects file [118.270s][info][class,load ] java.util.SortedSet source: shared objects file [118.278s][info][class,load ] java.util.NavigableSet source: shared objects file [118.286s][info][class,load ] java.util.TreeSet source: shared objects file [118.404s][info][class,load ] java.lang.invoke.GenerateJLIClassesHelper$$Lambda$27/0x0000000801054790 source: java.lang.invoke.GenerateJLIClassesHelper [118.446s][info][class,load ] java.lang.invoke.GenerateJLIClassesHelper$$Lambda$28/0x00000008010549c8 source: java.lang.invoke.GenerateJLIClassesHelper [118.465s][info][class,load ] java.util.stream.ForEachOps source: shared objects file [118.481s][info][class,load ] java.util.stream.ForEachOps$ForEachOp source: shared objects file [118.488s][info][class,load ] java.util.stream.ForEachOps$ForEachOp$OfRef source: shared objects file [119.713s][info][class,load ] java.util.TreeMap$Values source: shared objects file [119.733s][info][class,load ] java.util.TreeMap$ValueIterator source: shared objects file [119.792s][info][class,load ] java.util.TreeMap$KeySet source: shared objects file [119.818s][info][class,load ] java.util.TreeMap$KeyIterator source: shared objects file [120.033s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100a000 source: __JVM_LookupDefineClass__ [120.058s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100a400 source: __JVM_LookupDefineClass__ [120.556s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100a800 source: __JVM_LookupDefineClass__ [120.578s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100ac00 source: __JVM_LookupDefineClass__ [121.299s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100b000 source: __JVM_LookupDefineClass__ [121.322s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100b400 source: __JVM_LookupDefineClass__ [121.442s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100b800 source: __JVM_LookupDefineClass__ [121.467s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100bc00 source: __JVM_LookupDefineClass__ [122.343s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100c000 source: __JVM_LookupDefineClass__ [123.875s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100c400 source: __JVM_LookupDefineClass__ [124.937s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100c800 source: __JVM_LookupDefineClass__ [125.272s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100cc00 source: __JVM_LookupDefineClass__ [125.301s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100d000 source: __JVM_LookupDefineClass__ [125.321s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100d400 source: __JVM_LookupDefineClass__ [125.342s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100d800 source: __JVM_LookupDefineClass__ [125.363s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100dc00 source: __JVM_LookupDefineClass__ [125.386s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100e000 source: __JVM_LookupDefineClass__ [125.411s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100e400 source: __JVM_LookupDefineClass__ [125.434s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100e800 source: __JVM_LookupDefineClass__ [125.458s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100ec00 source: __JVM_LookupDefineClass__ [126.067s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100f000 source: __JVM_LookupDefineClass__ [126.089s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100f400 source: __JVM_LookupDefineClass__ [126.114s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080100f800 source: __JVM_LookupDefineClass__ [126.136s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080100fc00 source: __JVM_LookupDefineClass__ [126.160s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801010000 source: __JVM_LookupDefineClass__ [126.184s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801010400 source: __JVM_LookupDefineClass__ [126.207s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801010800 source: __JVM_LookupDefineClass__ [126.228s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801010c00 source: __JVM_LookupDefineClass__ [126.596s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801011000 source: __JVM_LookupDefineClass__ [126.620s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801011400 source: __JVM_LookupDefineClass__ [126.646s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801011800 source: __JVM_LookupDefineClass__ [127.330s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801011c00 source: __JVM_LookupDefineClass__ [127.352s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801012000 source: __JVM_LookupDefineClass__ [127.376s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801012400 source: __JVM_LookupDefineClass__ [127.397s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801012800 source: __JVM_LookupDefineClass__ [127.418s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801012c00 source: __JVM_LookupDefineClass__ [127.443s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801013000 source: __JVM_LookupDefineClass__ [127.467s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801013400 source: __JVM_LookupDefineClass__ [127.491s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801013800 source: __JVM_LookupDefineClass__ [127.515s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801013c00 source: __JVM_LookupDefineClass__ [127.538s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801014000 source: __JVM_LookupDefineClass__ [127.562s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801014400 source: __JVM_LookupDefineClass__ [127.584s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801014800 source: __JVM_LookupDefineClass__ [127.607s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801014c00 source: __JVM_LookupDefineClass__ [127.631s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801015000 source: __JVM_LookupDefineClass__ [127.652s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801015400 source: __JVM_LookupDefineClass__ [127.673s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801015800 source: __JVM_LookupDefineClass__ [127.693s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801015c00 source: __JVM_LookupDefineClass__ [127.715s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801016000 source: __JVM_LookupDefineClass__ [127.736s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801016400 source: __JVM_LookupDefineClass__ [127.757s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801016800 source: __JVM_LookupDefineClass__ [127.777s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801016c00 source: __JVM_LookupDefineClass__ [127.799s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801017000 source: __JVM_LookupDefineClass__ [127.819s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801017400 source: __JVM_LookupDefineClass__ [127.840s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801017800 source: __JVM_LookupDefineClass__ [127.861s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801017c00 source: __JVM_LookupDefineClass__ [127.883s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801018000 source: __JVM_LookupDefineClass__ [127.906s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801018400 source: __JVM_LookupDefineClass__ [128.555s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801018800 source: __JVM_LookupDefineClass__ [128.576s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801018c00 source: __JVM_LookupDefineClass__ [128.597s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801019000 source: __JVM_LookupDefineClass__ [128.617s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801019400 source: __JVM_LookupDefineClass__ [128.645s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801019800 source: __JVM_LookupDefineClass__ [128.668s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801019c00 source: __JVM_LookupDefineClass__ [128.694s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101a000 source: __JVM_LookupDefineClass__ [128.716s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101a400 source: __JVM_LookupDefineClass__ [128.740s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101a800 source: __JVM_LookupDefineClass__ [128.763s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101ac00 source: __JVM_LookupDefineClass__ [128.789s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101b000 source: __JVM_LookupDefineClass__ [128.813s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101b400 source: __JVM_LookupDefineClass__ [128.838s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101b800 source: __JVM_LookupDefineClass__ [128.862s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101bc00 source: __JVM_LookupDefineClass__ [128.887s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101c000 source: __JVM_LookupDefineClass__ [128.910s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101c400 source: __JVM_LookupDefineClass__ [128.931s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101c800 source: __JVM_LookupDefineClass__ [128.955s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101cc00 source: __JVM_LookupDefineClass__ [128.977s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101d000 source: __JVM_LookupDefineClass__ [128.998s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101d400 source: __JVM_LookupDefineClass__ [129.021s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101d800 source: __JVM_LookupDefineClass__ [129.043s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101dc00 source: __JVM_LookupDefineClass__ [129.068s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101e000 source: __JVM_LookupDefineClass__ [129.097s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101e400 source: __JVM_LookupDefineClass__ [129.118s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101e800 source: __JVM_LookupDefineClass__ [129.142s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101ec00 source: __JVM_LookupDefineClass__ [129.803s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101f000 source: __JVM_LookupDefineClass__ [129.824s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101f400 source: __JVM_LookupDefineClass__ [129.849s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x000000080101f800 source: __JVM_LookupDefineClass__ [129.874s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x000000080101fc00 source: __JVM_LookupDefineClass__ [129.895s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801020000 source: __JVM_LookupDefineClass__ [129.920s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801020400 source: __JVM_LookupDefineClass__ [129.946s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801020800 source: __JVM_LookupDefineClass__ [129.967s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801020c00 source: __JVM_LookupDefineClass__ [129.989s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801021000 source: __JVM_LookupDefineClass__ [130.014s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801021400 source: __JVM_LookupDefineClass__ [130.041s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801021800 source: __JVM_LookupDefineClass__ [130.061s][info][class,load ] java.lang.invoke.LambdaForm$DMH/0x0000000801021c00 source: __JVM_LookupDefineClass__ [130.081s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801022000 source: __JVM_LookupDefineClass__ [130.101s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801022400 source: __JVM_LookupDefineClass__ [130.121s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801022800 source: __JVM_LookupDefineClass__ [130.143s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801022c00 source: __JVM_LookupDefineClass__ [130.165s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801023000 source: __JVM_LookupDefineClass__ [130.187s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801023400 source: __JVM_LookupDefineClass__ [130.212s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801023800 source: __JVM_LookupDefineClass__ [130.238s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801023c00 source: __JVM_LookupDefineClass__ [130.260s][info][class,load ] java.lang.invoke.LambdaForm$MH/0x0000000801024000 source: __JVM_LookupDefineClass__ ]; 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/11634)*---------- <snip> result: Error. Program `/opt/mach5/mesos/work_dir/jib-master/install/jdk-18+14-723/linux-x64-debug.jdk/jdk-18/fastdebug/bin/java' timed out (timeout set to 1200000ms, elapsed time including timeout handling was 1314897ms). So the failure is reported as a timeout, but the underlying cause is exitValue = 134 In this particular failure sighting, there are also other failure messages: MyClassLoader: loaded java.lang.RuntimeException = class java.lang.RuntimeException [113.048s][info][class,loader,constraints] adding new constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: MyClassLoader @53d8d10a, loader[1]: 'platform' [113.056s][info][class,load ] java.lang.Class$1 source: shared objects file [113.081s][info][class,loader,constraints] Failed to add constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'platform', Reason: The class objects presented by loader[0] and loader[1] are different [113.081s][info][class,loader,constraints] Failed to add constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'platform', Reason: The class objects presented by loader[0] and loader[1] are different [113.082s][info][class,loader,constraints] Failed to add constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'platform', Reason: The class objects presented by loader[0] and loader[1] are different [113.082s][info][class,loader,constraints] Failed to add constraint for name: com/sun/net/httpserver/HttpExchange, loader[0]: java.net.URLClassLoader @27716f4, loader[1]: 'platform', Reason: The class objects presented by loader[0] and loader[1] are different Expected: java.lang.LinkageError: loader constraint violation: when resolving interface method 'void com.sun.net.httpserver.HttpHandler.handle(com.sun.net.httpserver.HttpExchange)' the class loader java.net.URLClassLoader @27716f4 of the current class, MyHttpHandlerB, and the class loader 'platform' for the method's defining class, com/sun/net/httpserver/HttpHandler, have different Class objects for the type com/sun/net/httpserver/HttpExchange used in the signature (MyHttpHandlerB is in unnamed module of loader java.net.URLClassLoader @27716f4, parent loader 'app'; com.sun.net.httpserver.HttpHandler is in module jdk.httpserver of loader 'platform')
08-09-2021