dragonwell-project / dragonwell21

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

[upstream][jdk23]tools/jlink/JLinkReproducibleTest.java intermittently crash on aarch64 platform: ConstantPool::klass_ref_at(int, Bytecodes::Code, JavaThread*) #26

Open sendaoYan opened 7 months ago

sendaoYan commented 7 months ago

job:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/285289

rerun job: https://tone.aliyun-inc.com/ws/xesljfzh/test_result/285547 https://tone.aliyun-inc.com/ws/xesljfzh/test_result/285555

test command:

export test=test/jdk/tools/jlink/JLinkReproducibleTest.java
function runJtreg() { jtreg -ea -esa -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java | sed "s|#|_|"` ; rm -rf $dir ; mkdir -p $dir ; time seq 10000 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

result:

STDOUT:
[2024-03-01T09:41:20.951829862Z] Gathering output for process 2255056
[2024-03-01T09:41:20.971422082Z] Waiting for completion for process 2255056
[2024-03-01T09:41:21.488248248Z] Waiting for completion finished for process 2255056
Output and diagnostic info for process 2255056 was saved into 'pid-2255056-output.log'
[2024-03-01T09:41:21.507991746Z] Gathering output for process 2255141
[2024-03-01T09:41:21.508651035Z] Waiting for completion for process 2255141
[2024-03-01T09:41:25.484781506Z] Waiting for completion finished for process 2255141
Output and diagnostic info for process 2255141 was saved into 'pid-2255141-output.log'
STDERR:
 stdout: [Unexpected bytecode: 188
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (constantPool.cpp:706), pid=2255141, tid=2255144
#  Error: ShouldNotReachHere()
#
# JRE version: OpenJDK Runtime Environment (23.0) (build 23)
# Java VM: OpenJDK 64-Bit Server VM (23, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x5e4f18]  ConstantPool::klass_ref_at(int, Bytecodes::Code, JavaThread*)+0x178
#
# Core dump will be written. Default location: /var/tmp/tone/run/jtreg/jt-work/test_jdk/tools/jlink/JLinkReproducibleTest/core.2255141
#
# An error report file with more information is saved as:
# /var/tmp/tone/run/jtreg/jt-work/test_jdk/tools/jlink/JLinkReproducibleTest/hs_err_pid2255141.log
#
# If you would like to submit a bug report, please visit:
#   mailto:yansendao.ysd@alibaba-inc.com
#
];
 stderr: [Warning: The 2 argument for --compress is deprecated and may be removed in a future release
]
 exitValue = 134

cpu and memory info:

yansendao@CompilerTest-aarch64-5:[jdk]> lscpu 
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
Model:               0
Model name:          Neoverse-N2
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
yansendao@CompilerTest-aarch64-5:[jdk]> free -h
              total        used        free      shared  buff/cache   available
Mem:          122Gi        11Gi        42Gi       612Mi        68Gi       109Gi
Swap:            0B          0B          0B

hs_err_pid2255141.log