dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【ajdk8】【fp】在并行执行时报错error: duplicate class: Test #329

Closed owanqian closed 9 months ago

owanqian commented 9 months ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/268494

【环境准备】

wget -O binary.tar.gz http://114.55.64.175:8666/ajdk-backup/8.16.20_fp2-test-ajdk_fp/OpenJDK8U-jdk_aarch64_linux_ajdk_2024-01-12-08-54.tar.gz
mkdir binary-download 
tar xzvf binary.tar.gz -C binary-download
cd binary-download && export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME && cd -
wget -nv http://114.55.64.175:8666/compiler-ci-bucket/tools/jtreg5.1-b01.zip -O jtreg.zip
unzip jtreg.zip
cd jtreg 
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
cd -
git clone -b v8.16.20_fp https://codeup.aliyun.com/5f4e0dfe6207a1a8b17fa7cf/compiler-test/jdk8u.git jdk-repo
test=runtime/FDO/TestDisableUnstableIf.sh
args='-Xmixed'
dir="jt-work" ; rm -rf $dir ; mkdir -p $dir ; time seq 20 | xargs -i -n 1 -P 2 bash -c "jtreg -w tmp -nr -v:fail,error $native  $args $test &> $dir/test_{} ; grep 'Test results: passed: 1' -L $dir/test_{}"

【对比版本】

ajdk8 fp版本,同样问题。

wget http://114.55.64.175:8666/ajdk-backup/8.16.20_fp1/8.16.20_fp1_aarch64.tar.gz

[root@iZbp10m5gxyeaz1iykchhvZ bin]# ./java -version; ./java -Xinternalversion
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (Alibaba 8.16.20_fp1) (build 1.8.0_332-b)
OpenJDK 64-Bit Server VM (Alibaba 8.16.20_fp1) (build 25.332-b-internal, mixed mode)
OpenJDK 64-Bit Server VM (25.332-b-internal) for linux-aarch64 JRE (1.8.0_332-b), built on Jul 19 2022 03:20:43 by "root" with gcc 4.8.5 20150623 (Red Hat 4.8.5-44)

【用例日志】

STDOUT:
--- Not Found Deopt that should happen ! Test Failed ---
STDERR:
Test.java:47: error: duplicate class: foo
class foo {
^
Test.java:57: error: duplicate class: Test
public class Test {
       ^
2 errors
Error: Could not find or load main class Test
Error: Could not find or load main class Test
Error: Could not find or load main class Test

【版本信息】

[root@iZbp10m5gxyeaz1iykchhvZ jtreg]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25;java -version; java -Xinternalversion
Linux iZbp10m5gxyeaz1iykchhvZ 5.10.134-15.an8.aarch64 #1 SMP Thu Jul 20 00:33:45 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
NAME="Anolis OS"
VERSION="8.8"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.8"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.8"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

              total        used        free      shared  buff/cache   available
Mem:           61Gi       701Mi        57Gi       0.0Ki       3.2Gi        59Gi
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
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (Alibaba 8.16.20_fp1) (build 1.8.0_332-b0)
OpenJDK 64-Bit Server VM (Alibaba 8.16.20_fp1) (build 25.332-b0-internal, mixed mode)
OpenJDK 64-Bit Server VM (25.332-b0-internal) for linux-aarch64 JRE (1.8.0_332-b0), built on Jan 12 2024 08:59:26 by "root" with gcc 4.8.5 20150623 (Red Hat 4.8.5-44)
sendaoYan commented 9 months ago

报错现象跟https://github.com/dragonwell-releng/dragonwell-adoptium/issues/327不一样,把并行改为1再试一下