RFR: 8341834: C2 compilation fails with "bad AD file" due to Replicate [v3]

Hao Sun haosun at openjdk.org
Thu Nov 7 01:44:49 UTC 2024


On Mon, 4 Nov 2024 13:41:34 GMT, Roland Westrelin <roland at openjdk.org> wrote:

>> Nice, thanks for the added comments!
>> 
>> Do you know what JDK versions are affected?
>
>> Do you know what JDK versions are affected?
> 
> The failure doesn't reproduce with jdk21u. But that seems to be because we need JDK-8326139 (and JDK-8331575) for the bug to show up.

Hi @rwestrel 

My JBS account is inactive recently. Hence I'd like to report the bug here.

I encountered the following error with `-XX:MaxVectorSize=8` on both AArch64 and x86_64.
Could you help take a look at this issue? Thanks.

Test command:

make test JTREG="VM_OPTIONS=-XX:MaxVectorSize=8" TEST=test/hotspot/jtreg/compiler/vectorization/TestReplicateAtConv.java


Error message:

CompileCommand: compileonly TestReplicateAtConv.test bool compileonly = true            
#                                                                                       
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/tmp/jdk-dev/src/hotspot/share/opto/type.cpp:2499), pid=1424540, tid=1424557
#  assert(Matcher::vector_size_supported(elem_bt, length)) failed: length in range
#
# JRE version: OpenJDK Runtime Environment (24.0) (fastdebug build 24-internal-git-63c19d3db58)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 24-internal-git-63c19d3db58, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x17bca30]  TypeVect::make(BasicType, unsigned int, bool)+0x150
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /tmp/jdk-build/test-support/jtreg_test_hotspot_jtreg_compiler_vectorization_TestReplicateAtConv_java/scratch/0/core.1424540)
#
# An error report file with more information is saved as:
# /tmp/jdk-build/test-support/jtreg_test_hotspot_jtreg_compiler_vectorization_TestReplicateAtConv_java/scratch/0/hs_err_pid1424540.log
#
# Compiler replay data is saved as:
# /tmp/jdk-build/test-support/jtreg_test_hotspot_jtreg_compiler_vectorization_TestReplicateAtConv_java/scratch/0/replay_pid1424540.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp

-------------

PR Comment: https://git.openjdk.org/jdk/pull/21660#issuecomment-2461145117


More information about the hotspot-compiler-dev mailing list