dragonwell-project / dragonwell21

GNU General Public License v2.0
61 stars 18 forks source link

[upstream][jdk23]gc/g1/TestMarkStackOverflow.java intermittently crash: G1CMMarkStack::ChunkAllocator::allocate_new_chunk #21

Closed sendaoYan closed 6 months ago

sendaoYan commented 7 months ago

job: https://tone.aliyun-inc.com/ws/xesljfzh/test_result/277362?tab=1

test command:

export test=test/hotspot/jtreg/gc/g1/TestMarkStackOverflow.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 100000 | xargs -i -n 1 -P `npr
oc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

result:

command: main -XX:ActiveProcessorCount=2 -XX:MarkStackSize=1 -Xmx250m gc.g1.TestMarkStackOverflow
reason: User specified action: run main/othervm -XX:ActiveProcessorCount=2 -XX:MarkStackSize=1 -Xmx250m gc.g1.TestMarkStackOverflow 
started: Sun Feb 04 10:25:52 CST 2024
Mode: othervm [/othervm specified]
finished: Sun Feb 04 10:25:56 CST 2024
elapsed time (seconds): 3.987
configuration:
STDOUT:
Used mem 18.47 MB
Used mem 36.23 MB
Used mem 53.43 MB
Used mem 70.63 MB
Used mem 87.83 MB
Used mem 105.03 MB
Used mem 122.87 MB
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f161b429e51, pid=340136, tid=340141
#
# 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-amd64)
# Problematic frame:
# V  [libjvm.so+0x7e9e51]  G1CMMarkStack::ChunkAllocator::allocate_new_chunk()+0xa1
#
# Core dump will be written. Default location: /var/tmp/tone/run/jtreg/jt-work/hotspot_jtreg/gc/g1/TestMarkStackOverflow/core.340136
#
# An error report file with more information is saved as:
# /var/tmp/tone/run/jtreg/jt-work/hotspot_jtreg/gc/g1/TestMarkStackOverflow/hs_err_pid340136.log
#
# If you would like to submit a bug report, please visit:
#   mailto:yansendao.ysd@alibaba-inc.com
#

复现概率1/10w

image

hs_err_pid340136.log

core.340136.tar.xz.z01.zip core.340136.tar.xz.z02.zip core.340136.tar.xz.zip

33065.log

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

sendaoYan commented 7 months ago

https://bugs.openjdk.org/browse/JDK-8325202

sendaoYan commented 6 months ago

上游已经修复