【问题标题】:Why a JRE crashes because of core dumping?为什么 JRE 由于核心转储而崩溃?
【发布时间】:2014-05-15 09:23:26
【问题描述】:

在执行通过 JNI 从 java 代码调用的共享库函数时,我的 JRE 崩溃了。输出显示 JRE 崩溃,因为它“无法写入核心转储。核心转储已被禁用。”。
经过很多天没有解释的谷歌搜索,我的问题是:

  1. 在哪里可以找到有关 JRE 核心转储的信息?我想了解问题和解决方案。

我知道输出建议执行“ulimit -c unlimited”,这个问题提出了解决方案(How to enable program to dump core on linux?)

这里我粘贴了 JRE 输出:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f7e541cec55, pid=20390, tid=140180586714880
#
# JRE version: Java(TM) SE Runtime Environment (7.0_55-b13) (build 1.7.0_55-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.55-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libXXX.so+0x1fc55]  NewMask_UnsetAll+0x15
#
# 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:
# /XXX/hs_err_pid20390.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

【问题讨论】:

  • 这个问题已经17天了,这个错误还没有解决吗?

标签: java java-native-interface


【解决方案1】:

我知道这是个老问题了……

此消息“无法写入核心转储。核心转储已被禁用。”并不意味着这是坠机的原因。 “失败”这个词在这里确实具有误导性。

此消息仅表示 core dumps 在 Java VM 中被禁用(通常是这种情况),因此在发生崩溃时不会生成此类转储。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多