dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.2k stars 497 forks source link

[dragonwell8.20.21][standard]aqavit_extended.system测试-XX:+UseCompressedOops选项下MiniMix_5m_0等5个用例报错java.lang.NoSuchMethodError #676

Closed sendaoYan closed 1 month ago

sendaoYan commented 1 month ago

【环境准备】
BINARY_URL=oss://dragonwell/8.20.21-test-dragonwell_standard/Alibaba_Dragonwell_Standard_8.20.21_x64_linux.tar.gz

执行机器
8.211.32.252

指定java_home:
cd /home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jdkbinary/j2sdk-image
export JAVA_HOME=\$PWD ; export PATH=\$JAVA_HOME/bin:\$PATH ; export TEST_JDK_HOME=\$JAVA_HOME

执行命令:
cd /home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur

perl /home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/STF/stf.core/scripts/stf.pl -test-root="/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/STF;/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/aqa-tests/TKG/../../jvmtest/system/otherLoadTest/..//aqa-systemtest""" -systemtest-prereqs="/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/../../testDependency/system_lib/" -java-args=' -XX:+UseCompressedOops ' -results-root="/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/aqa-tests/TKG/../TKG/output_1724218403685/MiniMix_aot_5m_0" -test=MixedLoadTest -test-args="timeLimit=5m" -java-args-execute-initial=""

【pipeline】
http://ci.dragonwell-jdk.io/job/Test_openjdk8_dragonwell_extended.system_x86-64_linux/372/consoleFull
http://ci.dragonwell-jdk.io/job/Test_openjdk8_dragonwell_extended.system_aarch64_linux/274/consoleFull

x64和aarch64都失败,本次验证以x64为准,涉及用例如下
MiniMix_5m_0
MiniMix_5m_1
MiniMix_10m_0
MiniMix_10m_1
MiniMix_aot_5m_0

【对比测试】
dragonwell8 release 同样失败
jdk:
https://dragonwell.oss-cn-shanghai.aliyuncs.com/8.19.20/Alibaba_Dragonwell_Standard_8.19.20_x64_linux.tar.gz

pipeline:
http://ci.dragonwell-jdk.io/job/Test_openjdk8_dragonwell_extended.system_x86-64_linux/379/console

Temurin8 同样失败
jdk:
https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jdk_x64_linux_hotspot_8u422b05.tar.gz

pipeline:
http://ci.dragonwell-jdk.io/job/Test_openjdk8_dragonwell_extended.system_x86-64_linux/376/consoleFull

【用例日志】
每次执行java.lang.NoSuchMethodError后面报错的具体类型不一样 ,主要包括以下几种 image.png
完整日志:
extended_system.txt
部分日志 :

13:43:31  LT  13:43:30.745 - First failure detected by thread: load-11. Not creating dumps as no dump generation is requested for this load test
13:43:31  LT  13:43:30.746 - Test failed
13:43:31  LT    Failure num.  = 1
13:43:31  LT    Test number   = 3114
13:43:31  LT    Test details  = 'Mauve[gnu.testlet.java.nio.ByteBuffer.compact]'
13:43:31  LT    Suite number  = 0
13:43:31  LT    Thread number = 11
13:43:31  LT  >>> Captured test output >>>
13:43:31  LT  Test failed:
13:43:31  LT  java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
13:43:31  LT    at gnu.testlet.java.nio.ByteBuffer.compact.test(compact.java:35)
13:43:31  LT    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:43:31  LT    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:43:31  LT    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:43:31  LT    at java.lang.reflect.Method.invoke(Method.java:498)
13:43:31  LT    at net.adoptopenjdk.loadTest.adaptors.MauveAdaptor.executeTest(MauveAdaptor.java:74)
13:43:31  LT    at net.adoptopenjdk.loadTest.LoadTestRunner$2.run(LoadTestRunner.java:182)
13:43:31  LT    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
13:43:31  LT    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
13:43:31  LT    at java.lang.Thread.run(Thread.java:750)
13:43:31  LT  <<<
13:43:31  LT  
13:43:31  LT  13:43:30.773 - Test failed. Details recorded in execution log.
13:43:31  LT  13:43:30.846 - Test failed. Details recorded in execution log.
13:43:31  LT  13:43:31.238 - Test failed. Details recorded in execution log.
13:43:31  LT  13:43:31.388 - Test failed. Details recorded in execution log.
13:43:31  LT  13:43:31.430 - Test failed. Details recorded in execution log.
13:43:31  LT  13:43:31.474 - Test failed. Details recorded in execution log.
13:43:32  LT  13:43:31.749 - Test failed. Details recorded in execution log.
13:43:32  LT  13:43:31.858 - Test failed. Details recorded in execution log.
13:43:32  LT  13:43:31.910 - Test failed. Details recorded in execution log.

