Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[riscv64][dragonwell11]com/sun/net/httpserver/bugs/6725892/Test.java intermittent fail #821

Open
sendaoYan opened this issue May 12, 2024 · 0 comments
Assignees

Comments

@sendaoYan
Copy link
Collaborator

sendaoYan commented May 12, 2024

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

Steps to Reproduce
Steps to reproduce the behavior:

export test=test/jdk/com/sun/net/httpserver/bugs/6725892/Test.java
function runJtreg() { jtreg -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java | sed "s|#|_|"` ; rm -rf $dir ; mkdir -p $dir ; time seq 10000 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

Expected behavior
run passed everytime

Actual behavior

TEST: com/sun/net/httpserver/bugs/6725892/Test.java
TEST JDK: /tmp/tone/run/jtreg/binary-download/dragonwell-11.0.22.19+7-ga

ACTION: build -- Passed. Build successful
REASON: Named class compiled on demand
TIME:   12.452 seconds
messages:
command: build Test
reason: Named class compiled on demand
Test directory:
  compile: Test
elapsed time (seconds): 12.452

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   12.447 seconds
messages:
command: compile /tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892/Test.java
reason: .class file out of date or does not exist
Additional options from @modules: --add-modules jdk.httpserver,java.logging
Mode: othervm
elapsed time (seconds): 12.447
configuration:
javac compilation environment
  add modules: jdk.httpserver java.logging
  source path: /tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892
               /tmp/tone/run/jtreg/jdk-repo/test/lib
  class path:  /tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892
               /tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/com/sun/net/httpserver/bugs/6725892/Test.d
               /tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/test/lib

rerun:
cd /tmp/tone/run/jtreg/jt-work/test_jdk/com/sun/net/httpserver/bugs/6725892/Test && \
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 \
    /tmp/tone/run/jtreg/binary-download/dragonwell-11.0.22.19+7-ga/bin/javac \
        -J-Djdk.lang.processReaperUseDefaultStackSize=true \
        -J-Dtest.wisp.socketAddress=www.alibabacloud.com \
        -J-Xmixed \
        -J-ea \
        -J-esa \
        -J-Dtest.vm.opts='-Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -Xmixed -ea -esa' \
        -J-Dtest.tool.vm.opts='-J-Djdk.lang.processReaperUseDefaultStackSize=true -J-Dtest.wisp.socketAddress=www.alibabacloud.com -J-Xmixed -J-ea -J-esa' \
        -J-Dtest.compiler.opts= \
        -J-Dtest.java.opts= \
        -J-Dtest.jdk=/tmp/tone/run/jtreg/binary-download/dragonwell-11.0.22.19+7-ga \
        -J-Dcompile.jdk=/tmp/tone/run/jtreg/binary-download/dragonwell-11.0.22.19+7-ga \
        -J-Dtest.timeout.factor=8.0 \
        -J-Dtest.nativepath=/tmp/tone/run/jtreg/test-images/dragonwell-11.0.22.19+7-ga-test-image/hotspot/jtreg/native \
        -J-Dtest.root=/tmp/tone/run/jtreg/jdk-repo/test/jdk \
        -J-Dtest.name=com/sun/net/httpserver/bugs/6725892/Test.java \
        -J-Dtest.file=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892/Test.java \
        -J-Dtest.src=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892 \
        -J-Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892:/tmp/tone/run/jtreg/jdk-repo/test/lib \
        -J-Dtest.classes=/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/com/sun/net/httpserver/bugs/6725892/Test.d \
        -J-Dtest.class.path=/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/com/sun/net/httpserver/bugs/6725892/Test.d:/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/test/lib \
        -J-Dtest.modules='jdk.httpserver java.logging' \
        --add-modules jdk.httpserver,java.logging \
        -d /tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/com/sun/net/httpserver/bugs/6725892/Test.d \
        -sourcepath /tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892:/tmp/tone/run/jtreg/jdk-repo/test/lib \
        -classpath /tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892:/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/com/sun/net/httpserver/bugs/6725892/Test.d:/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/test/lib /tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892/Test.java
STDOUT:
STDERR:

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.AssertionError: State is not REQUEST (NEWLY_ACCEPTED)
REASON: User specified action: run main/othervm -Dsun.net.httpserver.maxReqTime=2 -Dsun.net.httpserver.clockTick=2000 Test 
TIME:   20.837 seconds
messages:
command: main -Dsun.net.httpserver.maxReqTime=2 -Dsun.net.httpserver.clockTick=2000 Test
reason: User specified action: run main/othervm -Dsun.net.httpserver.maxReqTime=2 -Dsun.net.httpserver.clockTick=2000 Test 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.httpserver,java.logging
elapsed time (seconds): 20.837
configuration:
Boot Layer
  add modules: jdk.httpserver java.logging

STDOUT:
Server on port 45831
URL: http://127.0.0.1:45831/foo
test1: OK
Request from: /127.0.0.1:34672
test2: OK
Request from: /127.0.0.1:38156
Request from: /127.0.0.1:38154
Request from: /127.0.0.1:38146
Request from: /127.0.0.1:38172
Request from: /127.0.0.1:38192
Request from: /127.0.0.1:38214
Request from: /127.0.0.1:38240
Request from: /127.0.0.1:38226
Request from: /127.0.0.1:38258
Request from: /127.0.0.1:38218
Request from: /127.0.0.1:38146
Request from: /127.0.0.1:38240
Request from: /127.0.0.1:38290
Request from: /127.0.0.1:38306
Request from: /127.0.0.1:38316
Request from: /127.0.0.1:38292
Request from: /127.0.0.1:38320
Request from: /127.0.0.1:38226
Request from: /127.0.0.1:38306
Request from: /127.0.0.1:38350
Request from: /127.0.0.1:38360
Request from: /127.0.0.1:38400
Request from: /127.0.0.1:38386
Request from: /127.0.0.1:38336
Request from: /127.0.0.1:38412
Request from: /127.0.0.1:38418
Request from: /127.0.0.1:38416
Request from: /127.0.0.1:38434
Request from: /127.0.0.1:38440
Request from: /127.0.0.1:38454
Request from: /127.0.0.1:38472
Request from: /127.0.0.1:38486
Request from: /127.0.0.1:38504
Request from: /127.0.0.1:38506
Request from: /127.0.0.1:38516
Request from: /127.0.0.1:38526
Request from: /127.0.0.1:38556
Request from: /127.0.0.1:38558
Request from: /127.0.0.1:38576
Request from: /127.0.0.1:38590
Request from: /127.0.0.1:34672
Request from: /127.0.0.1:38176
Request from: /127.0.0.1:53614
Request from: /127.0.0.1:53602
Request from: /127.0.0.1:53616
Request from: /127.0.0.1:53624
Request from: /127.0.0.1:53630
Request from: /127.0.0.1:53646
Request from: /127.0.0.1:38156
Request from: /127.0.0.1:38192
Request from: /127.0.0.1:53660
Request from: /127.0.0.1:53668
Request from: /127.0.0.1:53698
Request from: /127.0.0.1:53682
STDERR:
java.lang.AssertionError: State is not REQUEST (NEWLY_ACCEPTED)
	at jdk.httpserver/sun.net.httpserver.ServerImpl.requestCompleted(ServerImpl.java:964)
	at jdk.httpserver/sun.net.httpserver.FixedLengthInputStream.readImpl(FixedLengthInputStream.java:63)
	at jdk.httpserver/sun.net.httpserver.LeftOverInputStream.read(LeftOverInputStream.java:87)
	at Test$Handler.handle(Test.java:58)
	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
	at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
	at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:848)
	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
	at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:817)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:955)
STATUS:Failed.`main' threw exception: java.lang.AssertionError: State is not REQUEST (NEWLY_ACCEPTED)
rerun:
cd /tmp/tone/run/jtreg/jt-work/test_jdk/com/sun/net/httpserver/bugs/6725892/Test && \
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/35/com/sun/net/httpserver/bugs/6725892/Test.d:/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892:/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/test/lib:/tmp/tone/run/jtreg/jdk-repo/test/lib:/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=8.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/sun/net/httpserver/bugs/6725892/Test.java \
        -Dtest.file=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892/Test.java \
        -Dtest.src=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892 \
        -Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/test/jdk/com/sun/net/httpserver/bugs/6725892:/tmp/tone/run/jtreg/jdk-repo/test/lib \
        -Dtest.classes=/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/com/sun/net/httpserver/bugs/6725892/Test.d \
        -Dtest.class.path=/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/com/sun/net/httpserver/bugs/6725892/Test.d:/tmp/tone/run/jtreg/jt-work/test_jdk/classes/35/test/lib \
        -Dtest.modules='jdk.httpserver java.logging' \
        --add-modules jdk.httpserver,java.logging \
        -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 \
        -Dsun.net.httpserver.maxReqTime=2 \
        -Dsun.net.httpserver.clockTick=2000 \
        com.sun.javatest.regtest.agent.MainWrapper /tmp/tone/run/jtreg/jt-work/test_jdk/com/sun/net/httpserver/bugs/6725892/Test.d/main.0.jta

TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: State is not REQUEST (NEWLY_ACCEPTED)

JDK version

# 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       5.6Gi        49Gi       9.0Mi       7.9Gi        56Gi
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 May 11 2024 10:05:13 by "" with gcc 9.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant