dragonwell-project / dragonwell11

Alibaba Dragonwell11 JDK
https://www.aliyun.com/product/dragonwell
GNU General Public License v2.0
557 stars 112 forks source link

[riscv64]gtest/AsyncLogGtest.java运行crash:~StubRoutines::SafeFetchN #771

Open sendaoYan opened 8 months ago

sendaoYan commented 8 months ago

Description gtest/AsyncLogGtest.java运行crash:~StubRoutines::SafeFetchN

Steps to Reproduce Steps to reproduce the behavior:

/tmp/tone/run/jtreg/test-images/dragonwell-11.0.21.18+9-GA-test-image/hotspot/gtest/server/gtestLauncher -jdk /tmp/tone/run/jtreg/binary-download/dragonwell-11.0.21.18+9-GA --gtest_catch_exceptions=0

Expected behavior run pass

result

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000003f99fcf4c0, pid=371282, tid=371288
#
# JRE version: OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-11.0.21.18+9-GA (11.0.21.18+9) (build 11.0.21.18+9)
# Java VM: OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-11.0.21.18+9-GA (11.0.21.18+9, mixed mode, tiered, compressed oops, g1 gc, linux-riscv64)
# Problematic frame:
# v  ~StubRoutines::SafeFetchN
#
# 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" (or dumping to /tmp/tone/run/jtreg/core.371282)
#
# An error report file with more information is saved as:
# /tmp/tone/run/jtreg/hs_err_pid371282.log
Loaded disassembler from /tmp/tone/run/jtreg/binary-download/dragonwell-11.0.21.18+9-GA/lib/hsdis-riscv64.so
BFD: unrecognized disassembler option: 
#
# If you would like to submit a bug report, please visit:
#   mailto:dragonwell_use@googlegroups.com
#

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       993Mi        56Gi       9.0Mi       5.8Gi        61Gi
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.21.18" 2023-10-17
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-11.0.21.18+9-GA (build 11.0.21.18+9)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-11.0.21.18+9-GA (build 11.0.21.18+9, mixed mode)

OpenJDK 64-Bit Server VM (11.0.21.18+9) for linux-riscv64 JRE (11.0.21.18+9), built on Dec 27 2023 08:24:34 by "" with gcc 9.2.0

gtest.log hs_err_pid371282.log hs_err_pid371597.log

core dump文件:http://114.55.64.175:8666/compiler-ci-bucket/jdk/core-dump-files/dragonwell11/issue771/release/core.371871

sendaoYan commented 8 months ago

gtest/GTestWrapper.java现象类似