JDK-8275845 : Test serviceability/sa/ClhsdbDumpheap.java failed for no obvious reason
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 18
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2021-10-24
  • Updated: 2021-10-25
  • Resolved: 2021-10-25
Related Reports
Duplicate :  
Description
Test: serviceability/sa/ClhsdbDumpheap.java

[0.079s][info][cds] full module graph: enabled
[0.080s][info][cds] use_full_module_graph = true; java.base = 0x000000012787f160
[0.081s][info][cds] patching heap embedded pointers
[0.088s][info][cds] Unmapping region #2 at base 0x000000011502e000 (Bitmap)
];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
----------System.err:(22/1661)----------
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr
	at ClhsdbDumpheap.main(ClhsdbDumpheap.java:177)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:51)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr
	at ClhsdbDumpheap.printStackTraces(ClhsdbDumpheap.java:60)
	at ClhsdbDumpheap.verifyDumpFile(ClhsdbDumpheap.java:66)
	at ClhsdbDumpheap.runTest(ClhsdbDumpheap.java:118)
	at ClhsdbDumpheap.main(ClhsdbDumpheap.java:172)
	... 6 more
Caused by: java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr
	at ClhsdbDumpheap.printStackTraces(ClhsdbDumpheap.java:57)
	... 9 more

There is no timeout reported but also no actual error, so it seems the app being debugged simply didn't run as expected.
Comments
This is another dup of JDK-8269881. "SerialNo 8" is suppose to show the stack trace of the SteadyStateThread, but it is empty: HprofReader.getStack() output: Dump file created Fri Oct 22 15:59:27 GMT 2021 SerialNo 8 SerialNo 7 java.lang.Object.wait(J)V (Object.java:(native method)) java.lang.ref.ReferenceQueue.remove(J)Ljava/lang/ref/Reference; (ReferenceQueue.java:155) jdk.internal.ref.CleanerImpl.run()V (CleanerImpl.java:140) java.lang.Thread.run()V (Thread.java:833) jdk.internal.misc.InnocuousThread.run()V (InnocuousThread.java:162) SerialNo 6 SerialNo 5 SerialNo 4 java.lang.Object.wait(J)V (Object.java:(native method)) java.lang.ref.ReferenceQueue.remove(J)Ljava/lang/ref/Reference; (ReferenceQueue.java:155) java.lang.ref.ReferenceQueue.remove()Ljava/lang/ref/Reference; (ReferenceQueue.java:176) java.lang.ref.Finalizer$FinalizerThread.run()V (Finalizer.java:175) SerialNo 3 java.lang.ref.Reference.waitForReferencePendingList()V (Reference.java:(native method)) java.lang.ref.Reference.processPendingReferences()V (Reference.java:253) java.lang.ref.Reference$ReferenceHandler.run()V (Reference.java:215) SerialNo 2 java.lang.Thread.sleep(J)V (Thread.java:(native method)) jdk.test.lib.apps.LingeredApp.main([Ljava/lang/String;)V (LingeredApp.java:599) SerialNo 1
25-10-2021