JDK-8203364 : Some serviceability/sa/ tests intermittently fail with java.io.IOException: LingeredApp terminated with non-zero exit code 3
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2018-05-17
  • Updated: 2020-06-11
  • Resolved: 2019-04-05
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 11 JDK 13
11.0.7Fixed 13 b16Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
 Test serviceability/sa/ClhsdbWhere.java failed once in Windows with following log:
----------System.out:(105/4081)----------
Starting ClhsdbWhere test
Started LingeredApp with pid 9792
Starting clhsdb against 9792
Warning! JS Engine can't start, some commands will not be available.
hsdb> Thread 21 Address: 0x000000e5b1c24800

Java Stack Trace for Common-Cleaner
Thread state = BLOCKED
 - public final native void wait(long) @0x000000e5b0ab0d70 @bci = 0, pc = 0x000000e5951b7f84 (Interpreted)
	- waiting on <0x00000007dc0b4648> (a java.lang.ref.ReferenceQueue$Lock)
 - public java.lang.ref.Reference remove(long) [signature (J)Ljava.lang.ref.Reference<+TT;>;]  @0x000000e5b0ae9be0 @bci = 59, line = 151, pc = 0x000000e5951aa487, oop = 0x00000007dc0b4628 (Interpreted)
	- waiting to re-lock in wait() <0x00000007dc0b4648> (a java.lang.ref.ReferenceQueue$Lock)
 - public void run() @0x000000e5b0de48d0 @bci = 65, line = 148, pc = 0x000000e5951aa1e0, oop = 0x00000007dc0b4608 (Interpreted)

 - public void run() @0x000000e5b0aed1b8 @bci = 11, line = 832, pc = 0x000000e5951aa4cc, oop = 0x00000007dc0b5088 (Interpreted)

 - public void run() @0x000000e5b0dea5d0 @bci = 20, line = 134, pc = 0x000000e5951aa487, oop = 0x00000007dc0b5088 (Interpreted)


Thread 19 Address: 0x000000e5b1c13000

Java Stack Trace for Service Thread
Thread state = BLOCKED

Thread 18 Address: 0x000000e5b1be2000

Java Stack Trace for C1 CompilerThread4
Thread state = BLOCKED

Thread 17 Address: 0x000000e5b1be1000

Java Stack Trace for C1 CompilerThread3
Thread state = BLOCKED

Thread 16 Address: 0x000000e5b1ba8800

Java Stack Trace for C1 CompilerThread2
Thread state = BLOCKED

Thread 15 Address: 0x000000e5b089b000

Java Stack Trace for C1 CompilerThread1
Thread state = BLOCKED

Thread 14 Address: 0x000000e5b0619800

Java Stack Trace for Sweeper thread
Thread state = BLOCKED

Thread 13 Address: 0x000000e5b0614000

Java Stack Trace for C1 CompilerThread0
Thread state = BLOCKED

Thread 12 Address: 0x000000e5b0612800

Java Stack Trace for C2 CompilerThread0
Thread state = BLOCKED

Thread 11 Address: 0x000000e5b0611800

Java Stack Trace for Attach Listener
Thread state = BLOCKED

Thread 10 Address: 0x000000e5b0610800

Java Stack Trace for Signal Dispatcher
Thread state = BLOCKED

Thread 9 Address: 0x000000e5b05ee800

Java Stack Trace for Finalizer
Thread state = BLOCKED
 - public final native void wait(long) @0x000000e5b0ab0d70 @bci = 0, pc = 0x000000e5951b7f84 (Interpreted)
	- waiting on <0x00000007dc1090d8> (a java.lang.ref.ReferenceQueue$Lock)
 - public java.lang.ref.Reference remove(long) [signature (J)Ljava.lang.ref.Reference<+TT;>;]  @0x000000e5b0ae9be0 @bci = 59, line = 151, pc = 0x000000e5951aa487, oop = 0x00000007dc1090b8 (Interpreted)
	- waiting to re-lock in wait() <0x00000007dc1090d8> (a java.lang.ref.ReferenceQueue$Lock)
 - public java.lang.ref.Reference remove() [signature ()Ljava.lang.ref.Reference<+TT;>;]  @0x000000e5b0ae9ca0 @bci = 2, line = 172, pc = 0x000000e5951aa1e0, oop = 0x00000007dc1090b8 (Interpreted)

 - public void run() @0x000000e5b0c18e40 @bci = 37, line = 170, pc = 0x000000e5951aa1e0, oop = 0x00000007dc109190 (Interpreted)


Thread 8 Address: 0x000000e5b05ed000

Java Stack Trace for Reference Handler
Thread state = BLOCKED
 - private static native void waitForReferencePendingList() @0x000000e5b0ae66d8 @bci = 0, pc = 0x000000e5951b7f84 (Interpreted)

 - private static void processPendingReferences() @0x000000e5b0ae6890 @bci = 0, line = 166, pc = 0x000000e5951aa487 (Interpreted)

 - static [synthetic] void access$000() @0x000000e5b0ae6ff0 @bci = 0, line = 44, pc = 0x000000e5951aa487 (Interpreted)

 - public void run() @0x000000e5b0c126f8 @bci = 0, line = 138, pc = 0x000000e5951aa487, oop = 0x00000007dc108bb8 (Interpreted)


Thread 1 Address: 0x000000e58bb3e000

Java Stack Trace for main
Thread state = BLOCKED
 - public static native void sleep(long) @0x000000e5b0aec138 @bci = 0, pc = 0x000000e5951b7f84 (Interpreted)

 - public static void main(java.lang.String[]) @0x000000e5b0eb3d40 @bci = 53, line = 498, pc = 0x000000e5951aa487 (Interpreted)


hsdb> 
----------System.err:(19/1695)*----------
Command line: ['C:\\ade\\sbr\\12\\windows-x64\\jdk-tested\\jdk-11\\fastdebug/bin/java' '-XX:MaxRAMPercentage=2' '-cp' 'C:\\ade\\sbr\\12\\windows-x64\\results\\run_81\\tier1\\JTwork\\hotspot_jtreg_0\\classes\\11\\serviceability\\sa\\ClhsdbWhere.d;C:\\ade\\sbr\\12\\windows-x64\\results\\run_81\\tier1\\JTwork\\hotspot_jtreg_0\\classes\\11\\test\\lib' 'jdk.test.lib.apps.LingeredApp' '9f92965f-4164-4eff-8bb2-194eb7a04a2f.lck' ]
Attaching to process 9792, please wait...
javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
java.io.IOException: LingeredApp terminated with non-zero exit code 3
	at jdk.test.lib.apps.LingeredApp.stopApp(LingeredApp.java:381)
	at jdk.test.lib.apps.LingeredApp.stopApp(LingeredApp.java:441)
	at ClhsdbWhere.main(ClhsdbWhere.java:68)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.io.IOException: LingeredApp terminated with non-zero exit code 3
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.io.IOException: LingeredApp terminated with non-zero exit code 3
Comments
Fix request (11u): Requesting backport of a small test fix that should avoid intermittent errors and hence reduce noise in testing. Patch applies cleanly.
14-02-2020

There are 2 more tests failed: runtime/SharedArchiveFile/SASymbolTableTest.java serviceability/sa/ClhsdbInspect.java Test SASymbolTableTest.java also fails while connected to LingeredApp with SA.
05-06-2018