Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nightly]serviceability/sa/TestPrintMdo.java等2个case失败:TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54 #929

Open
sendaoYan opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sendaoYan
Copy link
Collaborator

任务链接:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/453123?tab=3

【环境准备】

BINARY_URL=oss://compiler-ci-bucket/dragonwell11/CI/tar/20250123-003914-635-#643-linux.aarch64.release.master-6fb7ecd8f6a1e3238c5b1bceca68a4b2dc7f822a.jdk.tar.gz
TEST_IMAGE=oss://compiler-ci-bucket/dragonwell11/CI/tar/20250123-003914-635-#643-linux.aarch64.release.master-6fb7ecd8f6a1e3238c5b1bceca68a4b2dc7f822a.test-image.tar.gz
[email protected]:dragonwell-project/dragonwell11.git
JDK_BRANCH=master


jtreg=oss://compiler-ci-bucket/jdk/tools/jtreg-7.4.1.zip


#下载解压jtreg,cd jtreg并配置
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
#下载解压jdk,cd <目录>并配置;如果有test-image,下载test-image包
export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME
#下载jdk-repo
git clone ${JDK_REPO} --depth 1 -b $JDK_BRANCH jdk-repo



#执行测试
jtreg -w tmp -nr -v:fail,error -nativepath:/root/11/test-image/hotspot/jtreg/native -e:TEST_IMAGE_DIR=/root/11/test-image -e:LD_LIBRARY_PATH=/root/11/jdk-repo/build/tools/lib serviceability/sa/TestPrintMdo.java

【测试分析】

涉及的case:
serviceability/sa/ClhsdbCDSCore.java
serviceability/sa/TestPrintMdo.java

x64 arm fastdebug 均fail 

dragonwell-11.0.25.22+9-GA temurin11 均pass

【版本信息】

#jdk信息

openjdk version "11.0.25-internal" 2024-10-15
OpenJDK Runtime Environment (build 11.0.25-internal+0-adhoc..dragonwell11.nightly.pipeline)
OpenJDK 64-Bit Server VM (build 11.0.25-internal+0-adhoc..dragonwell11.nightly.pipeline, mixed mode)
OpenJDK 64-Bit Server VM (11.0.25-internal+0-adhoc..dragonwell11.nightly.pipeline) for linux-aarch64 JRE (11.0.25-internal+0-adhoc..dragonwell11.nightly.pipeline), built on Jan 22 2025 16:39:57 by "" with gcc 7.5.0

#测试机信息jdk环境信息

[root@CompilerTest-aarch64-2 ~]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25; dmidecode -t chassis
Linux CompilerTest-aarch64-2 5.10.134-16.1.al8.aarch64 #1 SMP Thu Dec 7 22:04:51 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

              total        used        free      shared  buff/cache   available
Mem:          122Gi       1.8Gi       107Gi       1.0Mi        12Gi       119Gi
Swap:            0B          0B          0B
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  1
Core(s) per socket:  32
Socket(s):           1
NUMA node(s):        1
Vendor ID:           ARM
BIOS Vendor ID:      Alibaba Cloud
Model:               0
Model name:          Neoverse-N2
BIOS Model name:     virt-rhel7.6.0
Stepping:            r0p0
CPU MHz:             3000.000
CPU max MHz:         3000.0000
CPU min MHz:         3000.0000
BogoMIPS:            100.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            65536K
NUMA node0 CPU(s):   0-31
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x0300, DMI type 3, 21 bytes
Chassis Information
        Manufacturer: Alibaba Cloud
        Type: Other
        Lock: Not Present
        Version: virt-rhel7.6.0
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: Unknown
        OEM Information: 0x00000000
        Height: Unspecified
        Number Of Power Cords: Unspecified
        Contained Elements: 0




【用例日志】

Command line: ['/tmp/tone/run/jtreg/binary-download/j2sdk-image/bin/java' '-XX:+ProfileInterpreter' '-Djdk.lang.processReaperUseDefaultStackSize=true' '-Dtest.wisp.socketAddress=www.alibabacloud.com' '-ea' '-esa' '-Djdk.lang.processReaperUseDefaultStackSize=true' '-Dtest.wisp.socketAddress=www.alibabacloud.com' '-ea' '-esa' '-cp' '/tmp/tone/run/jtreg/jt-work/jtreg/hotspot_jtreg/classes/29/serviceability/sa/TestPrintMdo.d:/tmp/tone/run/jtreg/jt-work/jtreg/hotspot_jtreg/classes/29/test/lib' 'jdk.test.lib.apps.LingeredApp' '998d9e4c-5ba1-4b71-b375-cb52b75f4afe.lck' ]
Attaching to process 415626, 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
Exception in thread "main" java.lang.InternalError: missing reason for 8
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.MethodData.initialize(MethodData.java:190)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.MethodData$1.update(MethodData.java:127)
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver(VM.java:515)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.MethodData.<clinit>(MethodData.java:125)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VMObjectFactory.newObject(VMObjectFactory.java:58)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.Method.getMethodData(Method.java:123)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$16$1.visit(CommandProcessor.java:848)
	at jdk.hotspot.agent/sun.jvm.hotspot.classfile.ClassLoaderData.classesDo(ClassLoaderData.java:108)
	at jdk.hotspot.agent/sun.jvm.hotspot.classfile.ClassLoaderDataGraph.classesDo(ClassLoaderDataGraph.java:82)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$16.doit(CommandProcessor.java:842)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:1974)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:1944)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1824)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:99)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:224)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:522)
 stdout: [Warning! JS Engine can't start, some commands will not be available.
hsdb> ];
 stderr: []
 exitValue = 1

 LingeredApp stdout: [];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: Expected to get exit value of [0]

	at TestPrintMdo.main(TestPrintMdo.java:70)
	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$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:955)
Caused by: java.lang.RuntimeException: Expected to get exit value of [0]

	at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:431)
	at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:127)
	at ClhsdbLauncher.run(ClhsdbLauncher.java:177)
	at TestPrintMdo.main(TestPrintMdo.java:66)
	... 6 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: Expected to get exit value of [0]

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: Expected to get exit value of [0]

@sendaoYan sendaoYan added the bug Something isn't working label Jan 23, 2025
@sendaoYan
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants