JDK-8268645 : sun/tools/jhsdb/HeapDumpTest.java failed with "RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 17,18
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86_64
  • Submitted: 2021-06-12
  • Updated: 2021-07-09
  • Resolved: 2021-07-09
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
The following test failed in the JDK17 CI:

sun/tools/jhsdb/HeapDumpTest.java

Here's a snippet from the log file:

----------System.err:(18/1303)----------
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr
	at HeapDumpTest.printStackTraces(HeapDumpTest.java:109)
	at HeapDumpTest.testHeapDump(HeapDumpTest.java:135)
	at HeapDumpTest.main(HeapDumpTest.java:155)
	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)
Caused by: java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr
	at HeapDumpTest.printStackTraces(HeapDumpTest.java:106)
	... 8 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr
----------rerun:(44/5428)*----------
Comments
The initial failure is a dup of JDK-8269881, but subsequent failures are a dup of JDK-8269830, which is now fixed. Closing as a dup of JDK-8269881 since it is still open.
09-07-2021

Here's a log file snippet from the jdk-18+5-165-tier1 sighting: serviceability/sa/ClhsdbSource.java + jstack -v Deadlock Detection: No deadlocks found. "main" #1 prio=5 tid=0x00007ff48d017820 nid=0x1803 waiting on condition [0x0000700001d6a000] java.lang.Thread.State: TIMED_WAITING (sleeping) JavaThread state: _thread_blocked - java.lang.Thread.sleep(long) @bci=0, pc=0x0000000116b526cb, Method*=0x0000000800429268 (Interpreted frame) - jdk.test.lib.apps.LingeredApp.main(java.lang.String[]) @bci=158, line=599, pc=0x0000000116b4c5cb, Method*=0x000000010e403818 (Interpreted frame) - locked <0x00000007ca93cf68> (a java.lang.Object) Locked ownable synchronizers: - None "Reference Handler" #2 daemon prio=10 tid=0x00007ff48d813620 nid=0x3703 waiting on condition [0x000070000247f000] java.lang.Thread.State: RUNNABLE JavaThread state: _thread_blocked - java.lang.ref.Reference.waitForReferencePendingList() @bci=0, pc=0x0000000116b526cb, Method*=0x000000080005b3b0 (Interpreted frame) - java.lang.ref.Reference.processPendingReferences() @bci=0, line=253, pc=0x0000000116b4c5cb, Method*=0x000000080005b5f8 (Interpreted frame) - java.lang.ref.Reference$ReferenceHandler.run() @bci=0, line=215, pc=0x0000000116b4c5cb, Method*=0x00000008004000a8 (Interpreted frame) Locked ownable synchronizers: - None "Finalizer" #3 daemon prio=8 tid=0x00007ff48c839420 nid=0x3803 in Object.wait() [0x0000700002582000] java.lang.Thread.State: WAITING (on object monitor) JavaThread state: _thread_blocked - java.lang.Object.wait(long) @bci=0, pc=0x0000000116b526cb, Method*=0x000000080047a2e8 (Interpreted frame) - waiting on <0x00000007ca902f40> (a java.lang.ref.ReferenceQueue$Lock) - java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=155, pc=0x0000000116b4c5cb, Method*=0x000000080005ab00 (Interpreted frame) - locked <0x00000007ca902f40> (a java.lang.ref.ReferenceQueue$Lock) - java.lang.ref.ReferenceQueue.remove() @bci=2, line=176, pc=0x0000000116b4c3de, Method*=0x000000080005ab68 (Interpreted frame) - java.lang.ref.Finalizer$FinalizerThread.run() @bci=37, line=172, pc=0x0000000116b4c3de, Method*=0x00000008003aaeb0 (Interpreted frame) Locked ownable synchronizers: - None "Signal Dispatcher" #4 daemon prio=9 tid=0x00007ff48c83b020 nid=0x580f waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE JavaThread state: _thread_blocked Locked ownable synchronizers: - None "Common-Cleaner" #13 daemon prio=8 tid=0x00007ff48d815220 nid=0x5f03 in Object.wait() [0x0000700002fa3000] java.lang.Thread.State: TIMED_WAITING (on object monitor) JavaThread state: _thread_blocked - java.lang.Object.wait(long) @bci=0, pc=0x0000000116b526cb, Method*=0x000000080047a2e8 (Interpreted frame) - waiting on <0x00000007ca91b828> (a java.lang.ref.ReferenceQueue$Lock) - java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=155, pc=0x0000000116b4c5cb, Method*=0x000000080005ab00 (Interpreted frame) - locked <0x00000007ca91b828> (a java.lang.ref.ReferenceQueue$Lock) - jdk.internal.ref.CleanerImpl.run() @bci=45, line=140, pc=0x0000000116b4c3de, Method*=0x0000000800256320 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=833, pc=0x0000000116b4ca2f, Method*=0x000000080001d8a0 (Interpreted frame) - jdk.internal.misc.InnocuousThread.run() @bci=20, line=162, pc=0x0000000116b4c5cb, Method*=0x0000000800400f70 (Interpreted frame) Locked ownable synchronizers: - None + help Available commands: assert true | false attach pid | exec core | remote_server buildreplayjars [ all | app | boot ] | [ prefix ] class name classes detach dis address [length] disassemble address dumpcfg { -a | id } dumpclass {address | name} [directory] dumpcodecache dumpheap [gz=<1-9>] [filename] dumpideal { -a | id } dumpilt { -a | id } dumpreplaydata { <address > | -a | <thread_id> } echo [ true | false ] examine [ address/count ] | [ address,address] field [ type [ name fieldtype isStatic offset address ] ] findpc address findsym name flags [ flag | -nd ] g1regiondetails help [ command ] history inspect expression intConstant [ name [ value ] ] jdis address jhisto jstack [-v] livenmethods longConstant [ name [ value ] ] pmap print expression printall printas type expression printmdo [ -a | expression ] printstatics [ type ] pstack [-v] quit reattach revptrs address scanoops start end [ type ] search [ heap | perm | rawheap | codecache | threads ] value source filename symbol address sysprops thread { -a | id } threads tokenize ... type [ type [ name super isOop isInteger isUnsigned size ] ] universe verbose true | false versioncheck [ true | false ] vmstructsdump where { -a | id } ] exitValue = -1 java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr at ClhsdbSource.main(ClhsdbSource.java:81) 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) Caused by: java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340) at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:166) at ClhsdbLauncher.run(ClhsdbLauncher.java:203) at ClhsdbSource.main(ClhsdbSource.java:76) ... 6 more JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'LingeredApp.steadyState' missing from stdout/stderr ----------rerun:(32/7078)*----------
06-07-2021

You're suppose to see the following at the start of the printStackTrace output: SerialNo 9 jdk.test.lib.apps.LingeredApp.steadyState(Ljava/lang/Object;)V (LingeredApp.java:537) jdk.test.lib.apps.LingeredApp$1.run()V (LingeredApp.java:543) SerialNo 8 And in the first 2 iterations, this is indeed the case. However, for the 3rd iteration the stack trace is missing, thus the failure: SerialNo 9 SerialNo 8
13-06-2021