dragonwell-project / dragonwell11

Alibaba Dragonwell11 JDK
https://www.aliyun.com/product/dragonwell
GNU General Public License v2.0
552 stars 111 forks source link

[dragonwell11][riscv64][extended]com/alibaba/rcm/TestDeadLoopKillObjectMonitor.java等8个用例报错Option EnableCoroutine || UseWispMonitor is not supported on RISCV64 #815

Open sendaoYan opened 2 months ago

sendaoYan commented 2 months ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/306034?tab=1
【环境准备】

登录环境:
30.220.116.74

BINARY_URL=oss://dragonwell/11.0.23.20.9-test-dragonwell_extended/Alibaba_Dragonwell_Extended_11.0.23.20.9_riscv64_linux.tar.gz
TEST_IMAGE=oss://dragonwell/11.0.23.20.9-test-dragonwell_extended/Alibaba_Dragonwell_Extended_11.0.23.20.9_riscv64_linux-testimage.tar.gz
JTREG_URL=oss://compiler-ci-bucket/jdk/tools/jtreg-6.1.1.zip
JDK_REPO=git@github.com:dragonwell-project/dragonwell11.git
JDK_BRANCH=dragonwell_extended-11.0.23.20.9
alias oss="/tmp/tone/tone-matrix-compiler/common/ossutil.bin_riscv64 -e oss-cn-hangzhou.aliyuncs.com -u jvm_dev  -b /tmp/tone/run/jtreg/ossutil_bin/ossutil -o download -f -r"

