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]com/sun/jdi/EATests.java#id0 fails can not find symbol: method newThread #132

Closed
sendaoYan opened this issue Nov 15, 2024 · 2 comments
Assignees
Labels
21.0.5.0.5.9 bug Something isn't working release

Comments

@sendaoYan
Copy link
Collaborator

任务链接:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/397794?tab=1

【环境准备】

BINARY_URL=oss://compiler-ci-bucket/dragonwell21/20241105-001812-312-#248-linux.x86_64.release.master-df56e2e4336b78540fe71aa40e85c4898d0157cd.jdk.tar.gz
TEST_IMAGE=oss://compiler-ci-bucket/dragonwell21/20241105-001812-312-#248-linux.x86_64.release.master-df56e2e4336b78540fe71aa40e85c4898d0157cd.test-image.tar.gz
JDK_REPO=git@github.com:dragonwell-project/dragonwell21.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 <目录>并配置
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

#执行测试
jtreg -w tmp -nr -v:fail,error  com/sun/jdi/EATests.java


【测试分析】

com/sun/jdi/EATests.java#id0

x86-64、arm上都存在。

release版本/上游都存在。

【版本信息】

#jdk信息

[root@CompilerTest-x64-5 new]# bin/java -version; bin/java -Xinternalversion
openjdk version "21.0.4.0.4" 2024-10-26
OpenJDK Runtime Environment (build 21.0.4.0.4+21)
OpenJDK 64-Bit Server VM (build 21.0.4.0.4+21, mixed mode, sharing)
OpenJDK 64-Bit Server VM (21.0.4.0.4+21) for linux-amd64 JRE (21.0.4.0.4+21), built on 2024-10-25T16:19:58Z by "admin" with gcc 11.2.0


 

#测试机信息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




【用例日志】

ACTION: compile -- Failed. Compilation failed: Compilation failed
REASON: User specified action: run compile -g EATests.java
TIME:   0.847 seconds
messages:
command: compile -g /root/21/jdk-repo/test/jdk/com/sun/jdi/EATests.java
reason: User specified action: run compile -g EATests.java
started: Fri Nov 15 11:12:35 CST 2024
Additional options from @modules: --add-modules jdk.jdi
Mode: othervm
finished: Fri Nov 15 11:12:36 CST 2024
elapsed time (seconds): 0.847
configuration:
javac compilation environment
  add modules: jdk.jdi
  source path: /root/21/jdk-repo/test/jdk/com/sun/jdi
               /root/21/jdk-repo/test/lib
               /root/21/jdk-repo/test/hotspot/jtreg
  class path:  /root/21/jdk-repo/test/jdk/com/sun/jdi
               /root/21/tmp/classes/com/sun/jdi/EATests_id0.d
               /root/21/tmp/classes/test/lib
               /root/21/tmp/classes/test/hotspot/jtreg

rerun:
cd /root/21/tmp/scratch && \
DISPLAY=localhost:10.0 \
HOME=/root \
LANG=en_US.UTF-8 \
PATH=/bin:/usr/bin:/usr/sbin \
XDG_DATA_DIRS=/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share \
    /root/21/new/bin/javac \
        -J-Dtest.vm.opts= \
        -J-Dtest.tool.vm.opts= \
        -J-Dtest.compiler.opts= \
        -J-Dtest.java.opts= \
        -J-Dtest.jdk=/root/21/new \
        -J-Dcompile.jdk=/root/21/new \
        -J-Dtest.timeout.factor=4.0 \
        -J-Dtest.root=/root/21/jdk-repo/test/jdk \
        -J-Dtest.name=com/sun/jdi/EATests.java#id0 \
        -J-Dtest.file=/root/21/jdk-repo/test/jdk/com/sun/jdi/EATests.java \
        -J-Dtest.src=/root/21/jdk-repo/test/jdk/com/sun/jdi \
        -J-Dtest.src.path=/root/21/jdk-repo/test/jdk/com/sun/jdi:/root/21/jdk-repo/test/lib:/root/21/jdk-repo/test/hotspot/jtreg \
        -J-Dtest.classes=/root/21/tmp/classes/com/sun/jdi/EATests_id0.d \
        -J-Dtest.class.path=/root/21/tmp/classes/com/sun/jdi/EATests_id0.d:/root/21/tmp/classes/test/lib:/root/21/tmp/classes/test/hotspot/jtreg \
        -J-Dtest.modules=jdk.jdi \
        @/root/21/tmp/com/sun/jdi/EATests_id0.d/compile.1.jta
STDOUT:
STDERR:
/root/21/jdk-repo/test/jdk/com/sun/jdi/EATests.java:2002: error: cannot find symbol
        TestScaffold.newThread(() -> {
                    ^
  symbol:   method newThread(()->{ whil[...]; } },String)
  location: class TestScaffold
/root/21/jdk-repo/test/jdk/com/sun/jdi/EATests.java:2290: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
        Integer l1 = new Integer(255);
                     ^
/root/21/jdk-repo/test/jdk/com/sun/jdi/EATests.java:2291: warning: [synchronization] attempt to synchronize on an instance of a value-based class
        synchronized (l1) {
        ^
/root/21/jdk-repo/test/hotspot/jtreg/compiler/testlibrary/CompilerUtils.java:52: warning: [removal] Long(long) in Long has been deprecated and marked for removal
            Asserts.assertEQ(new Long(maxLevel), flagValue,
                             ^
Note: /root/21/jdk-repo/test/lib/jdk/test/lib/Asserts.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
3 warnings

TEST RESULT: Failed. Compilation failed: Compilation failed


@sendaoYan sendaoYan self-assigned this Nov 15, 2024
@sendaoYan sendaoYan added bug Something isn't working release labels Nov 15, 2024
@sendaoYan sendaoYan changed the title [dragonwell21][nightly]com/sun/jdi/EATests.java#id0 fails can not find symbol: method newThread [nightly]com/sun/jdi/EATests.java#id0 fails can not find symbol: method newThread Nov 15, 2024
@sendaoYan sendaoYan assigned linade and unassigned sendaoYan Nov 15, 2024
linade added a commit to linade/dragonwell21 that referenced this issue Nov 15, 2024
Summary: Change unsupported test api

Testing: com/sun/jdi/EATests.java

Reviewers: mmyxym, jia-wei-tang

Issue: dragonwell-project#132
linade added a commit that referenced this issue Nov 15, 2024
Summary: Change unsupported test api

Testing: com/sun/jdi/EATests.java

Reviewers: mmyxym, jia-wei-tang

Issue: #132
@linade
Copy link
Collaborator

linade commented Nov 20, 2024

Fixed, please confirm

@sendaoYan
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
21.0.5.0.5.9 bug Something isn't working release
Projects
None yet
Development

No branches or pull requests

2 participants