dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【dragonwell17】rpm包运行security/infra/java/security/cert/CertPathValidator/certification/ActalisCA.java概率性失败:timeout #311

Closed owanqian closed 11 months ago

owanqian commented 11 months ago

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

【环境准备】

BINARY_URL=https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/koji/20231120-141154-241-#9-linux.x86_64.release.fake_branch-java-17-alibaba-dragonwell-17.0.9.0.10.9.1.al8.jdk-rpm.tar.gz
TEST_IMAGE=oss://compiler-ci-bucket/dragonwell17/20231114-002504-781-#153-linux.x86_64.release.standard-effce46066d79b05140bee59cff5a8591bf9f1fe.test-image.tar.gz
git clone https://github.com/dragonwell-project/dragonwell17.git  jdk-repo
test=security/infra/java/security/cert/CertPathValidator/certification/ActalisCA.java
rm -rf jt-work; mkdir jt-work ; nproc=`nproc`
nohup time seq 10000 | xargs -i -n 1 -I {} -P $nproc bash -c "jtreg -w tmp -nr -v:fail,error $native  $args $test &> jt-work/test_{}" &```

失败概率为4%

【对比测试】

dragonwell17 tar版本同样问题.
wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/17.0.9.0.10%2B9/Alibaba_Dragonwell_Standard_17.0.9.0.10%2B9_x64_linux.tar.gz

[root@iZbp1hmgsldsm4l82drivdZ bin]# ./java -version; ./java -Xinternalversion openjdk version "17.0.9" 2023-10-17 OpenJDK Runtime Environment (Alibaba Dragonwell Standard Edition)-17.0.9.0.10+9-GA (build 17.0.9+9) OpenJDK 64-Bit Server VM (Alibaba Dragonwell Standard Edition)-17.0.9.0.10+9-GA (build 17.0.9+9, mixed mode, sharing) OpenJDK 64-Bit Server VM (17.0.9+9) for linux-amd64 JRE (17.0.9+9), built on Oct 17 2023 00:00:00 by "dragonwell" with gcc 7.5.0

temurin17 同样问题
wget https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.9_9.tar.gz

[root@iZbp1eqvwk9o1gtluk2ijpZ bin]# ./java -version; ./java -Xinternalversion openjdk version "17.0.9" 2023-10-17 OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing) OpenJDK 64-Bit Server VM (17.0.9+9) for linux-amd64 JRE (17.0.9+9), built on Oct 17 2023 00:00:00 by "admin" with gcc 10.3.0


【用例日志】

Full thread dump OpenJDK 64-Bit Server VM (17.0.9.9+9 mixed mode):

Threads class SMR info: _java_thread_list=0x00007efc6c001880, length=13, elements={ 0x00007efce4015100, 0x00007efce4230720, 0x00007efce4231d40, 0x00007efce4257560, 0x00007efce4258920, 0x00007efce4259d40, 0x00007efce425b730, 0x00007efce425cc70, 0x00007efce425e0f0, 0x00007efce42f02f0, 0x00007efce42fbc90, 0x00007efce4367d10, 0x00007efc6c000e90 }

"main" #1 prio=5 os_prio=0 cpu=83.21ms elapsed=720.29s tid=0x00007efce4015100 nid=0x27c801 in Object.wait() [0x00007efce9529000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(java.base@17.0.9.9/Native Method)

"Reference Handler" #2 daemon prio=10 os_prio=0 cpu=0.11ms elapsed=720.26s tid=0x00007efce4230720 nid=0x27c809 waiting on condition [0x00007efc99725000] java.lang.Thread.State: RUNNABLE at java.lang.ref.Reference.waitForReferencePendingList(java.base@17.0.9.9/Native Method) at java.lang.ref.Reference.processPendingReferences(java.base@17.0.9.9/Reference.java:253) at java.lang.ref.Reference$ReferenceHandler.run(java.base@17.0.9.9/Reference.java:215)

"Finalizer" #3 daemon prio=8 os_prio=0 cpu=0.35ms elapsed=720.26s tid=0x00007efce4231d40 nid=0x27c80a in Object.wait() [0x00007efc99624000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(java.base@17.0.9.9/Native Method)

"Signal Dispatcher" #4 daemon prio=9 os_prio=0 cpu=0.59ms elapsed=720.25s tid=0x00007efce4257560 nid=0x27c80c waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE

"Service Thread" #5 daemon prio=9 os_prio=0 cpu=0.10ms elapsed=720.25s tid=0x00007efce4258920 nid=0x27c80d runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE

"Monitor Deflation Thread" #6 daemon prio=9 os_prio=0 cpu=31.74ms elapsed=720.25s tid=0x00007efce4259d40 nid=0x27c80e runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #7 daemon prio=9 os_prio=0 cpu=212.89ms elapsed=720.25s tid=0x00007efce425b730 nid=0x27c80f waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE No compile task

"C1 CompilerThread0" #15 daemon prio=9 os_prio=0 cpu=92.21ms elapsed=720.25s tid=0x00007efce425cc70 nid=0x27c810 waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE No compile task

"Sweeper thread" #19 daemon prio=9 os_prio=0 cpu=0.03ms elapsed=720.25s tid=0x00007efce425e0f0 nid=0x27c811 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE

"Notification Thread" #20 daemon prio=9 os_prio=0 cpu=0.07ms elapsed=720.24s tid=0x00007efce42f02f0 nid=0x27c816 runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE

"Common-Cleaner" #21 daemon prio=8 os_prio=0 cpu=0.65ms elapsed=720.23s tid=0x00007efce42fbc90 nid=0x27c819 in Object.wait() [0x00007efc98ac4000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(java.base@17.0.9.9/Native Method)

"MainThread" #23 prio=5 os_prio=0 cpu=295.16ms elapsed=720.20s tid=0x00007efce4367d10 nid=0x27c81c runnable [0x00007efc98953000] java.lang.Thread.State: RUNNABLE at sun.nio.ch.SocketDispatcher.read0(java.base@17.0.9.9/Native Method) at sun.nio.ch.SocketDispatcher.read(java.base@17.0.9.9/SocketDispatcher.java:47) at sun.nio.ch.NioSocketImpl.tryRead(java.base@17.0.9.9/NioSocketImpl.java:266) at sun.nio.ch.NioSocketImpl.implRead(java.base@17.0.9.9/NioSocketImpl.java:317) at sun.nio.ch.NioSocketImpl.read(java.base@17.0.9.9/NioSocketImpl.java:355) at sun.nio.ch.NioSocketImpl$1.read(java.base@17.0.9.9/NioSocketImpl.java:808) at java.net.Socket$SocketInputStream.read(java.base@17.0.9.9/Socket.java:966) at java.io.BufferedInputStream.fill(java.base@17.0.9.9/BufferedInputStream.java:244) at java.io.BufferedInputStream.read1(java.base@17.0.9.9/BufferedInputStream.java:284) at java.io.BufferedInputStream.read(java.base@17.0.9.9/BufferedInputStream.java:343)

"Attach Listener" #25 daemon prio=9 os_prio=0 cpu=0.15ms elapsed=0.10s tid=0x00007efc6c000e90 nid=0x2b2efc waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE

"VM Thread" os_prio=0 cpu=9.17ms elapsed=720.27s tid=0x00007efce4221280 nid=0x27c808 runnable

"GC Thread#0" os_prio=0 cpu=0.05ms elapsed=720.28s tid=0x00007efce4045730 nid=0x27c802 runnable

"G1 Main Marker" os_prio=0 cpu=0.03ms elapsed=720.28s tid=0x00007efce40563a0 nid=0x27c803 runnable

"G1 Conc#0" os_prio=0 cpu=0.04ms elapsed=720.28s tid=0x00007efce4057310 nid=0x27c804 runnable

"G1 Refine#0" os_prio=0 cpu=0.05ms elapsed=720.28s tid=0x00007efce419c3e0 nid=0x27c805 runnable

"G1 Service" os_prio=0 cpu=57.53ms elapsed=720.28s tid=0x00007efce419d2e0 nid=0x27c806 runnable

"VM Periodic Task Thread" os_prio=0 cpu=190.13ms elapsed=720.24s tid=0x00007efce42f1cf0 nid=0x27c817 waiting on condition

JNI global refs: 25, weak refs: 0

--- Timeout information end. elapsed time (seconds): 720.301 configuration:

TEST RESULT: Error. Program `/var/tmp/tone/run/jtreg/binary-download/usr/lib/jvm/java-17-alibaba-dragonwell-17.0.9.0.10.9-1.al8.x86_64/bin/java' timed out (timeout set to 720000ms, elapsed time including timeout handling was 720300ms).


