JDK-8265786 : ProblemList serviceability/sa/sadebugd/DisableRegistryTest.java on ZGC
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-04-22
  • Updated: 2021-04-29
  • Resolved: 2021-04-22
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 17
17 b20Fixed
Related Reports
Relates :  
Relates :  
Description
The following test fails in the JDK17 CI with ZGC:

serviceability/sa/sadebugd/DisableRegistryTest.java

Here's a snippet from the log file:

#section:main
----------messages:(4/169)----------
command: main DisableRegistryTest
reason: User specified action: run main/othervm DisableRegistryTest 
Mode: othervm [/othervm specified]
elapsed time (seconds): 18.537
----------configuration:(0/0)----------
----------System.out:(18/3081)----------
Command line: ['/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+20-1639/linux-x64-debug.jdk/jdk-17/fastdebug/bin/java' '-XX:MaxRAMPercentage=4' '-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S78971/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5c72f367-bad9-4ffa-897b-7e6e2b389d73/runs/b5112ed9-2083-4ef9-8a50-5b8c66a1b000/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/tmp' '-XX:+CreateCoredumpOnCrash' '-XX:+UseZGC' '-cp' '/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S78971/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5c72f367-bad9-4ffa-897b-7e6e2b389d73/runs/b5112ed9-2083-4ef9-8a50-5b8c66a1b000/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/2/serviceability/sa/sadebugd/DisableRegistryTest.d:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S78971/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5c72f367-bad9-4ffa-897b-7e6e2b389d73/runs/b5112ed9-2083-4ef9-8a50-5b8c66a1b000/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/2/test/lib' 'jdk.test.lib.apps.LingeredApp' '4a4c4dbd-406e-41b6-890c-6b06dec25ca2.lck']
Command line: ['/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+20-1639/linux-x64-debug.jdk/jdk-17/fastdebug/bin/java' '-XX:MaxRAMPercentage=4' '-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S78971/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5c72f367-bad9-4ffa-897b-7e6e2b389d73/runs/b5112ed9-2083-4ef9-8a50-5b8c66a1b000/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/tmp' '-XX:+CreateCoredumpOnCrash' '-XX:+UseZGC' '-cp' '/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S78971/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5c72f367-bad9-4ffa-897b-7e6e2b389d73/runs/b5112ed9-2083-4ef9-8a50-5b8c66a1b000/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/2/serviceability/sa/sadebugd/DisableRegistryTest.d:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S78971/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5c72f367-bad9-4ffa-897b-7e6e2b389d73/runs/b5112ed9-2083-4ef9-8a50-5b8c66a1b000/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/2/test/lib' 'jdk.test.lib.apps.LingeredApp' '347019ed-ce88-4ccb-9a8b-e3b5cd793e9d.lck']
[2021-04-22T18:40:48.248224900Z] Gathering output for process 12474
Attaching to remote server localhost:10000, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 17-ea+20-LTS-1639
Java System Properties:


[2021-04-22T18:40:49.664191385Z] Waiting for completion for process 12474
[2021-04-22T18:40:49.664441467Z] Waiting for completion finished for process 12474
 LingeredApp stdout: [];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
 LingeredApp stdout: [];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
----------System.err:(89/6378)----------
java.lang.ExceptionInInitializerError
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZAddress.is_weak_bad(ZAddress.java:43)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZAddress.is_weak_good_or_null(ZAddress.java:51)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZBarrier.is_weak_good_or_null_fast_path(ZBarrier.java:32)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZBarrier.weak_barrier(ZBarrier.java:76)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZCollectedHeap.oop_load_barrier(ZCollectedHeap.java:88)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZCollectedHeap.oop_load_in_native(ZCollectedHeap.java:110)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.VMOopHandle.resolve(VMOopHandle.java:60)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.Klass.getJavaMirror(Klass.java:114)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.iterateStaticFields(InstanceKlass.java:651)
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.readSystemProperties(VM.java:1092)
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.getSystemProperties(VM.java:1085)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.SysPropsDumper.run(SysPropsDumper.java:44)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JInfo$1.run(JInfo.java:80)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JInfo.run(JInfo.java:95)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:278)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:241)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JInfo.runWithArgs(JInfo.java:139)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JInfo.main(JInfo.java:144)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJINFO(SALauncher.java:352)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:499)
Caused by: java.lang.RuntimeException: No long constant named "ZAddressSpaceStart" present in type database
	at jdk.hotspot.agent/sun.jvm.hotspot.types.basic.BasicTypeDataBase.lookupLongConstant(BasicTypeDataBase.java:113)
	at jdk.hotspot.agent/sun.jvm.hotspot.types.basic.BasicTypeDataBase.lookupLongConstant(BasicTypeDataBase.java:106)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZGlobals.initialize(ZGlobals.java:93)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZGlobals.lambda$static$0(ZGlobals.java:65)
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver(VM.java:578)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZGlobals.<clinit>(ZGlobals.java:65)
	... 21 more

 stdout: [Attaching to remote server localhost:10000, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 17-ea+20-LTS-1639
Java System Properties:

];
 stderr: [java.lang.ExceptionInInitializerError
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZAddress.is_weak_bad(ZAddress.java:43)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZAddress.is_weak_good_or_null(ZAddress.java:51)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZBarrier.is_weak_good_or_null_fast_path(ZBarrier.java:32)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZBarrier.weak_barrier(ZBarrier.java:76)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZCollectedHeap.oop_load_barrier(ZCollectedHeap.java:88)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZCollectedHeap.oop_load_in_native(ZCollectedHeap.java:110)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.VMOopHandle.resolve(VMOopHandle.java:60)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.Klass.getJavaMirror(Klass.java:114)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.iterateStaticFields(InstanceKlass.java:651)
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.readSystemProperties(VM.java:1092)
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.getSystemProperties(VM.java:1085)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.SysPropsDumper.run(SysPropsDumper.java:44)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JInfo$1.run(JInfo.java:80)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JInfo.run(JInfo.java:95)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:278)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:241)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JInfo.runWithArgs(JInfo.java:139)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JInfo.main(JInfo.java:144)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJINFO(SALauncher.java:352)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:499)
Caused by: java.lang.RuntimeException: No long constant named "ZAddressSpaceStart" present in type database
	at jdk.hotspot.agent/sun.jvm.hotspot.types.basic.BasicTypeDataBase.lookupLongConstant(BasicTypeDataBase.java:113)
	at jdk.hotspot.agent/sun.jvm.hotspot.types.basic.BasicTypeDataBase.lookupLongConstant(BasicTypeDataBase.java:106)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZGlobals.initialize(ZGlobals.java:93)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZGlobals.lambda$static$0(ZGlobals.java:65)
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver(VM.java:578)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZGlobals.<clinit>(ZGlobals.java:65)
	... 21 more
]
 exitValue = 1

java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: stderr was not empty
	at DisableRegistryTest.main(DisableRegistryTest.java:101)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	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:831)
Caused by: java.lang.RuntimeException: stderr was not empty
	at jdk.test.lib.process.OutputAnalyzer.stderrShouldBeEmptyIgnoreDeprecatedWarnings(OutputAnalyzer.java:162)
	at DisableRegistryTest.test(DisableRegistryTest.java:73)
	at DisableRegistryTest.main(DisableRegistryTest.java:96)
	... 6 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: stderr was not empty
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: stderr was not empty
----------rerun:(36/7165)*----------


This failure first occurs in jdk-17+20-1639-tier3 which includes:

JDK-8263636 Add --disable-registry option to jhsdb debugd

so it's likely that JDK-8263636 is the cause of these failures.
Comments
Changeset: e81baead Author: Daniel D. Daugherty <dcubed@openjdk.org> Date: 2021-04-22 20:45:25 +0000 URL: https://git.openjdk.java.net/jdk/commit/e81baead
22-04-2021

Here's the context diff for the proposed fix: $ git diff diff --git a/test/hotspot/jtreg/ProblemList-zgc.txt b/test/hotspot/jtreg/ProblemList-zgc.txt index 8f6eaef49cc..1b4e12491dc 100644 --- a/test/hotspot/jtreg/ProblemList-zgc.txt +++ b/test/hotspot/jtreg/ProblemList-zgc.txt @@ -61,4 +61,5 @@ serviceability/sa/TestJmapCore.java 8220624 generic- serviceability/sa/TestJmapCoreMetaspace.java 8220624 generic-all serviceability/sa/TestSysProps.java 8220624 generic-all serviceability/sa/sadebugd/DebugdConnectTest.java 8220624 generic-all +serviceability/sa/sadebugd/DisableRegistryTest.java 8220624 generic-all vmTestbase/jit/escape/AdaptiveBlocking/AdaptiveBlocking001/AdaptiveBlocking001.java 8260303 windows-x64
22-04-2021

This is a new test added by: JDK-8263636 Add --disable-registry option to jhsdb debugd so I'm going to use this bug to ProblemList this test for ZGC.
22-04-2021

There's an existing bug for SA issues and ZGC: JDK-8220624 SA: Out of sync with ZGC's internal data structures I'm going to ProblemList this test.
22-04-2021

I just noticed that all of these failures are in ZGC configs.
22-04-2021

So far this failure has reproduced on linux-aarch64 and linux-x64.
22-04-2021

[~ysuenaga] - Please take a look at this new failure. I think it is caused by JDK-8263636.
22-04-2021