dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【dragonwell17】在x64平台jdk-repo/test/langtools/tools/javac/Paths/Class-Path.sh用例在-Xcomp选项: timeout #261

Closed owanqian closed 10 months ago

owanqian commented 10 months ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/239361 【环境准备】

wget -O jtreg.zip https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/jdk/tools/jtreg-6.1.1.zip
wget -O binary.tar.gz https://dragonwell.oss-cn-shanghai.aliyuncs.com/test-58/OpenJDK17U-jdk_x64_linux_dragonwell_2023-10-23-02-59.tar.gz
wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/test-58/OpenJDK17U-testimage_x64_linux_dragonwell_2023-10-23-02-59.tar.gz -O test-image.tar.gz
git clone https://github.com/dragonwell-project/dragonwell17.git -b wip_dragonwell_standard_merge_branch jdk-repo

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 -
make test-image ; tar xzvf test-image.tar.gz -C test-image
unzip jtreg.zip; cd jtreg ; export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH ; cd -

test=jdk-repo/test/langtools/tools/javac/Paths/Diagnostics.sh

args='-Xcomp'
native='-nativepath:./test-image/hotspot/jtreg/native'
jtreg -w tmp -nr -v:fail,error $native  $args $test

【对比测试】

dragonwell17 release版本同样错误. wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/17.0.8.0.8%2B7/Alibaba_Dragonwell_Standard_17.0.8.0.8.7_x64_linux.tar.gz

[root@VM20210305-10 d17-release]# java -version; java -Xinternalversion
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment (Alibaba Dragonwell Standard Edition)-17.0.8.0.8+7-GA (build 17.0.8+7)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Standard Edition)-17.0.8.0.8+7-GA (build 17.0.8+7, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.8+7) for linux-aarch64 JRE (17.0.8+7), built on Jul 18 2023 00:00:00 by "dragonwell" with gcc 10.3.0

temurin17 同样错误. https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.9_9.tar.gz

[root@VM20190228-137 t17]# java -version; java -Xinternalversion
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.9+9) for linux-amd64 JRE (17.0.9+9), built on Oct 17 2023 00:00:00 by "admin" with gcc 10.3.0

【用例日志】

STDOUT:
rm -rf Main.java Main.class
rm -rf classes classes.foo classes.jar classes.war classes.zip
rm -rf MANIFEST.MF classesRef.jar classesRefRef.jar jars
-----------------------------------------------------------------
/root/d17/binary-download/bin/javac -J-Xcomp Main.java
-----------------------------------------------------------------
/root/d17/binary-download/bin/javac -J-Xcomp -cp .:classes Main.java
-----------------------------------------------------------------
/root/d17/binary-download/bin/javac -J-Xcomp -Xlint:path -cp .:classes Main.java
warning: [path] bad path element "classes": no such file or directory
1 warning
-----------------------------------------------------------------
/root/d17/binary-download/bin/javac -J-Xcomp -source 8 -target 8 -Xlint:path -Xbootclasspath/p:classes Main.java
warning: [path] bad path element "classes": no such file or directory
1 warning
-----------------------------------------------------------------
/root/d17/binary-download/bin/javac -J-Xcomp -source 8 -target 8 -Xlint -Xbootclasspath/a:classes Main.java
warning: [path] bad path element "classes": no such file or directory
1 warning
-----------------------------------------------------------------
/root/d17/binary-download/bin/javac -J-Xcomp -source 8 -target 8 -Xlint:path -endorseddirs classes Main.java
Timeout refired 180 times

【版本信息】

[root@VM20190228-137 d17]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25;java -version; java -Xinternalversion
Linux VM20190228-137 5.10.134-14.al8.x86_64 #1 SMP Thu Apr 27 16:46:29 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
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:           15Gi       588Mi       2.4Gi       754Mi        12Gi        13Gi
Swap:            0B          0B          0B
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  2
Core(s) per socket:  1
Socket(s):           2
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Alibaba Cloud
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
BIOS Model name:     pc-i440fx-2.1
Stepping:            4
CPU MHz:             2500.012
BogoMIPS:            5000.02
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            33792K
NUMA node0 CPU(s):   0-3
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment (Alibaba Dragonwell Standard Edition)-17.0.8.0.9+7-GA (build 17.0.9+7)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Standard Edition)-17.0.8.0.9+7-GA (build 17.0.9+7, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.9+7) for linux-amd64 JRE (17.0.9+7), built on Oct 17 2023 00:00:00 by "dragonwell" with gcc 7.5.0
sendaoYan commented 10 months ago

https://code.alibaba-inc.com/os-quality/tone-matrix/codereview/14541063