openjdk 20 will crash when run on the newest linux kernel 6.1.3

Ze Zhang zhangze.linux at gmail.com
Sun Jan 22 00:25:54 UTC 2023


hi,
     I tested on your daily build, but got the same result,  openjdk 20 on
linux kernel 5.19 has no this issue,
may be the newest kernel changed something, please check it, thanks a lot.

root at qemuriscv64:~/java/jdk/bin# java -version

openjdk version "21-testing" 2023-09-19
OpenJDK Runtime Environment (slowdebug build
21-testing-builds.shipilev.net-openjdk-jdk-b310-20230121)
OpenJDK 64-Bit Server VM (slowdebug build
21-testing-builds.shipilev.net-openjdk-jdk-b310-20230121, mixed mode)
root at qemuriscv64:~/java/jdk/bin#
root at qemuriscv64:~/java/jdk/bin#
root at qemuriscv64:~/java/jdk/bin#
root at qemuriscv64:~/java/jdk/bin# mill -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff8ee25916, pid=1463, tid=1464
#
# JRE version: OpenJDK Runtime Environment (21.0) (slowdebug build
21-testing-builds.shipilev.net-openjdk-jdk-b310-20230121)
# Java VM: OpenJDK 64-Bit Server VM (slowdebug
21-testing-builds.shipilev.net-openjdk-jdk-b310-20230121, mixed mode,
tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# C  [linux-vdso.so.1+0x916]  __vdso_clock_gettime+0xe4
#
# No core dump will be written. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/root/java/jdk/bin/hs_err_pid1463.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff9a5f3916, pid=1428, tid=1431
#
# JRE version: OpenJDK Runtime Environment (21.0) (slowdebug build
21-testing-builds.shipilev.net-openjdk-jdk-b310-20230121)
# Java VM: OpenJDK 64-Bit Server VM (slowdebug
21-testing-builds.shipilev.net-openjdk-jdk-b310-20230121, mixed mode,
tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# C  [linux-vdso.so.1+0x916]  __vdso_clock_gettime+0xe4
#
# No core dump will be written. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/root/java/jdk/bin/hs_err_pid1428.log
[52.667s][warning][os] Loading hsdis library failed

=================================================================================

root at qemuriscv64:~/java/jdk/bin# java -version
openjdk version "20-internal" 2023-03-21
OpenJDK Runtime Environment (slowdebug build 20-internal-adhoc.zhangze.git)
OpenJDK 64-Bit Server VM (slowdebug build 20-internal-adhoc.zhangze.git,
mixed mode)
root at qemuriscv64:~/java/jdk/bin# mill -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fffa8514916, pid=1352, tid=1355
#
# JRE version: OpenJDK Runtime Environment (20.0) (slowdebug build
20-internal-adhoc.zhangze.git)
# Java VM: OpenJDK 64-Bit Server VM (slowdebug
20-internal-adhoc.zhangze.git, mixed mode, tiered, compressed oops,
compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# C  [linux-vdso.so.1+0x916]  __vdso_clock_gettime+0xe4
#
# No core dump will be written. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/root/java/jdk/bin/hs_err_pid1352.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Aborted



<yangfei at iscas.ac.cn> 于2023年1月21日周六 21:12写道:

> Hi,
>
>   I see from the log file that the crash happens when the C2
> CompilerThread is doing a native clock_gettime/__vdso_clock_gettime.
>   So I wonder whether this is a problem that is QEMU-specific? Does it
> trigger on hardware platforms like Unmatched board?
>   Also did you try the pre-built JDK binaries for RISCV64 here at [1]?
>
> [1] https://builds.shipilev.net/openjdk-jdk/
>
> Regards,
> Fei Yang
>
> -----Original Messages-----
> From:"Ze Zhang" <zhangze.linux at gmail.com>
> Sent Time:2023-01-21 12:17:42 (Saturday)
> To: riscv-port-dev at openjdk.org
> Cc:
> Subject: openjdk 20 will crash when run on the newest linux kernel 6.1.3
>
> hi,   I run mill (a java program used to build scala program) on linux
> riscv64 kernel 6.1.3 in qemu,
>   I always crash, can someone give me some idea?  here is the debug log
> file:
>
>
> </zhangze.linux at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/riscv-port-dev/attachments/20230122/8be69cb9/attachment.htm>


More information about the riscv-port-dev mailing list