-
Bug
-
Resolution: Duplicate
-
P4
-
repo-panama
-
x86
jdk/incubator/vector/Double64VectorTests.java crashes on X86 with the following log:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/ent-user/ci-scripts/jdk_build/jdk_src/src/hotspot/share/opto/type.cpp:2371), pid=6094, tid=6110
# assert(Matcher::vector_size_supported(elem_bt, length)) failed: length in range
#
# JRE version: OpenJDK Runtime Environment (17.0) (fastdebug build 17-internal+0-git-e17738ba38)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 17-internal+0-git-e17738ba38, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x1a8fd67] TypeVect::make(Type const*, unsigned int)+0x77
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/ent-user/ci-scripts/jdk_build/jtwork_rerun/scratch/core.6094)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
--------------- S U M M A R Y ------------
Command Line: -Dtest.vm.opts=-ea -esa -Xmx768m -server -Dgraalunit.libs=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk/../test/hotspot/jtreg/graal -Djdk.test.docker.image.name=ubuntu -Djdk.test.docker.image.version=20.04 -Djava.net.preferIPv4Stack=true -Dtest.tool.vm.opts=-J-ea -J-esa -J-Xmx768m -J-server -J-Dgraalunit.libs=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk/../test/hotspot/jtreg/graal -J-Djdk.test.docker.image.name=ubuntu -J-Djdk.test.docker.image.version=20.04 -J-Djava.net.preferIPv4Stack=true -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk -Dcompile.jdk=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk -Dtest.timeout.factor=16.0 -Dtest.nativepath=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/test/jdk/jtreg/native -Dtest.root=/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk -Dtest.name=jdk/incubator/vector/Double64VectorTests.java -Dtest.file=/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk/jdk/incubator/vector/Double64VectorTests.java -Dtest.src=/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk/jdk/incubator/vector -Dtest.src.path=/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk/jdk/incubator/vector -Dtest.classes=/home/ent-user/ci-scripts/jdk_build/jtwork_rerun/classes/jdk/incubator/vector/Double64VectorTests.d -Dtest.class.path=/home/ent-user/ci-scripts/jdk_build/jtwork_rerun/classes/jdk/incubator/vector/Double64VectorTests.d -Dtest.class.path.prefix=/home/ent-user/ci-scripts/jdk_build/jtwork_rerun/classes/jdk/incubator/vector/Double64VectorTests.d:/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk/jdk/incubator/vector -Dtest.modules=jdk.incubator.vector --add-modules=jdk.incubator.vector -ea -esa -Xmx768m -Dgraalunit.libs=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk/../test/hotspot/jtreg/graal -Djdk.test.docker.image.name=ubuntu -Djdk.test.docker.image.version=20.04 -Djava.net.preferIPv4Stack=true -Djava.library.path=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/test/jdk/jtreg/native -ea -esa -Xbatch -XX:-TieredCompilation com.sun.javatest.regtest.agent.MainWrapper /home/ent-user/ci-scripts/jdk_build/jtwork_rerun/jdk/incubator/vector/Double64VectorTests.d/testng.0.jta jdk/incubator/vector/Double64VectorTests.java false Double64VectorTests
Host: ent-x86-07-ubuntu-openjdk-test, Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz, 48 cores, 125G, Ubuntu 20.04.1 LTS
Time: Tue Feb 9 09:36:55 2021 UTC elapsed time: 5.015334 seconds (0d 0h 0m 5s)
--------------- T H R E A D ---------------
Current thread (0x00007f4344436e90): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=6110, stack(0x00007f432a9fa000,0x00007f432aafb000)]
Current CompileTask:
C2: 5015 526 % b Double64VectorTests::ACOSDouble64VectorTests @ 50 (120 bytes)
Stack: [0x00007f432a9fa000,0x00007f432aafb000], sp=0x00007f432aaf5bb0, free space=1006k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1a8fd67] TypeVect::make(Type const*, unsigned int)+0x77
V [libjvm.so+0x1ae8eb1] GraphKit::unbox_vector(Node*, TypeInstPtr const*, BasicType, int, bool)+0x151
V [libjvm.so+0x1aea0dd] LibraryCallKit::inline_vector_nary_operation(int)+0xbcd
This crash is caused by https://bugs.openjdk.java.net/browse/JDK-8261267, when checking whether arch supports the vector operation, it misses the check for op "Op_CallLeafVector". I guess for double 64-bits vector, the vector operation is not supported and should go back to the default java implementation. The missing check make it continue, and the crash happens when making the vector op.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/ent-user/ci-scripts/jdk_build/jdk_src/src/hotspot/share/opto/type.cpp:2371), pid=6094, tid=6110
# assert(Matcher::vector_size_supported(elem_bt, length)) failed: length in range
#
# JRE version: OpenJDK Runtime Environment (17.0) (fastdebug build 17-internal+0-git-e17738ba38)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 17-internal+0-git-e17738ba38, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x1a8fd67] TypeVect::make(Type const*, unsigned int)+0x77
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/ent-user/ci-scripts/jdk_build/jtwork_rerun/scratch/core.6094)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
--------------- S U M M A R Y ------------
Command Line: -Dtest.vm.opts=-ea -esa -Xmx768m -server -Dgraalunit.libs=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk/../test/hotspot/jtreg/graal -Djdk.test.docker.image.name=ubuntu -Djdk.test.docker.image.version=20.04 -Djava.net.preferIPv4Stack=true -Dtest.tool.vm.opts=-J-ea -J-esa -J-Xmx768m -J-server -J-Dgraalunit.libs=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk/../test/hotspot/jtreg/graal -J-Djdk.test.docker.image.name=ubuntu -J-Djdk.test.docker.image.version=20.04 -J-Djava.net.preferIPv4Stack=true -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk -Dcompile.jdk=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk -Dtest.timeout.factor=16.0 -Dtest.nativepath=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/test/jdk/jtreg/native -Dtest.root=/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk -Dtest.name=jdk/incubator/vector/Double64VectorTests.java -Dtest.file=/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk/jdk/incubator/vector/Double64VectorTests.java -Dtest.src=/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk/jdk/incubator/vector -Dtest.src.path=/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk/jdk/incubator/vector -Dtest.classes=/home/ent-user/ci-scripts/jdk_build/jtwork_rerun/classes/jdk/incubator/vector/Double64VectorTests.d -Dtest.class.path=/home/ent-user/ci-scripts/jdk_build/jtwork_rerun/classes/jdk/incubator/vector/Double64VectorTests.d -Dtest.class.path.prefix=/home/ent-user/ci-scripts/jdk_build/jtwork_rerun/classes/jdk/incubator/vector/Double64VectorTests.d:/home/ent-user/ci-scripts/jdk_build/jdk_src/test/jdk/jdk/incubator/vector -Dtest.modules=jdk.incubator.vector --add-modules=jdk.incubator.vector -ea -esa -Xmx768m -Dgraalunit.libs=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/jdk/../test/hotspot/jtreg/graal -Djdk.test.docker.image.name=ubuntu -Djdk.test.docker.image.version=20.04 -Djava.net.preferIPv4Stack=true -Djava.library.path=/home/ent-user/ci-scripts/jdk_build/build-fastdebug/images/test/jdk/jtreg/native -ea -esa -Xbatch -XX:-TieredCompilation com.sun.javatest.regtest.agent.MainWrapper /home/ent-user/ci-scripts/jdk_build/jtwork_rerun/jdk/incubator/vector/Double64VectorTests.d/testng.0.jta jdk/incubator/vector/Double64VectorTests.java false Double64VectorTests
Host: ent-x86-07-ubuntu-openjdk-test, Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz, 48 cores, 125G, Ubuntu 20.04.1 LTS
Time: Tue Feb 9 09:36:55 2021 UTC elapsed time: 5.015334 seconds (0d 0h 0m 5s)
--------------- T H R E A D ---------------
Current thread (0x00007f4344436e90): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=6110, stack(0x00007f432a9fa000,0x00007f432aafb000)]
Current CompileTask:
C2: 5015 526 % b Double64VectorTests::ACOSDouble64VectorTests @ 50 (120 bytes)
Stack: [0x00007f432a9fa000,0x00007f432aafb000], sp=0x00007f432aaf5bb0, free space=1006k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1a8fd67] TypeVect::make(Type const*, unsigned int)+0x77
V [libjvm.so+0x1ae8eb1] GraphKit::unbox_vector(Node*, TypeInstPtr const*, BasicType, int, bool)+0x151
V [libjvm.so+0x1aea0dd] LibraryCallKit::inline_vector_nary_operation(int)+0xbcd
This crash is caused by https://bugs.openjdk.java.net/browse/JDK-8261267, when checking whether arch supports the vector operation, it misses the check for op "Op_CallLeafVector". I guess for double 64-bits vector, the vector operation is not supported and should go back to the default java implementation. The missing check make it continue, and the crash happens when making the vector op.
- duplicates
-
JDK-8261394 [vector] Crash with "assert(Matcher::vector_size_supported(elem_bt, length)) failed: length in range"
-
- Resolved
-
- relates to
-
JDK-8261267 Math vector stubs are not called from jitted code
-
- Resolved
-