dragonwell-project / dragonwell21

GNU General Public License v2.0
67 stars 19 forks source link

[21.0.5.0.5.9]runtime/NMT/NMTWithCDS.java等4个用例-XX:+UseCompactObjectHeaders选项assert: G1CollectedHeap::populate_archive_regions_bot_part(MemRegion) #123

Open sendaoYan opened 6 hours ago

sendaoYan commented 6 hours ago

任务链接:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/394870?tab=2 【环境准备】

BINARY_URL=oss://dragonwell/21.0.5.0.5+9-test-dragonwell_extended/Alibaba_Dragonwell_Extended_21.0.5.0.5.9_aarch64_linux.tar.gz
TEST_IMAGE=oss://dragonwell/21.0.5.0.5+9-test-dragonwell_extended/Alibaba_Dragonwell_Extended_21.0.5.0.5.9_aarch64_linux-testimage.tar.gz
JDK_REPO=git@github.com:dragonwell-project/dragonwell21.git
JDK_BRANCH=dragonwell_extended-21.0.5.0.5+9

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 -XX:+UseCompactObjectHeaders runtime/NMT/NMTWithCDS.java

【测试分析】

runtime/NMT/NMTWithCDS.java
serviceability/sa/CDSJMapClstats.java
serviceability/sa/ClhsdbCDSCore.java
jdk-repo/test/hotspot/jtreg/serviceability/sa/ClhsdbCDSJstackPrintAll.java-rerun-10

x86和arm上fail

release版本pass。 默认选项下pass。

【版本信息】

jdk信息

[root@CompilerTest-aarch64-2 dragonwell-21.0.4.0.4+7-GA-new]#  bin/java -version; bin/java -Xinternalversion
openjdk version "21.0.4.0.4" 2024-10-15
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-21.0.4.0.4+7-GA (build 21.0.4.0.4)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-21.0.4.0.4+7-GA (build 21.0.4.0.4, mixed mode, sharing)
OpenJDK 64-Bit Server VM (21.0.4.0.4) for linux-aarch64 JRE (21.0.4.0.4), built on 2024-10-15T00:00:00Z by "dragonwell" with gcc 11.2.0

测试机信息jdk环境信息

[root@CompilerTest-aarch64-2 ~]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25; dmidecode -t chassis
Linux CompilerTest-aarch64-2 5.10.134-16.1.al8.aarch64 #1 SMP Thu Dec 7 22:04:51 CST 2023 aarch64 aarch64 aarch64 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:          122Gi       1.8Gi       107Gi       1.0Mi        12Gi       119Gi
Swap:            0B          0B          0B
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  1
Core(s) per socket:  32
Socket(s):           1
NUMA node(s):        1
Vendor ID:           ARM
BIOS Vendor ID:      Alibaba Cloud
Model:               0
Model name:          Neoverse-N2
BIOS Model name:     virt-rhel7.6.0
Stepping:            r0p0
CPU MHz:             3000.000
CPU max MHz:         3000.0000
CPU min MHz:         3000.0000
BogoMIPS:            100.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            65536K
NUMA node0 CPU(s):   0-31
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x0300, DMI type 3, 21 bytes
Chassis Information
        Manufacturer: Alibaba Cloud
        Type: Other
        Lock: Not Present
        Version: virt-rhel7.6.0
        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

【用例日志】
hs_err_pid3605966.log

ACTION: driver -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr
REASON: User specified action: run driver NMTWithCDS
TIME:   0.971 seconds
messages:
command: driver NMTWithCDS
reason: User specified action: run driver NMTWithCDS
started: Thu Oct 31 14:53:01 CST 2024
Mode: othervm
Additional options from @modules: --add-modules java.base,java.management --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
finished: Thu Oct 31 14:53:02 CST 2024
elapsed time (seconds): 0.971
configuration:
Boot Layer
  add modules: java.base java.management
  add exports: java.base/jdk.internal.misc ALL-UNNAMED

STDOUT:
Command line: [/root/21/dragonwell-21.0.4.0.4+7-GA-new/bin/java -cp /root/21/tmp/classes/runtime/NMT/NMTWithCDS.d:/root/21/jdk-repo/test/hotspot/jtreg/runtime/NMT:/root/21/tmp/classes/test/lib:/root/21/jdk-repo/test/lib:/root/jtreg/lib/javatest.jar:/root/jtreg/lib/jtreg.jar -XX:+UseCompactObjectHeaders -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=./NMTWithCDS.jsa -Xshare:dump -Xlog:cds ]
[2024-10-31T06:53:01.628530445Z] Gathering output for process 3605950
[2024-10-31T06:53:02.164641894Z] Waiting for completion for process 3605950
[2024-10-31T06:53:02.164848630Z] Waiting for completion finished for process 3605950
Command line: [/root/21/dragonwell-21.0.4.0.4+7-GA-new/bin/java -cp /root/21/tmp/classes/runtime/NMT/NMTWithCDS.d:/root/21/jdk-repo/test/hotspot/jtreg/runtime/NMT:/root/21/tmp/classes/test/lib:/root/21/jdk-repo/test/lib:/root/jtreg/lib/javatest.jar:/root/jtreg/lib/jtreg.jar -XX:+UseCompactObjectHeaders -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=detail -XX:SharedArchiveFile=./NMTWithCDS.jsa -Xshare:on -version ]
[2024-10-31T06:53:02.166083543Z] Gathering output for process 3605966
[2024-10-31T06:53:02.482058601Z] Waiting for completion for process 3605966
[2024-10-31T06:53:02.482230617Z] Waiting for completion finished for process 3605966
STDERR:
 stdout: [#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000ffffb396431c, pid=3605966, tid=3605969
#
# JRE version:  (21.0.4) (build )
# Java VM: OpenJDK 64-Bit Server VM (21.0.4.0.4, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x70431c]  G1CollectedHeap::populate_archive_regions_bot_part(MemRegion)+0x1fc
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e" (or dumping to /root/21/tmp/scratch/core.3605966)
#
# An error report file with more information is saved as:
# /root/21/tmp/scratch/hs_err_pid3605966.log
#
#
];
 stderr: []
 exitValue = 134

 stdout: [#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000ffffb396431c, pid=3605966, tid=3605969
#
# JRE version:  (21.0.4) (build )
# Java VM: OpenJDK 64-Bit Server VM (21.0.4.0.4, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x70431c]  G1CollectedHeap::populate_archive_regions_bot_part(MemRegion)+0x1fc
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e" (or dumping to /root/21/tmp/scratch/core.3605966)
#
# An error report file with more information is saved as:
# /root/21/tmp/scratch/hs_err_pid3605966.log
#
#
];
 stderr: []
 exitValue = 134

java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr
        at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:231)
        at NMTWithCDS.main(NMTWithCDS.java:56)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1583)

JavaTest Message: Test threw exception: java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr
sendaoYan commented 6 hours ago

https://code.alibaba-inc.com/os-quality/tone-matrix-compiler/codereview/18969741