dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【AJDK8】用例java/nio/channels/etc/AdaptorCloseAndInterrupt.java在x64平台使用-Xcomp选项概率失败 #144

Closed zhaoyuanfang1 closed 1 year ago

zhaoyuanfang1 commented 1 year ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/184875?tab=1 Steps to Reproduce Steps to reproduce the behavior:

wget -nv https://ajdk-backup.oss-cn-hangzhou.aliyuncs.com/8.19.23/OpenJDK8U-jdk_x64_linux_ajdk_2023-02-16-09-23.tar.gz -O binary.tar.gz
tar zxvf binary.tar.gz
cd jdk8u362-b747
export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME
cd -
wget -nv https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/jdk/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 master "https://code.alibaba-inc.com/ajdk/jdk8u" jdk-repo
test=./jdk-repo/jdk/test/java/nio/channels/etc/AdaptorCloseAndInterrupt.java
nproc=`nproc` ; dir="tmp-jtreg-"`basename $test .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 100 | xargs -i -n 1 -P $nproc bash -c "jtreg -ea -esa -Xcomp -timeoutFactor:2 -v:fail,error,time,nopass -nr -w $dir/index-{} $test &> $dir/{}.log ; grep 'Test results: passed: 1' -L $dir/{}.log"

ajdk8错误日志

84.log

关键失败信息:

STDERR:
java.lang.RuntimeException: read should not have completed
    at AdaptorCloseAndInterrupt.scReadAsyncClose(AdaptorCloseAndInterrupt.java:99)
    at AdaptorCloseAndInterrupt.main(AdaptorCloseAndInterrupt.java:71)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:82)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.lang.Thread.run(Thread.java:879)

JavaTest Message: Test threw exception: java.lang.RuntimeException: read should not have completed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: read should not have completed

dragonwell8错误日志: 158.log 183.log

temurin8错误日志: 126.log 69.log

ajdk8复现概率:1/100 dragonwell8复现概率:2/200 temurin复现概率:2/200 环境信息:

image

sendaoYan commented 1 year ago

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