Java 12 crashes on ARMv7 CPUs

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
User avatar
rednoah
The Source
Posts: 16600
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Java 12 crashes on ARMv7 CPUs

Post by rednoah » 21 Apr 2019, 05:33

The latest versions of the OpenJDK seem to just crash when executing pretty much any Java code that does anything:

Code: Select all

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x413042dc, pid=3635, tid=3636
#
# JRE version: LibericaJDK Runtime Environment (11.0.3+12) (build 11.0.3-BellSoft+12)
# Java VM: LibericaJDK 32-Bit Server VM (11.0.3-BellSoft+12, mixed mode, serial gc, linux-)
# Problematic frame:
# J 14 c2 java.io.BufferedReader.readLine(Z)Ljava/lang/String; [email protected] (304 bytes) @ 0x413042dc [0x41304000+0x000002dc]
#
# Core dump will be written. Default location: /volume1/@%e.core
#
# An error report file with more information is saved as:
# /volume1/homes/admin/tools/jdk-11.0.3/bin/hs_err_pid3635.log
Could not load hsdis-arm.so; library not loadable; PrintAssembly is disabled
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

Confirmed on Synology DS213J running on an armv7l CPU:

Code: Select all

Linux diskstation 3.2.40 #23824 Tue Feb 12 16:48:52 CST 2019 armv7l GNU/Linux synology_armada370_213j

Since the crash seems to occurs in the C2 compiler optimization step of the Server VM, we can simply work around the issue by selecting the Client VM like so, which performs less optimizations and doesn't seem to crash:

Code: Select all

export JAVA_OPTS="-client"

:arrow: https://bugs-stage.openjdk.java.net/browse/JDK-8222825
:idea: Please read the FAQ and How to Request Help.

Post Reply