dragonwell-project / dragonwell8

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

-Xcomp选项运行com/alibaba/wisp/ParkTest.java随机报错 #497

Open sendaoYan opened 1 year ago

sendaoYan commented 1 year ago

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

java.util.concurrent.ExecutionException: java.lang.Error: error test unpark by other thread
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:206)
    at ParkTest.main(ParkTest.java:85)
    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)
    at com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:299)
    at com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:274)
    at com.alibaba.wisp.engine.WispTask.access$100(WispTask.java:53)
    at com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:241)
    at java.dyn.CoroutineBase.startInternal(CoroutineBase.java:62)
Caused by: java.lang.Error: error test unpark by other thread
    at ParkTest.lambda$main$0(ParkTest.java:56)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    ... 5 more

replay command:

test=jdk/test/com/alibaba/wisp/ParkTest.java
nproc=`nproc` ; dir="tmp-jtreg-"`basename $test .java` ; rm -rf $dir ; mkdir -p $dir ; time seq 50 | xargs -i -n 1 -P $nproc bash -c "jtreg -Xcomp -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-{} $test &> $dir/{}.log ; grep 'Test results: passed: 1' -L $dir/{}.log"

9.log 98.log 97.log 96.log 95.log 94.log 93.log 92.log 91.log 90.log 8.log

sendaoYan commented 1 year ago

com/alibaba/wisp2/MassiveIOTest.java

7.log 5.log 50.log 48.log 41.log 3.log 39.log 37.log 34.log 33.log 32.log 31.log 28.log 24.log 23.log 20.log 19.log 17.log 11.log 10.log

sendaoYan commented 1 year ago

-Xmixed也会报错:

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/149074

sendaoYan commented 1 year ago