【版本信息】

uname -a ; cat /etc/os-release ; free -h ; lscpu | head -n 25 ;
Linux iZgw8du5lev6ljk1j9f2i2Z 5.4.0-137-generic #154-Ubuntu SMP Thu Jan 5 17:03:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
              total        used        free      shared  buff/cache   available
Mem:           61Gi       3.3Gi       4.4Gi       2.0Mi        54Gi        57Gi
Swap:         2.0Gi       3.0Mi       1.9Gi
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   46 bits physical, 57 bits virtual
CPU(s):                          16
On-line CPU(s) list:             0-15
Thread(s) per core:              2
Core(s) per socket:              8
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           106
Model name:                      Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
Stepping:                        6
CPU MHz:                         3499.960
BogoMIPS:                        5399.99
Hypervisor vendor:               KVM
Virtualization type:             full
L1d cache:                       384 KiB
L1i cache:                       256 KiB
L2 cache:                        10 MiB
L3 cache:                        48 MiB
NUMA node0 CPU(s):               0-15
sendaoYan commented 1 month ago

/root/jdk-11.0.20.20+9/bin/java -XX:+UseCompressedOops -classpath /home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/STF/stf.load/bin:/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/STF/stf.core/bin:/home/admin/testDependency/system_lib/log4j/log4j-api.jar:/home/admin/testDependency/system_lib/log4j/log4j-core.jar:/home/admin/testDependency/system_lib/junit/junit.jar:/home/admin/testDependency/system_lib/junit/hamcrest-core.jar:/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/aqa-systemtest/openjdk.test.math/bin:/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/aqa-systemtest/openjdk.test.lang/bin:/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/aqa-systemtest/openjdk.test.nio/bin:/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/aqa-systemtest/openjdk.test.concurrent/bin:/home/admin/testDependency/system_lib/mauve/mauve.jar:/home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/jvmtest/system/aqa-systemtest/openjdk.test.nio/bin/lib/filesystem.jar net.adoptopenjdk.loadTest.LoadTest -resultsDir /home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/aqa-tests/TKG/output_1724218403685/MiniMix_aot_5m_0/20240822-234937-MixedLoadTest/results -resultsPrefix 1.LT. -timeLimit 5m -abortIfOutOfMemory false -reportFailureLimit 1 -abortAtFailureLimit 10 -maxTotalLogFileSpace 200M -maxSingleLogSize 1/25 -suite.mix.threadCount 14 -suite.mix.inventoryFile /home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/aqa-tests/TKG/output_1724218403685/MiniMix_aot_5m_0/20240822-234937-MixedLoadTest/results/1.LT.inventory/openjdk.test.load/config/inventories/mix/mix-more.xml -suite.mix.inventoryExcludeFile /home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/aqa-tests/TKG/output_1724218403685/MiniMix_aot_5m_0/20240822-234937-MixedLoadTest/results/1.LT.inventory/openjdk.test.load/config/inventories/mauve/mauve_multiThread_exclude.xml -suite.mix.inventoryExcludeFile /home/admin/workspace/Test_openjdk8_dragonwell_extended.system_x86-64_linux_cur/aqa-tests/TKG/output_1724218403685/MiniMix_aot_5m_0/20240822-234937-MixedLoadTest/results/1.LT.inventory/openjdk.test.load/config/inventories/concurrent/concurrent_exclude.xml -suite.mix.selection random -suite.mix.seed -1 -suite.mix.repeatCount 1 -suite.mix.thinkingTime 0ms..0ms

sendaoYan commented 1 month ago

应该是执行机环境上mauve.jar使用的是老版本的文件,将文件替换为https://ci.adoptium.net/job/systemtest.getDependency/lastSuccessfulBuild/artifact/systemtest_prereqs/mauve/mauve.jar文件之后用例运行pass

https://aone.alibaba-inc.com/v2/project/1164623/req/59223030# 《dragonwell8的aqa-tests及TKG代码仓需要及时同步上游最新版本》