dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【ajdk8】用例sanity/JemallocLinkTest.sh报错 #331

Closed dzchun closed 9 months ago

dzchun commented 9 months ago

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

【环境准备】

wget -O binary.tar.z https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/ajdk8/20240116-003504-177-%23852-linux.x86_64.release.master-d8b08ceccb168405a1d1b192da55114ec9023baa.tar.gz
mkdir binary-download
tar xf binary.tar.z -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 https://codeup.aliyun.com/5f4e0dfe6207a1a8b17fa7cf/compiler-test/jdk8u.git -b master jdk-repo
test=sanity/JemallocLinkTest.sh
args='-Xmixed
jtreg -w tmp -nr -v:fail,error $args $test

【对比分析】 release和上游,dragonwell8也是同样的报错

ajdk8 release wget http://114.55.64.175:8666/ajdk-backup/8.21.25/OpenJDK8U-jdk_aarch64_linux_ajdk_2023-10-13-03-56.tar.gz

[root@iZbp12aazmbucwg445xcgmZ jtreg]# bin-release-ajdk8/jdk8u382-b0/bin/java -version
openjdk version "1.8.0_382"
OpenJDK Runtime Environment (Alibaba 8.21.25) (build 1.8.0_382-b0)
OpenJDK 64-Bit Server VM (Alibaba 8.21.25) (build 25.382-b0-internal, mixed mode)
[root@iZbp12aazmbucwg445xcgmZ jtreg]# bin-release-ajdk8/jdk8u382-b0/bin/java -Xinternalversion
OpenJDK 64-Bit Server VM (25.382-b0-internal) for linux-aarch64 JRE (1.8.0_382-b0), built on Oct 13 2023 04:18:02 by "root" with gcc 4.8.5 20150623 (Red Hat 4.8.5-44)

Temruin8 wget http://114.55.64.175:8666/compiler-ci-bucket/openjdk/jdk8u392-ga/OpenJDK8U-jdk_aarch64_linux_hotspot_8u392b08.tar.gz

[root@iZbp12aazmbucwg445xcgmZ jtreg]# bin-Tem-ajdk8/jdk8u392-b08/bin/java -version
openjdk version "1.8.0_392"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_392-b08)
OpenJDK 64-Bit Server VM (Temurin)(build 25.392-b08, mixed mode)
[root@iZbp12aazmbucwg445xcgmZ jtreg]# bin-Tem-ajdk8/jdk8u392-b08/bin/java -Xinternalversion
OpenJDK 64-Bit Server VM (25.392-b08) for linux-aarch64 JRE (1.8.0_392-b08), built on Oct 18 2023 00:08:03 by "jenkins" with gcc 7.5.0

dragonwell8 wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/8.17.18/Alibaba_Dragonwell_Extended_8.17.18_aarch64_linux.tar.gz

[root@iZbp12aazmbucwg445xcgmZ jtreg]# bin-release-dragonwell8/dragonwell-8.17.18/bin/java -version
openjdk version "1.8.0_392"
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition 8.17.18) (build 1.8.0_392-b01)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition 8.17.18) (build 25.392-b01, mixed mode)
[root@iZbp12aazmbucwg445xcgmZ jtreg]# bin-release-dragonwell8/dragonwell-8.17.18/bin/java -Xinternalversion
OpenJDK 64-Bit Server VM (25.392-b01) for linux-aarch64 JRE (1.8.0_392-b01), built on Dec 26 2023 09:05:00 by "jenkins" with gcc 7.5.0

【日志分析】

x86日志:

STDOUT:
/tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/x86_64/libjava.so not exist

arm日志:

STDOUT:
    libjemalloc.so.2 => /tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/aarch64/libjemalloc.so.2 (0x0000ffff81ef0000)
--- Found jemalloc linked in /tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/aarch64/libattach.so! Test Failed ---
STDERR:
ldd: warning: you do not have execution permission for `/tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/aarch64/hsdis-aarch64.so'

进一步分析:

x86环境: libjava.so文件的正确路径为/tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/amd64/libjava.so, git仓查看用例发现该用例是2024-1-12号新增的,无执行记录,且用例第13行用了$arch变量

[root@iZbp1drrnu5qljzmawownaZ jtreg]# ll /tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/amd64/libjava.so
-rwxr-xr-x 1 testUserForTone testUserForTone 230160 Jan 16 00:39 /tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/amd64/libjava.so

arm环境: 各版本各日期的二进制里 hsdis-aarch64.so文件一直都没有可执行权限

[root@iZbp12aazmbucwg445xcgmZ jtreg]# ll /tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/aarch64/hsdis-aarch64.so
-rw-r--r-- 1 testUserForTone testUserForTone 1918320 Jan 15 00:41 /tmp/tone/run/jtreg/binary-download/j2sdk-image/jre/lib/aarch64/hsdis-aarch64.so

【版本信息】

[root@iZbp12aazmbucwg445xcgmZ jtreg]# uname -a;cat /etc/os-release ;free -h;lscpu;java -version;java -Xinternalversion
Linux iZbp12aazmbucwg445xcgmZ 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       718Mi        54Gi       0.0Ki       5.4Gi        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_382"
OpenJDK Runtime Environment (Alibaba 8.9.14) (build 1.8.0_382-b0)
OpenJDK 64-Bit Server VM (Alibaba 8.9.14) (build 25.382-b0-internal, mixed mode)
OpenJDK 64-Bit Server VM (25.382-b0-internal) for linux-aarch64 JRE (1.8.0_382-b0), built on Jan 14 2024 16:38:12 by "" with gcc 4.8.5 20150623 (Red Hat 4.8.5-44)
sendaoYan commented 9 months ago

aone 跟踪 https://aone.alibaba-inc.com/v2/project/355606/bug/54576453# 《[ajdk8][nightly]sanity/JemallocLinkTest.sh报错》