com/alibaba/wisp/bug/LazySetUnparkTest.java

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/153913?tab=2

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected value to be true
REASON: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 LazySetUnparkTest 
TIME:   3.926 seconds
messages:
command: main -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 LazySetUnparkTest
reason: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseWisp2 LazySetUnparkTest 
Mode: othervm [/othervm specified]
elapsed time (seconds): 3.926
configuration:
STDOUT:
thread:Thread-1, schedule 0: 0
thread:Thread-1, schedule 0: 1
thread:Thread-3, schedule 1: 0
thread:Thread-4, schedule 0: 2
thread:Thread-3, schedule 0: 3
thread:Thread-3, schedule 0: 4
submit: 2
submit: 3
thread:Thread-3, schedule 0: 5
thread:Thread-5, schedule 2: 0
submit: 4
submit: 5
submit: 5
thread:Thread-3, schedule 0: 6
thread:Thread-3, schedule 0: 7
thread:Thread-6, schedule 2: 1
thread:Thread-3, schedule 0: 8
thread:Thread-3, schedule 0: 9
thread:Thread-6, schedule 2: 2
thread:Thread-3, schedule 0: 10
thread:Thread-3, schedule 0: 11
submit: 1
thread:Thread-6, schedule 2: 3
submit: 2
thread:Thread-3, schedule 0: 12
submit: 3
thread:Thread-3, schedule 0: 13
submit: 4
thread:Thread-3, schedule 0: 14
submit: 6
submit: 6
submit: 7
submit: 8
submit: 9
thread:Thread-3, schedule 0: 15
submit: 10
thread:Thread-1, schedule 2: 4
thread:Thread-2, schedule 1: 1
submit: 12
submit: 12
submit: 13
submit: 14
thread:Thread-3, schedule 0: 16
submit: 15
submit: 16
thread:Thread-1, schedule 2: 5
thread:Thread-2, schedule 1: 2
submit: 17
submit: 18
thread:Thread-3, schedule 0: 17
submit: 19
submit: 20
submit: 21
thread:Thread-2, schedule 1: 3
submit: 22
thread:Thread-7, schedule 2: 6
submit: 23
submit: 24
thread:Thread-3, schedule 0: 18
submit: 25
submit: 26
thread:Thread-2, schedule 1: 4
submit: 27
submit: 28
submit: 29
submit: 30
thread:Thread-2, schedule 1: 5
submit: 31
thread:Thread-7, schedule 2: 7
submit: 32
thread:Thread-2, schedule 1: 6
thread:Thread-13, schedule 0: 19
submit: 35
submit: 35
submit: 35
submit: 36
submit: 37
submit: 38
submit: 39
thread:Thread-13, schedule 3: 0
submit: 40
thread:Thread-2, schedule 1: 7
submit: 41
thread:Thread-8, schedule 2: 8
submit: 42
thread:Thread-10, schedule 4: 0
thread:Thread-3, schedule 10: 0
thread:Thread-12, schedule 7: 0
thread:Thread-16, schedule 9: 0
thread:Thread-7, schedule 8: 0
thread:Thread-4, schedule 11: 0
thread:Thread-6, schedule 5: 0
thread:Thread-11, schedule 6: 0
submit: 43
thread:Thread-1, schedule 12: 0
thread:Thread-14, schedule 13: 0
thread:Thread-9, schedule 14: 0
thread:Thread-5, schedule 15: 0
submit: 44
submit: 45
thread:Thread-2, schedule 1: 8
submit: 46
submit: 49
thread:Thread-9, schedule 11: 1
submit: 48
thread:Thread-13, schedule 0: 20
submit: 47
thread:Thread-2, schedule 1: 9
submit: 50
thread:Thread-8, schedule 3: 1
submit: 51
thread:Thread-10, schedule 2: 9
submit: 52
thread:Thread-7, schedule 8: 1
thread:Thread-14, schedule 15: 1
submit: 53
thread:Thread-3, schedule 9: 1
submit: 54
thread:Thread-9, schedule 5: 1
thread:Thread-12, schedule 10: 1
thread:Thread-4, schedule 13: 1
thread:Thread-2, schedule 1: 10
submit: 55
thread:Thread-16, schedule 4: 1
thread:Thread-13, schedule 6: 1
thread:Thread-11, schedule 7: 1
thread:Thread-6, schedule 12: 1
thread:Thread-5, schedule 14: 1
submit: 56
submit: 57
submit: 58
submit: 59
thread:Thread-10, schedule 0: 21
thread:Thread-2, schedule 1: 11
submit: 60
thread:Thread-3, schedule 8: 2
submit: 61
thread:Thread-7, schedule 15: 2
submit: 62
thread:Thread-14, schedule 2: 10
submit: 63
thread:Thread-16, schedule 3: 2
submit: 64
thread:Thread-2, schedule 1: 12
thread:Thread-13, schedule 9: 2
thread:Thread-5, schedule 11: 2
submit: 65
thread:Thread-3, schedule 13: 2
submit: 66
thread:Thread-12, schedule 5: 2
thread:Thread-8, schedule 10: 2
submit: 67
thread:Thread-11, schedule 12: 2
thread:Thread-6, schedule 14: 2
submit: 68
thread:Thread-4, schedule 4: 2
thread:Thread-1, schedule 7: 2
thread:Thread-10, schedule 6: 2
thread:Thread-2, schedule 1: 13
submit: 69
thread:Thread-16, schedule 8: 3
submit: 70
submit: 71
STDERR:
java.lang.RuntimeException: Expected value to be true
    at jdk.testlibrary.Asserts.error(Asserts.java:438)
    at jdk.testlibrary.Asserts.assertTrue(Asserts.java:407)
    at jdk.testlibrary.Asserts.assertTrue(Asserts.java:395)
    at LazySetUnparkTest.main(LazySetUnparkTest.java:110)
    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)
    at com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:299)
    at com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:274)
    at com.alibaba.wisp.engine.WispTask.access$100(WispTask.java:53)
    at com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:241)
    at java.dyn.CoroutineBase.startInternal(CoroutineBase.java:62)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected value to be true
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected value to be true
rerun:
cd /tmp/tone/run/jtreg/jt-work/jdk_test/com/alibaba/wisp/bug/LazySetUnparkTest && \
DISPLAY=:7 \
HOME=/root \
LANG=en_US.UTF-8 \
PATH=/bin:/usr/bin:/usr/sbin \
CLASSPATH=/tmp/tone/run/jtreg/jt-work/jdk_test/classes/81/com/alibaba/wisp/bug:/tmp/tone/run/jtreg/jdk-repo/jdk/test/com/alibaba/wisp/bug:/tmp/tone/run/jtreg/jt-work/jdk_test/classes/81/lib/testlibrary:/tmp/tone/run/jtreg/jdk-repo/jdk/test/lib/testlibrary:/opt/java/openjdk/lib/tools.jar:/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar \
    /opt/java/openjdk/bin/java \
        -Dtest.vm.opts='-Xcomp -ea -esa' \
        -Dtest.tool.vm.opts='-J-Xcomp -J-ea -J-esa' \
        -Dtest.compiler.opts= \
        -Dtest.java.opts= \
        -Dtest.jdk=/opt/java/openjdk \
        -Dcompile.jdk=/opt/java/openjdk \
        -Dtest.timeout.factor=4.0 \
        -Dtest.root=/tmp/tone/run/jtreg/jdk-repo/jdk/test \
        -Dtest.name=com/alibaba/wisp/bug/LazySetUnparkTest.java \
        -Dtest.file=/tmp/tone/run/jtreg/jdk-repo/jdk/test/com/alibaba/wisp/bug/LazySetUnparkTest.java \
        -Dtest.src=/tmp/tone/run/jtreg/jdk-repo/jdk/test/com/alibaba/wisp/bug \
        -Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/jdk/test/com/alibaba/wisp/bug:/tmp/tone/run/jtreg/jdk-repo/jdk/test/lib/testlibrary \
        -Dtest.classes=/tmp/tone/run/jtreg/jt-work/jdk_test/classes/81/com/alibaba/wisp/bug \
        -Dtest.class.path=/tmp/tone/run/jtreg/jt-work/jdk_test/classes/81/com/alibaba/wisp/bug:/tmp/tone/run/jtreg/jt-work/jdk_test/classes/81/lib/testlibrary \
        -Xcomp \
        -ea \
        -esa \
        -XX:+UnlockExperimentalVMOptions \
        -XX:+UseWisp2 \
        com.sun.javatest.regtest.agent.MainWrapper /tmp/tone/run/jtreg/jt-work/jdk_test/com/alibaba/wisp/bug/LazySetUnparkTest.d/main.0.jta

TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected value to be true
sendaoYan commented 1 year ago

com/alibaba/wisp/thread/ThrowErrorTest.java

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

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected value to be true
REASON: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ThrowErrorTest 
TIME:   4.703 seconds
messages:
command: main -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ThrowErrorTest
reason: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -Dcom.alibaba.wisp.transparentWispSwitch=true ThrowErrorTest 
Mode: othervm [/othervm specified]
elapsed time (seconds): 4.703
configuration:
STDOUT:
STDERR:
Exception in thread "execute task" java.lang.Error
    at ThrowErrorTest.lambda$main$0(ThrowErrorTest.java:37)
    at com.alibaba.wisp.engine.WispTask.runOutsideWisp(WispTask.java:299)
    at com.alibaba.wisp.engine.WispTask.runCommand(WispTask.java:274)
    at com.alibaba.wisp.engine.WispTask.access$100(WispTask.java:53)
    at com.alibaba.wisp.engine.WispTask$CacheableCoroutine.run(WispTask.java:241)
    at java.dyn.CoroutineBase.startInternal(CoroutineBase.java:62)
java.lang.RuntimeException: Expected value to be true
    at jdk.testlibrary.Asserts.error(Asserts.java:438)
    at jdk.testlibrary.Asserts.assertTrue(Asserts.java:407)
    at jdk.testlibrary.Asserts.assertTrue(Asserts.java:395)
    at ThrowErrorTest.main(ThrowErrorTest.java:47)
    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: Expected value to be true
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected value to be true
rerun:
cd /tmp/tone/run/jtreg/jt-work/jdk_test/com/alibaba/wisp/thread/ThrowErrorTest && \
DISPLAY=:7 \
HOME=/home/testUserForTone \
LANG=C \
LC_CTYPE=C.UTF-8 \
PATH=/bin:/usr/bin:/usr/sbin \
CLASSPATH=/tmp/tone/run/jtreg/jt-work/jdk_test/classes/125/com/alibaba/wisp/thread:/tmp/tone/run/jtreg/jdk-repo/jdk/test/com/alibaba/wisp/thread:/tmp/tone/run/jtreg/jt-work/jdk_test/classes/125/lib/testlibrary:/tmp/tone/run/jtreg/jdk-repo/jdk/test/lib/testlibrary:/tmp/tone/run/jtreg/binary-download/jdk8u362-b747/lib/tools.jar:/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar \
    /tmp/tone/run/jtreg/binary-download/jdk8u362-b747/bin/java \
        -Dtest.vm.opts='-Djdk.lang.processReaperUseDefaultStackSize=true -Xcomp -ea -esa' \
        -Dtest.tool.vm.opts='-J-Djdk.lang.processReaperUseDefaultStackSize=true -J-Xcomp -J-ea -J-esa' \
        -Dtest.compiler.opts= \
        -Dtest.java.opts= \
        -Dtest.jdk=/tmp/tone/run/jtreg/binary-download/jdk8u362-b747 \
        -Dcompile.jdk=/tmp/tone/run/jtreg/binary-download/jdk8u362-b747 \
        -Dtest.timeout.factor=4.0 \
        -Dtest.root=/tmp/tone/run/jtreg/jdk-repo/jdk/test \
        -Dtest.name=com/alibaba/wisp/thread/ThrowErrorTest.java \
        -Dtest.file=/tmp/tone/run/jtreg/jdk-repo/jdk/test/com/alibaba/wisp/thread/ThrowErrorTest.java \
        -Dtest.src=/tmp/tone/run/jtreg/jdk-repo/jdk/test/com/alibaba/wisp/thread \
        -Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/jdk/test/com/alibaba/wisp/thread:/tmp/tone/run/jtreg/jdk-repo/jdk/test/lib/testlibrary \
        -Dtest.classes=/tmp/tone/run/jtreg/jt-work/jdk_test/classes/125/com/alibaba/wisp/thread \
        -Dtest.class.path=/tmp/tone/run/jtreg/jt-work/jdk_test/classes/125/com/alibaba/wisp/thread:/tmp/tone/run/jtreg/jt-work/jdk_test/classes/125/lib/testlibrary \
        -Djdk.lang.processReaperUseDefaultStackSize=true \
        -Xcomp \
        -ea \
        -esa \
        -XX:+UnlockExperimentalVMOptions \
        -XX:+EnableCoroutine \
        -Dcom.alibaba.wisp.transparentWispSwitch=true \
        com.sun.javatest.regtest.agent.MainWrapper /tmp/tone/run/jtreg/jt-work/jdk_test/com/alibaba/wisp/thread/ThrowErrorTest.d/main.0.jta
sendaoYan commented 1 year ago

com/alibaba/wisp2/MassiveIOTest.java -Xcomp: https://github.com/dragonwell-releng/dragonwell-adoptium/issues/105