【容器镜像】slim裁剪镜像serviceability/sa/TestUniverse.java#id0用例报错javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54 #485
STDOUT:
Starting TestUniverse test
Started LingeredApp with the GC option -XX:+UseG1GC and pid 427133
Starting clhsdb against 427133
[2023-02-16T09:00:03.709349Z] Gathering output for process 427692
[2023-02-16T09:00:06.343526Z] Waiting for completion for process 427692
[2023-02-16T09:00:06.344018Z] Waiting for completion finished for process 427692
Warning! JS Engine can't start, some commands will not be available.
hsdb> Heap Parameters:
Error: sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x0000ffffa00341b0
hsdb>
'garbage-first heap' missing from stdout/stderr
STDERR:
Command line: ['/opt/java/openjdk/bin/java' '-XX:+UnlockExperimentalVMOptions' '-XX:+UseG1GC' '-cp' '/tmp/tone/run/jtreg/jt-work/hotspot_jtreg/classes/2/serviceability/sa/TestUniverse_id0.d:/tmp/tone/run/jtreg/jt-work/hotspot_jtreg/classes/2/test/lib' 'jdk.test.lib.apps.LingeredApp' '297efea8-98cd-435f-99c5-ad859cccd5b3.lck' ]
Attaching to process 427133, please wait...
Warning: Nashorn engine is planned to be removed from a future JDK release
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
stdout: [ Heap Parameters:
Error: sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x0000ffffa00341b0
];
stderr: [ Heap Parameters:
Error: sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x0000ffffa00341b0
]
exitValue = -1
LingeredApp stdout: [];
LingeredApp stderr: []
LingeredApp exitValue = 0
java.lang.RuntimeException: 'garbage-first heap' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:282)
at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:140)
at ClhsdbLauncher.run(ClhsdbLauncher.java:177)
at TestUniverse.testClhsdbForUniverse(TestUniverse.java:95)
at TestUniverse.test(TestUniverse.java:107)
at TestUniverse.main(TestUniverse.java:116)
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:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:829)
java.lang.Error: Test failed with java.lang.RuntimeException: 'garbage-first heap' missing from stdout/stderr
https://tone.aliyun-inc.com/ws/xesljfzh/test_result/146082?tab=1