Fedora - Maven 致命 JRE 错误

Fedora - Maven FATAL JRE Error

我正在尝试 运行 mvn package 在 Fedora 25 上,但我一直收到此错误:

Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.pom
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fb46a290711, pid=20263, tid=0x00007fb46af4e700
#
# JRE version: OpenJDK Runtime Environment (8.0_111-b16) (build 1.8.0_111-b16)
# Java VM: OpenJDK 64-Bit Server VM (25.111-b16 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so.6+0x14f711]  __memmove_avx_unaligned_erms+0x211
#
# Failed to write core dump. 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:
# /run/media/pichardo/Data/hacking/projects/personal/MetalesBC-Billing-System/hs_err_pid20263.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
/usr/bin/mvn: line 20: 20263 Aborted                 (core dumped) $M2_HOME/bin/mvn "$@"

echo $JAVA_HOME is /usr/java/jdk1.8.0_121/

有人知道为什么会这样吗?

请使用发行版的错误跟踪器报告错误。 Whosebug 是错误的地方。打包者将关注发行版的错误跟踪器,而不是互联网上的其他地方。

总之,这大概是https://bugzilla.redhat.com/show_bug.cgi?id=1415137 and a fix for this is being pushed right now. See https://bodhi.fedoraproject.org/updates/FEDORA-2017-4076cf8494

此外,您的 JAVA_HOME 似乎被 maven 忽略了。它没有被使用,正如您在崩溃报告中看到 OpenJDK 正在被 maven 使用。