【版本信息】

[root@iZbp1duxhgh4vnps9soe0aZ jtreg]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25;java -version; java -Xinternalversion Linux iZbp1duxhgh4vnps9soe0aZ 5.10.134-15.al8.x86_64 #1 SMP Thu Jul 20 00:44:04 CST 2023 x86_64 x86_64 x86_64 GNU/Linux NAME="Alibaba Cloud Linux" VERSION="3 (Soaring Falcon)" ID="alinux" ID_LIKE="rhel fedora centos anolis" VERSION_ID="3" PLATFORM_ID="platform:al8" PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)" ANSI_COLOR="0;31" HOME_URL="https://www.aliyun.com/"

          total        used        free      shared  buff/cache   available

Mem: 61Gi 551Mi 56Gi 3.0Mi 4.3Gi 60Gi Swap: 0B 0B 0B Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 2 Core(s) per socket: 8 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel BIOS Vendor ID: Alibaba Cloud CPU family: 6 Model: 143 Model name: Intel(R) Xeon(R) Platinum 8475B BIOS Model name: pc-i440fx-2.1 Stepping: 8 CPU MHz: 3199.818 CPU max MHz: 3800.0000 CPU min MHz: 800.0000 BogoMIPS: 5400.00 Hypervisor vendor: KVM Virtualization type: full L1d cache: 48K L1i cache: 32K L2 cache: 2048K openjdk version "17.0.9.9" 2023-11-17 OpenJDK Runtime Environment (Alibaba Dragonwell) (build 17.0.9.9+9) OpenJDK 64-Bit Server VM (Alibaba Dragonwell) (build 17.0.9.9+9, mixed mode) OpenJDK 64-Bit Server VM (17.0.9.9+9) for linux-amd64 JRE (17.0.9.9+9), built on Nov 17 2023 03:05:05 by "mockbuild" with gcc 10.2.1 20200825 (Alibaba 10.2.1-3.5 2.32)

sendaoYan commented 11 months ago

https://code.alibaba-inc.com/os-quality/tone-matrix/codereview/14811250?file=5951528f9b5712d5c693b23dc1761752ee786f61

sendaoYan commented 11 months ago

https://github.com/dragonwell-project/dragonwell17/issues/182