dragonwell-project / dragonwell11

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

[lilliput]aarch64平台fastdbug版本-XX:+UseCompactObjectHeaders -Xcomp -XX:TieredStopAtLevel=1选项运行com/alibaba/wisp/monitor/deopt/TestSynchronizedMethodDeopt.java随机crash:markOopDesc::print_on(outputStream*) const #752

Closed sendaoYan closed 8 months ago

sendaoYan commented 8 months ago

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

Steps to Reproduce Steps to reproduce the behavior:

export test=test/jdk/com/alibaba/wisp/monitor/deopt/TestSynchronizedMethodDeopt.java
function runJtreg() { jtreg -XX:+UseCompactObjectHeaders -Djdk.lang.processReaperUseDefaultStackSize=true -Xcomp -XX:TieredStopAtLevel=1 -jdk:/home/yansendao/software/jdk/2023-12/jdk -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` ; rm -rf $dir ; mkdir -p $dir ; time seq 1000 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`
Interpreted frame (sp=0x0000fffec51ba570 unextended sp=0x0000fffec51ba570, fp=0x0000fffec51ba5f0, real_fp=0x0000fffec51ba5f0, pc=0x0000ffff745df280)
(~deoptimization entry points  [0x0000ffff745df280, 0x0000ffff745e2e80]  15360 bytes
)
     BufferBlob (0x0000ffff745bad10) used for Interpreter

 - local  [0xdeaddeaf00000003]; #0
 - local  [0x0000000000000000]; #1
 - obj    [a 'java/lang/Class'{0x0000000469a1caa8} = 'TestSynchronizedMethodDeopt']
 - lock   [monitor monitor(0x0000000000030252)=#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000ffff9343ea8c, pid=382647, tid=382740
#
# JRE version: OpenJDK Runtime Environment (Alibaba Dragonwell) (11.0.21.17) (fastdebug build 11.0.21.17+0)
# Java VM: OpenJDK 64-Bit Server VM (Alibaba Dragonwell) (fastdebug 11.0.21.17+0, compiled mode, tiered, compressed oops, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x11fea8c]  markOopDesc::print_on(outputStream*) const+0x11c
#
# Core dump will be written. Default location: /tmp/tone/run/jtreg/jt-work/test_jdk/com/alibaba/wisp/monitor/deopt/TestSynchronizedMethodDeopt/core.382647
#
Unsupported internal testing APIs have been used.

# An error report file with more information is saved as:
# /tmp/tone/run/jtreg/jt-work/test_jdk/com/alibaba/wisp/monitor/deopt/TestSynchronizedMethodDeopt/hs_err_pid382647.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
sendaoYan commented 8 months ago

com/alibaba/wisp/monitor/deopt/TestMonitorExitDeopt.java com/alibaba/wisp/monitor/deopt/TestSynchronizedMethodWhenUnwindingDeopt.java -Xmixed也会出现

sendaoYan commented 8 months ago

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