【问题标题】:how to fix "Failed to write core dump. Core dumps have been disabled" error while running java运行java时如何解决“无法写入核心转储。核心转储已被禁用”错误
【发布时间】:2013-10-20 09:08:22
【问题描述】:

我正在使用 Eclipse 开发 Web 应用程序,当我尝试从 Eclipse 中在服务器上运行我的应用程序时遇到了问题。

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f41e4e610b0, pid=3463, tid=139924549404416
#
# JRE version: 7.0_09-b05
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.5-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libwebkitgtk-1.0.so.0+0x11670b0]  void WTF::freeOwnedGPtr<_GdkEvent>(_GdkEvent*)+0x15e00
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

我在谷歌上搜索并找到了一个可能的解决方案here,它建议:“最小的解决方法是添加 -XX:LoopUnrollLimit=1 作为参数。”问题是我不知道在哪里添加这个参数以及如何添加它。谁能帮帮我?

谢谢。

编辑:我将 jdk 从 1.7_9 更新到 1.7_40,但问题仍然存在。

【问题讨论】:

标签: java eclipse tomcat java-7


【解决方案1】:

在 linux mint 16 中,对我来说,解决方案是将 eclipse 主题从 GTK 更改为 Classic,并在 eclipse.ini 中写入:

-Dorg.eclipse.swt.browser.DefaultType=mozilla

【讨论】:

  • 我的 Eclipse 在 dist-upgrade 后开始死机,从 13.10 到 14.04... 重新安装 OpenJDK、Oracle Jdk 等后,您的解决方案似乎对我有用,谢谢
  • 不错。我升级到 Ubuntu 14.04,突然 pentaho 水壶停止工作。将此添加到spoon.sh 可以解决此问题。非常感谢。
  • 使用 Ubuntu 14.04 和 Eclipse Kepler。更改浏览器(window> web browser> system default)为我解决了这个问题。
【解决方案2】:

我不知道这个解决方案是否适用于每个人,但我设法通过将我的 eclipse 从靛蓝更新到开普勒来解决这个问题。

【讨论】:

    【解决方案3】:

    此错误日志与我在尝试打开 Eclipse Marketplace 时收到的一样。 Eclipse 在那之后就关闭了。我的操作系统是 Linux Mint Derbian,我正在使用 Eclipse Luna 4.4.1。 我在 Derbian 的论坛上找到了这个技巧,它对我有用。 Re: Eclipse Luna Crashed on XFCE

    我将这一行添加到 eclipse/eclipse.in:

    --launcher.GTK_version
    2
    

    希望它也对你有用。

    【讨论】:

    • 谢谢。线程很旧,我现在正在使用 intellij :) 希望您的回答可以帮助其他一些 googler
    【解决方案4】:

    Erick Alves 答案对我有用。我添加代码

    --launcher.GTK_version 2

    然后,在我的 eclipse.ini 下工作。

    --launcher.library
    plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326
    -product
    org.eclipse.epp.package.cpp.product
    --launcher.defaultAction
    openFile
    -showsplash
    --launcher.GTK_version
    2
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    -vmargs
    -Dosgi.requiredJavaVersion=1.7
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx512m
    

    【讨论】:

      猜你喜欢
      • 2015-05-12
      • 1970-01-01
      • 2019-11-12
      • 1970-01-01
      • 2021-07-16
      • 2013-03-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多