-
Bug
-
Resolution: Unresolved
-
P4
-
25
-
riscv
-
generic
Hi, when I use the qemu-system mode, the jdk/incubator/vector/DoubleMaxVectorTests.java test run fails.
qemu cpu features: -cpu rv64,zacas=true,v=true,vext_spec=v1.0,vlen=256,elen=64,rvv_ma_all_1s=true,rvv_ta_all_1s=true,zvbb=true,zvkn=true,zbkb=true,zfh=true,zicond=true
qemu version:
QEMU emulator version 9.1.50 (v9.1.0-433-g01dc65a3bc)
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers
error message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x00007ffb8462b466, pid=218021, tid=218046
#
# JRE version: OpenJDK Runtime Environment (25.0) (build 25-internal-adhoc.zifeihan.jdk)
# Java VM: OpenJDK 64-Bit Server VM (25-internal-adhoc.zifeihan.jdk, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# J 1316 c2 DoubleMaxVectorTests.FIRST_NONZEROReduceDoubleMaxVectorTests(Ljava/util/function/IntFunction;)V (192 bytes) @ 0x00007ffb8462b466 [0x00007ffb8462b100+0x0000000000000366]
#
# 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 /home/zifeihan/jdk/build/linux-riscv64-server-release/test-support/jtreg_test_jdk_jdk_incubator_vector/scratch/3/core.218021)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
Instructions: (pc=0x00007ffb8462b466)
0x00007ffb8462b366: 32 4f 05 2f 1b 0e 40 06 63 57 cf 01 e3 8b 05 fe
0x00007ffb8462b376: 81 43 6f f0 df e8 d3 05 00 f2 01 4f 6f 00 20 01
0x00007ffb8462b386: a2 6f 62 4f 05 2f 1b 0e 40 06 63 56 cf 1f 63 80
0x00007ffb8462b396: 05 1e 2e bc 81 43 6f 00 40 02 05 44 85 63 fd 33
0x00007ffb8462b3a6: ce 13 6f 00 40 1a 62 35 01 00 f2 43 91 23 a2 85
0x00007ffb8462b3b6: e3 d8 b3 fc 2a bc a2 6f 62 4f 83 b6 8b 1c 1b 86
0x00007ffb8462b3c6: 03 00 13 8e 06 03 83 be 8b 1d 13 15 36 00 13 04
0x00007ffb8462b3d6: 05 01 63 72 de 21 23 b4 cb 1d 05 4e 23 b0 c6 01
0x00007ffb8462b3e6: 37 6e 16 00 1b 0e 0e b4 3b 0e 0e 08 23 a4 c6 01
0x00007ffb8462b3f6: 91 4e 23 a6 d6 01 13 8e 06 01 91 4e d7 f2 ae 01
0x00007ffb8462b406: 57 02 42 2e d7 f2 ae 01 27 72 0e 02 b3 8e 5e 40
0x00007ffb8462b416: 33 ee c2 21 e3 98 0e fe 82 6e 33 8e ae 00 0f 00
0x00007ffb8462b426: 10 01 41 0e d7 72 82 c1 87 71 0e 02 13 8e 06 01
0x00007ffb8462b436: d7 72 82 c1 a7 71 0e 02 03 b7 8b 1c 03 be 8b 1d
0x00007ffb8462b446: 13 05 07 01 63 73 c5 1f 23 b4 ab 1c 05 4e 23 30
0x00007ffb8462b456: c7 01 37 25 03 01 1b 05 05 bd 3b 05 05 08 08 c7
=>0x00007ffb8462b466: d7 30 30 9e d7 72 82 c1 57 31 00 5e d7 72 82 c1
0x00007ffb8462b476: 57 20 00 6e 57 00 11 66 36 8e 23 26 c7 01 0f 00
By disassembling, we know that the instruction for SIGILL is:0x9e3030d7 -> vmv1r.v v1,v3
And the previous instruction is: 0xc708 -> sw a0,8(a4)
qemu cpu features: -cpu rv64,zacas=true,v=true,vext_spec=v1.0,vlen=256,elen=64,rvv_ma_all_1s=true,rvv_ta_all_1s=true,zvbb=true,zvkn=true,zbkb=true,zfh=true,zicond=true
qemu version:
QEMU emulator version 9.1.50 (v9.1.0-433-g01dc65a3bc)
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers
error message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x00007ffb8462b466, pid=218021, tid=218046
#
# JRE version: OpenJDK Runtime Environment (25.0) (build 25-internal-adhoc.zifeihan.jdk)
# Java VM: OpenJDK 64-Bit Server VM (25-internal-adhoc.zifeihan.jdk, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# J 1316 c2 DoubleMaxVectorTests.FIRST_NONZEROReduceDoubleMaxVectorTests(Ljava/util/function/IntFunction;)V (192 bytes) @ 0x00007ffb8462b466 [0x00007ffb8462b100+0x0000000000000366]
#
# 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 /home/zifeihan/jdk/build/linux-riscv64-server-release/test-support/jtreg_test_jdk_jdk_incubator_vector/scratch/3/core.218021)
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
Instructions: (pc=0x00007ffb8462b466)
0x00007ffb8462b366: 32 4f 05 2f 1b 0e 40 06 63 57 cf 01 e3 8b 05 fe
0x00007ffb8462b376: 81 43 6f f0 df e8 d3 05 00 f2 01 4f 6f 00 20 01
0x00007ffb8462b386: a2 6f 62 4f 05 2f 1b 0e 40 06 63 56 cf 1f 63 80
0x00007ffb8462b396: 05 1e 2e bc 81 43 6f 00 40 02 05 44 85 63 fd 33
0x00007ffb8462b3a6: ce 13 6f 00 40 1a 62 35 01 00 f2 43 91 23 a2 85
0x00007ffb8462b3b6: e3 d8 b3 fc 2a bc a2 6f 62 4f 83 b6 8b 1c 1b 86
0x00007ffb8462b3c6: 03 00 13 8e 06 03 83 be 8b 1d 13 15 36 00 13 04
0x00007ffb8462b3d6: 05 01 63 72 de 21 23 b4 cb 1d 05 4e 23 b0 c6 01
0x00007ffb8462b3e6: 37 6e 16 00 1b 0e 0e b4 3b 0e 0e 08 23 a4 c6 01
0x00007ffb8462b3f6: 91 4e 23 a6 d6 01 13 8e 06 01 91 4e d7 f2 ae 01
0x00007ffb8462b406: 57 02 42 2e d7 f2 ae 01 27 72 0e 02 b3 8e 5e 40
0x00007ffb8462b416: 33 ee c2 21 e3 98 0e fe 82 6e 33 8e ae 00 0f 00
0x00007ffb8462b426: 10 01 41 0e d7 72 82 c1 87 71 0e 02 13 8e 06 01
0x00007ffb8462b436: d7 72 82 c1 a7 71 0e 02 03 b7 8b 1c 03 be 8b 1d
0x00007ffb8462b446: 13 05 07 01 63 73 c5 1f 23 b4 ab 1c 05 4e 23 30
0x00007ffb8462b456: c7 01 37 25 03 01 1b 05 05 bd 3b 05 05 08 08 c7
=>0x00007ffb8462b466: d7 30 30 9e d7 72 82 c1 57 31 00 5e d7 72 82 c1
0x00007ffb8462b476: 57 20 00 6e 57 00 11 66 36 8e 23 26 c7 01 0f 00
By disassembling, we know that the instruction for SIGILL is:0x9e3030d7 -> vmv1r.v v1,v3
And the previous instruction is: 0xc708 -> sw a0,8(a4)
- links to
-
Review(master) openjdk/jdk/24943