dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【ajdk8】用例java/net/Authenticator/B4769350.java在x64平台使用-Xcomp选项概率失败 #182

Closed zhaoyuanfang1 closed 1 year ago

zhaoyuanfang1 commented 1 year ago

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

wget -nv https://ajdk-backup.oss-cn-hangzhou.aliyuncs.com/8.20.24/OpenJDK8U-jdk_x64_linux_ajdk_2023-06-08-03-43.tar.gz -O binary.tar.gz
tar zxvf binary.tar.gz
cd jdk8u372-b783/
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/net/Authenticator/B4769350.java
nproc=`nproc` ; dir="tmp-jtreg-"`basename $test .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 500 | xargs -i -n 1 -P $nproc bash -c "jtreg -ea -esa -Xmixed  -timeoutFactor:2 -v:fail,error,time,nopass -nr -w $dir/index-{} $test &> $dir/{}.log ; grep 'Test results: passed: 1' -L $dir/{}.log"

ajdk8错误日志: 222.log 关键错误信息:

STDERR:
java.lang.RuntimeException: Authenticator was called 3 times. Should be 2
    at B4769350.except(B4769350.java:471)
    at B4769350.doServerTests(B4769350.java:394)
    at B4769350.runTest(B4769350.java:463)
    at B4769350.main(B4769350.java:446)
    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: Authenticator was called 3 times. Should be 2
JavaTest Message: shutting down test

dragonwell8错误日志: 359.log

temurin错误日志: 364.log

ajdk8复现概率:4/500 dragonwell复现概率: 1/500 temurin复现概率:1/500

ajdk8、dragonwell、temurin使用-Xmixed选项均可正常pass 环境信息: image

sendaoYan commented 1 year ago

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

sendaoYan commented 1 year ago

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