dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.21k stars 497 forks source link

anolis86环境上com/alibaba/wisp2/HandOffWakeUpTest.java随机报NPE异常 #482

Open sendaoYan opened 1 year ago

sendaoYan commented 1 year ago

复现概率:3/500

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/145628?tab=1

测试命令:

test=jdk/test/com/alibaba/wisp2/HandOffWakeUpTest.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 -timeoutFactor:8 -v:fail,error,time,nopass -nr -w $dir/index-{} $test &> $dir/{}.log ; grep 'Test results: passed: 1' -L $dir/{}.log"
java.lang.NullPointerException
    at HandOffWakeUpTest.main(HandOffWakeUpTest.java:89)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    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:855)

256.log 255.log 239.log

环境信息:

image

同样的测试,在ubuntu20上未复现:

image