RFR: 8341834: C2 compilation fails with "bad AD file" due to Replicate [v3]
Roland Westrelin
roland at openjdk.org
Thu Nov 7 08:25:50 UTC 2024
On Thu, 7 Nov 2024 01:42:30 GMT, Hao Sun <haosun at openjdk.org> wrote:
>>> 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
@shqking thanks for the report. I filed https://bugs.openjdk.org/browse/JDK-8343747
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21660#issuecomment-2461598820
More information about the hotspot-compiler-dev
mailing list