JDK-8242384 : sa/TestSysProps.java failed due to "RuntimeException: Could not find property in jinfo output: [0.058s][info][cds] Archive was created with UseCompressedOops"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-04-08
  • Updated: 2020-04-15
  • Resolved: 2020-04-08
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 15
15 b18Fixed
Related Reports
Relates :  
Description
The following test failed in the JDK15 CI:

serviceability/sa/TestSysProps.java

Here's a snippet from the log file:

-- listing properties --
java.specification.version=15
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.jnu.encoding=ANSI_X3.4-1968
java.runtime.version=15-ea+18-762
java.class.path=/opt/mach5/mesos/work_dir/slaves/b0d8...
user.name=mach5-one
java.vm.vendor=Oracle Corporation
path.separator=:
sun.arch.data.model=64
os.version=4.14.35-1902.10.4.el7uek.x86_64
java.runtime.name=Java(TM) SE Runtime Environment
file.encoding=ANSI_X3.4-1968
java.vendor.url=https://java.oracle.com/
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.version=15
os.name=Linux
sun.java.launcher=SUN_STANDARD
user.country=US
sun.boot.library.path=/opt/mach5/mesos/work_dir/jib-master/...
sun.java.command=LingeredAppSysProps 1d0c55fb-6457-4b0...
java.vendor.url.bug=https://bugreport.java.com/bugreport/
java.io.tmpdir=/tmp
jdk.debug=fastdebug
sun.cpu.endian=little
java.version=15-ea
user.home=/opt/mach5
user.dir=/opt/mach5/mesos/work_dir/slaves/b0d8...
os.arch=amd64
user.language=en
java.specification.vendor=Oracle Corporation
java.vm.specification.name=Java Virtual Machine Specification
java.version.date=2020-09-15
java.home=/opt/mach5/mesos/work_dir/jib-master/...
file.separator=/
java.vm.compressedOopsMode=Zero based
line.separator=

java.library.path=/usr/java/packages/lib:/usr/lib64:/li...
java.vm.info=mixed mode, sharing
java.vm.specification.vendor=Oracle Corporation
java.specification.name=Java Platform API Specification
java.vendor=Oracle Corporation
java.vm.version=15-ea+18-762
sun.io.unicode.encoding=UnicodeLittle
java.class.version=59.0
];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
java.lang.RuntimeException: Could not find property in jinfo output: [0.058s][info][cds] Archive was created with UseCompressedOops 
	at TestSysProps.main(TestSysProps.java:144)
	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:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Could not find property in jinfo output: [0.058s][info][cds] Archive was created with UseCompressedOops 
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could not find property in jinfo output: [0.058s][info][cds] Archive was created with UseCompressedOops
----------rerun:(35/6075)*----------

Looks like the test is newly added via:

    JDK-8242165 SA sysprops support fails to dump all system properties
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/44aef192b488 User: cjplummer Date: 2020-04-08 21:12:49 +0000
08-04-2020

Ugh. This actually turned up in my own testing, but I thought it was the TestJps.java failures that we also currently see, and also show up in groups of 3. This issue is this in the output, which the test is mistaking for a property: [0.056s][info][cds] Archive was created with UseCompressedOops = 1, UseCompressedClassPointers = 1 I'll see if I can come up with a quick fix. Since test currently prints "-- listing properties --" just before the list of properties, I can probably pretty easily skip any output that comes before that.
08-04-2020

This test failure is showing up a couple of times in every Tier4 CI job set since the fix for JDK-8242165 was pushed. If a fix is not coming soon, please ProblemList this test.
08-04-2020

[~cjplummer] - Can you take a quick look?
08-04-2020