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

[nightly][x64]java/lang/ThreadGroup/NullThreadName.java概率2%失败: Thread group is not destroyed #922

Open
sendaoYan opened this issue Jan 13, 2025 · 2 comments
Assignees

Comments

@sendaoYan
Copy link
Collaborator

任务链接:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/445778

【环境准备】

BINARY_URL=oss://compiler-ci-bucket/ajdk11/CI/tar/20250110-103053-812-#920-linux.x86_64.release.master-dccc25b71570becaa9428701909a9b0e258e3b1c.jdk.tar.gz
TEST_IMAGE=oss://compiler-ci-bucket/ajdk11/CI/tar/20250110-103053-812-#920-linux.x86_64.release.master-dccc25b71570becaa9428701909a9b0e258e3b1c.test-image.tar.gz
JDK_REPO=https://codeup.aliyun.com/5f4e0dfe6207a1a8b17fa7cf/compiler-test/jdk11.git
JDK_BRANCH=master

jtreg=oss://compiler-ci-bucket/jdk/tools/jtreg-7.4.1.zip

#下载解压jtreg,cd jtreg并配置
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
#下载解压jdk,cd <目录>并配置;如果有test-image,下载test-image包
export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME
#下载jdk-repo
git clone https://${JDK_REPO} --depth 1 -b $JDK_BRANCH jdk-repo

#执行测试
 nproc=`nproc` ; dir="jt-work" ; rm -rf $dir ; mkdir -p $dir ; time seq 100 | xargs -i -n 1 -P $nproc bash -c "jtreg -w tmp -nr -v:fail,error  java/lang/ThreadGroup/NullThreadName.java   &> $dir/test_{} ; grep 'Test results: passed: 1' -L $dir/test_{}"

【测试分析】


x86  fail

release和deagonwell11 均fail

temurin11 pass。

【版本信息】

#jdk信息

openjdk version "11.0.23.24-AJDK" 2025-01-10
OpenJDK Runtime Environment (build 11.0.23.24-AJDK+0-Alibaba)
OpenJDK 64-Bit Server VM (build 11.0.23.24-AJDK+0-Alibaba, mixed mode)
OpenJDK 64-Bit Server VM (11.0.23.24-AJDK+0-Alibaba) for linux-amd64 JRE (11.0.23.24-AJDK+0-Alibaba), built on Jan 10 2025 02:32:15 by "" with gcc 7.3.1 20180303 (Red Hat 7.3.1-5)


#测试机信息jdk环境信息

[root@CompilerTest-x64-5 ~]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25; dmidecode -t chassis
Linux CompilerTest-x64-5 5.10.134-16.1.al8.x86_64 #1 SMP Thu Dec 7 14:11:24 UTC 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"
UPDATE_ID="9"
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:          123Gi       711Mi       116Gi       2.0Mi       5.9Gi       121Gi
Swap:            0B          0B          0B
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  2
Core(s) per socket:  16
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Alibaba Cloud
CPU family:          6
Model:               106
Model name:          Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
BIOS Model name:     pc-i440fx-2.1
Stepping:            6
CPU MHz:             3502.594
BogoMIPS:            5399.99
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           48K
L1i cache:           32K
L2 cache:            1280K
L3 cache:            49152K
NUMA node0 CPU(s):   0-31
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.

Handle 0x0300, DMI type 3, 21 bytes
Chassis Information
        Manufacturer: Alibaba Cloud
        Type: Other
        Lock: Not Present
        Version: pc-i440fx-2.1
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: Unknown
        OEM Information: 0x00000000
        Height: Unspecified
        Number Of Power Cords: Unspecified
        Contained Elements: 0




【用例日志】

STDOUT:
OK, caught expected java.lang.NullPointerException: name cannot be null
Good Thread started...
Good Thread finishing
GoodThread still alive, sleeping...
STDERR:
java.lang.AssertionError: Failed: Thread group is not destroyed.
        at NullThreadName.main(NullThreadName.java:72)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:991)

JavaTest Message: Test threw exception: java.lang.AssertionError: Failed: Thread group is not destroyed.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.AssertionError: Failed: Thread group is not destroyed.

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

3 participants