部署二进制:
oss $BINARY_URL -l ${BINARY_URL##*/}
mkdir binary-download;tar -xf ${BINARY_URL##*/} -C binary-download
oss $TEST_IMAGE-l ${TEST_IMAGE##*/}
mkdir test-images;tar -xf ${BINARY_URL##*/} -C test-images

cd binary-download/dragonwell-11.0.22.19+7-ga/ && export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME && cd -

部署jtreg工具:
oss $JTREG_URL -l ${JTREG_URL##*/};unzip ${JTREG_URL##*/}
cd jtreg ;export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH;cd -

部署用例repo
git clone -b $JDK_BRANCH $JDK_REPO ajdk-repo

执行以下命令:
test="com/alibaba/rcm/TestDeadLoopKillObjectMonitor.java"
args="-Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -Xmixed -ea -esa"
native=-nativepath:test-images/dragonwell-11.0.22.19+7-ga-test-image/hotspot/jtreg/native
jtreg  -nr -v:fail,error -w tmp  $args $native  $test

涉及8个用例:
com/alibaba/rcm/TestDeadLoopKillObjectMonitor.java
com/alibaba/rcm/TestExceptionPreidicate.java
com/alibaba/rcm/TestRCMInheritanceCallBack.java
com/alibaba/rcm/TestRcmCpu.java
com/alibaba/rcm/TestRcmRoot.java
com/alibaba/rcm/TestRcmUpdate.java
com/alibaba/rcm/TestStressedKillThreads.java
jdk-repo/test/jdk/com/alibaba/rcm/TestKillThreads.java-rerun-10

【对比测试】
dragonwell release 同样问题 oss://dragonwell/11.0.22.19.7/Alibaba_Dragonwell_Extended_11.0.22.19.7_riscv64_linux.tar.gz

[root@fedora-riscv jtreg]#  bin-release/dragonwell-11.0.22.19+7-ga/bin/java -version
openjdk version "11.0.22.19" 2024-01-16
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-11.0.22.19+7-ga (build 11.0.22.19+7)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-11.0.22.19+7-ga (build 11.0.22.19+7, mixed mode)
[root@fedora-riscv jtreg]#  bin-release/dragonwell-11.0.22.19+7-ga/bin/java -Xinternalversion
OpenJDK 64-Bit Server VM (11.0.22.19+7) for linux-riscv64 JRE (11.0.22.19+7), built on Mar  5 2024 04:12:27 by "" with gcc 9.2.0

【用例日志】

STDERR:
Note: /tmp/tone/run/jtreg/jdk-repo/test/jdk/com/alibaba/rcm/RcmUtils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.001 seconds
messages:
command: build TestDeadLoopKillObjectMonitor
reason: Named class compiled on demand
elapsed time (seconds): 0.001

ACTION: main -- Failed. Unexpected exit from test [exit code: 1]
REASON: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -XX:+Wisp2ThreadStop -XX:ActiveProcessorCount=1 TestDeadLoopKillObjectMonitor 
TIME:   0.031 seconds
messages:
command: main -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -XX:+Wisp2ThreadStop -XX:ActiveProcessorCount=1 TestDeadLoopKillObjectMonitor
reason: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 -XX:+Wisp2ThreadStop -XX:ActiveProcessorCount=1 TestDeadLoopKillObjectMonitor 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/com.alibaba.wisp.engine=ALL-UNNAMED --add-opens java.base/com.alibaba.wisp.engine=ALL-UNNAMED --add-exports java.base/com.alibaba.rcm.internal=ALL-UNNAMED --add-opens java.base/com.alibaba.rcm.internal=ALL-UNNAMED
elapsed time (seconds): 0.031
configuration:
Boot Layer
  add modules: java.base                          
  add exports: java.base/com.alibaba.rcm.internal ALL-UNNAMED
               java.base/com.alibaba.wisp.engine  ALL-UNNAMED
  add opens:   java.base/com.alibaba.rcm.internal ALL-UNNAMED
               java.base/com.alibaba.wisp.engine  ALL-UNNAMED

STDOUT:
Option EnableCoroutine || UseWispMonitor is not supported on RISCV64, VM will exit
STDERR:
rerun:
cd /tmp/tone/run/jtreg/jt-work/test_jdk/com/alibaba/rcm/TestDeadLoopKillObjectMonitor && \
DISPLAY=:7 \
HOME=/home/testUserForTone \
JTREG_VERSION=jtreg-6.1.1 \
LANG=C \
LC_CTYPE=C.UTF-8 \
LD_LIBRARY_PATH= \
PATH=/bin:/usr/bin:/usr/sbin \
TEST_IMAGE_DIR=/tmp/tone/run/jtreg/test-images/dragonwell-11.0.22.19+7-ga-test-image \
CLASSPATH=/tmp/tone/run/jtreg/jt-work/test_jdk/classes/45/com/alibaba/rcm/TestDeadLoopKillObjectMonitor.d:/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/alibaba/rcm:/tmp/tone/run/jtreg/jt-work/test_jdk/classes/45/lib/testlibrary:/tmp/tone/run/jtreg/jdk-repo/test/jdk/lib/testlibrary:/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar \
    /tmp/tone/run/jtreg/binary-download/dragonwell-11.0.22.19+7-ga/bin/java \
        -Dtest.vm.opts='-Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -Xmixed -ea -esa' \
        -Dtest.tool.vm.opts='-J-Djdk.lang.processReaperUseDefaultStackSize=true -J-Dtest.wisp.socketAddress=www.alibabacloud.com -J-Xmixed -J-ea -J-esa' \
        -Dtest.compiler.opts= \
        -Dtest.java.opts= \
        -Dtest.jdk=/tmp/tone/run/jtreg/binary-download/dragonwell-11.0.22.19+7-ga \
        -Dcompile.jdk=/tmp/tone/run/jtreg/binary-download/dragonwell-11.0.22.19+7-ga \
        -Dtest.timeout.factor=4.0 \
        -Dtest.nativepath=/tmp/tone/run/jtreg/test-images/dragonwell-11.0.22.19+7-ga-test-image/hotspot/jtreg/native \
        -Dtest.root=/tmp/tone/run/jtreg/jdk-repo/test/jdk \
        -Dtest.name=com/alibaba/rcm/TestDeadLoopKillObjectMonitor.java \
        -Dtest.file=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/alibaba/rcm/TestDeadLoopKillObjectMonitor.java \
        -Dtest.src=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/alibaba/rcm \
        -Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/alibaba/rcm:/tmp/tone/run/jtreg/jdk-repo/test/jdk/lib/testlibrary \
        -Dtest.classes=/tmp/tone/run/jtreg/jt-work/test_jdk/classes/45/com/alibaba/rcm/TestDeadLoopKillObjectMonitor.d \
        -Dtest.class.path=/tmp/tone/run/jtreg/jt-work/test_jdk/classes/45/com/alibaba/rcm/TestDeadLoopKillObjectMonitor.d:/tmp/tone/run/jtreg/jt-work/test_jdk/classes/45/lib/testlibrary \
        -Dtest.modules='java.base/com.alibaba.wisp.engine:+open java.base/com.alibaba.rcm.internal:+open' \
        --add-modules java.base \
        --add-exports java.base/com.alibaba.wisp.engine=ALL-UNNAMED \
        --add-opens java.base/com.alibaba.wisp.engine=ALL-UNNAMED \
        --add-exports java.base/com.alibaba.rcm.internal=ALL-UNNAMED \
        --add-opens java.base/com.alibaba.rcm.internal=ALL-UNNAMED \
        -Djdk.lang.processReaperUseDefaultStackSize=true \
        -Dtest.wisp.socketAddress=www.alibabacloud.com \
        -Xmixed \
        -ea \
        -esa \
        -Djava.library.path=/tmp/tone/run/jtreg/test-images/dragonwell-11.0.22.19+7-ga-test-image/hotspot/jtreg/native \
        -XX:+UnlockExperimentalVMOptions \
        -XX:+UseWisp2 \
        -XX:+Wisp2ThreadStop \
        -XX:ActiveProcessorCount=1 \
        com.sun.javatest.regtest.agent.MainWrapper /tmp/tone/run/jtreg/jt-work/test_jdk/com/alibaba/rcm/TestDeadLoopKillObjectMonitor.d/main.1.jta

TEST RESULT: Failed. Unexpected exit from test [exit code: 1]

【版本信息】

[root@fedora-riscv bin]# uname -a ; cat /etc/os-release ; free -h ; lscpu | head -n 25 ; ./java -version ; ./java -Xinternalversion
Linux fedora-riscv 6.1.22 #2 SMP Thu May  4 19:24:40 CST 2023 riscv64 GNU/Linux
NAME="Fedora Linux"
VERSION="38 (Workstation Edition)"
ID=fedora
VERSION_ID=38
VERSION_CODENAME=""
PLATFORM_ID="platform:f38"
PRETTY_NAME="Fedora Linux 38 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:38"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f38/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=38
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=38
SUPPORT_END=2024-05-14
VARIANT="Workstation Edition"
VARIANT_ID=workstation
               total        used        free      shared  buff/cache   available
Mem:            62Gi       990Mi        54Gi       6.1Gi       7.3Gi        55Gi
Swap:          8.0Gi          0B       8.0Gi
Architecture:        riscv64
Byte Order:          Little Endian
CPU(s):              64
On-line CPU(s) list: 0-63
NUMA node(s):        4
NUMA node0 CPU(s):   0-7,16-23
NUMA node1 CPU(s):   8-15,24-31
NUMA node2 CPU(s):   32-39,48-55
NUMA node3 CPU(s):   40-47,56-63
openjdk version "11.0.23.19" 2024-04-16
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-11.0.22.19+7-ga (build 11.0.23.19+7)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-11.0.22.19+7-ga (build 11.0.23.19+7, mixed mode)
OpenJDK 64-Bit Server VM (11.0.23.19+7) for linux-riscv64 JRE (11.0.23.19+7), built on Apr 26 2024 03:22:06 by "" with gcc 9.2.0
sendaoYan commented 2 months ago

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