JDK-8258649 : serviceability/sa/TestPrintMdo.java failed with "RuntimeException: 'ReceiverTypeData' missing from stdout/stderr"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 16,17
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86_64
  • Submitted: 2020-12-17
  • Updated: 2021-05-19
  • Resolved: 2021-05-19
Related Reports
Duplicate :  
Description
The following test failed in the JDK16 CI:

serviceability/sa/TestPrintMdo.java

Here's a snippet from the log file:

----------System.err:(158/6615)----------
 stdout: [ + printmdo -a
MethodData 0x00007f5a84c1dc80 for method sun/nio/fs/UnixPath.checkNotNul(Ljava/lang/String;C)V@0x00000008003142c8
0 bci: 1 BranchData 	taken(40) displacement(48)
	not taken(0)
32 bci: 11 CounterData 	count(0)
--- Extra data:
80 bci: 0 ArgInfoData 	  0x0  0x0
MethodData 0x00007f5a84c1e638 for method java/lang/StringLatin1.hashCode([B)I@0x0000000800030bd8
0 bci: 13 BranchData 	taken(0) displacement(56)
	not taken(0)
32 bci: 37 JumpData 	taken(0) displacement(-32)
--- Extra data:
88 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c0d6a8 for method java/lang/StringLatin1.charAt([BI)C@0x0000000800031238
0 bci: 1 BranchData 	taken(0) displacement(64)
	not taken(1042)
32 bci: 7 BranchData 	taken(1042) displacement(48)
	not taken(0)
64 bci: 15 CounterData 	count(0)
--- Extra data:
112 bci: 0 ArgInfoData 	  0x0  0x0
MethodData 0x00007f5a84c120d8 for method java/lang/String.length()I@0x00000008004402d8
0 bci: 6 VirtualCallData 	count(292) entries(0)
--- Extra data:
104 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c1e348 for method java/lang/String.hashCode()I@0x0000000800440bd8
0 bci: 6 BranchData 	taken(0) displacement(264)
	not taken(0)
32 bci: 13 BranchData 	taken(0) displacement(232)
	not taken(0)
64 bci: 17 VirtualCallData 	count(0) entries(0)
120 bci: 20 BranchData 	taken(0) displacement(72)
	not taken(0)
152 bci: 27 CounterData 	count(0)
168 bci: 30 JumpData 	taken(0) displacement(40)
192 bci: 37 CounterData 	count(0)
208 bci: 42 BranchData 	taken(0) displacement(56)
	not taken(0)
240 bci: 50 JumpData 	taken(0) displacement(24)
--- Extra data:
312 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c0f790 for method java/lang/String.coder()B@0x0000000800441358
0 bci: 3 BranchData 	taken(0) displacement(56)
	not taken(895)
32 bci: 10 JumpData 	taken(895) displacement(24)
--- Extra data:
88 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c0d210 for method java/lang/String.isLatin1()Z@0x0000000800441478
0 bci: 3 BranchData 	taken(0) displacement(88)
	not taken(1561)
32 bci: 10 BranchData 	taken(0) displacement(56)
	not taken(1561)
64 bci: 14 JumpData 	taken(1561) displacement(24)
--- Extra data:
120 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c0d440 for method java/lang/String.charAt(I)C@0x0000000800440278
0 bci: 1 VirtualCallData 	count(1042) entries(0)
56 bci: 4 BranchData 	taken(0) displacement(48)
	not taken(1042)
88 bci: 12 CounterData 	count(1042)
104 bci: 21 CounterData 	count(0)
--- Extra data:
168 bci: 0 ArgInfoData 	  0x0  0x0
MethodData 0x00007f5a84c0e4f0 for method java/lang/Object.<init>()V@0x000000080045b610
--- Extra data:
8 bci: 0 ArgInfoData 	  0x0
];
 stderr: [ + printmdo -a
MethodData 0x00007f5a84c1dc80 for method sun/nio/fs/UnixPath.checkNotNul(Ljava/lang/String;C)V@0x00000008003142c8
0 bci: 1 BranchData 	taken(40) displacement(48)
	not taken(0)
32 bci: 11 CounterData 	count(0)
--- Extra data:
80 bci: 0 ArgInfoData 	  0x0  0x0
MethodData 0x00007f5a84c1e638 for method java/lang/StringLatin1.hashCode([B)I@0x0000000800030bd8
0 bci: 13 BranchData 	taken(0) displacement(56)
	not taken(0)
32 bci: 37 JumpData 	taken(0) displacement(-32)
--- Extra data:
88 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c0d6a8 for method java/lang/StringLatin1.charAt([BI)C@0x0000000800031238
0 bci: 1 BranchData 	taken(0) displacement(64)
	not taken(1042)
32 bci: 7 BranchData 	taken(1042) displacement(48)
	not taken(0)
64 bci: 15 CounterData 	count(0)
--- Extra data:
112 bci: 0 ArgInfoData 	  0x0  0x0
MethodData 0x00007f5a84c120d8 for method java/lang/String.length()I@0x00000008004402d8
0 bci: 6 VirtualCallData 	count(292) entries(0)
--- Extra data:
104 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c1e348 for method java/lang/String.hashCode()I@0x0000000800440bd8
0 bci: 6 BranchData 	taken(0) displacement(264)
	not taken(0)
32 bci: 13 BranchData 	taken(0) displacement(232)
	not taken(0)
64 bci: 17 VirtualCallData 	count(0) entries(0)
120 bci: 20 BranchData 	taken(0) displacement(72)
	not taken(0)
152 bci: 27 CounterData 	count(0)
168 bci: 30 JumpData 	taken(0) displacement(40)
192 bci: 37 CounterData 	count(0)
208 bci: 42 BranchData 	taken(0) displacement(56)
	not taken(0)
240 bci: 50 JumpData 	taken(0) displacement(24)
--- Extra data:
312 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c0f790 for method java/lang/String.coder()B@0x0000000800441358
0 bci: 3 BranchData 	taken(0) displacement(56)
	not taken(895)
32 bci: 10 JumpData 	taken(895) displacement(24)
--- Extra data:
88 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c0d210 for method java/lang/String.isLatin1()Z@0x0000000800441478
0 bci: 3 BranchData 	taken(0) displacement(88)
	not taken(1561)
32 bci: 10 BranchData 	taken(0) displacement(56)
	not taken(1561)
64 bci: 14 JumpData 	taken(1561) displacement(24)
--- Extra data:
120 bci: 0 ArgInfoData 	  0x0
MethodData 0x00007f5a84c0d440 for method java/lang/String.charAt(I)C@0x0000000800440278
0 bci: 1 VirtualCallData 	count(1042) entries(0)
56 bci: 4 BranchData 	taken(0) displacement(48)
	not taken(1042)
88 bci: 12 CounterData 	count(1042)
104 bci: 21 CounterData 	count(0)
--- Extra data:
168 bci: 0 ArgInfoData 	  0x0  0x0
MethodData 0x00007f5a84c0e4f0 for method java/lang/Object.<init>()V@0x000000080045b610
--- Extra data:
8 bci: 0 ArgInfoData 	  0x0
]
 exitValue = -1

java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'ReceiverTypeData' missing from stdout/stderr 

	at TestPrintMdo.main(TestPrintMdo.java:67)
	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:567)
	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: 'ReceiverTypeData' missing from stdout/stderr 

	at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:308)
	at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:163)
	at ClhsdbLauncher.run(ClhsdbLauncher.java:200)
	at TestPrintMdo.main(TestPrintMdo.java:63)
	... 6 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'ReceiverTypeData' missing from stdout/stderr 
Comments
JDK-8263326 fixed this issue by removing the ReceiverTypeData check
19-05-2021

This seems related to JDK-8180514, although those failures were with -XX:-TieredCompilation, and that is not the case with this failure. However, the fix was to add -XX:CompileThreshold=100, and I wonder if that might actually be causing issues now. The fix was pushed about 10 weeks ago.
17-12-2020