运行java时如何修复“无法写入核心转储。核心转储已被禁用”错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19332489/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 16:11:31  来源:igfitidea点击:

how to fix "Failed to write core dump. Core dumps have been disabled" error while running java

javaeclipsetomcatjava-7

提问by MoienGK

i am using eclipse to develop a web application and i have encountered a problem when i am trying to run my application on server from within eclipse.

我正在使用 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.
#

i googled it and found a possible solution herethat suggests : "A minimal workaround is to add -XX:LoopUnrollLimit=1 as an argument." the problem is i don't know where to add this argument and how to add it. can any one help me about it?

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

thanks.

谢谢。

EDIT : I updated my jdk from 1.7_9 to 1.7_40 but problem stands still.

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

回答by MoienGK

i don't know if this solution applies to every one or not, but i managed to solve this by updating my eclipse from indigo to kepler.

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

回答by postNuKe

In linux mint 16, for me, the solution was change the eclipse theme from GTK to Classic and write in eclipse.ini this:

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

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

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

回答by Erick Alves

This error log looks as mine that I received when I've tried to open the Eclipse Marketplace. The Eclipse simply closed after that. My OS is the Linux Mint Derbian and I'm working with Eclipse Luna 4.4.1. I found this tip on the Derbian's forum and it worked for me. Re: Eclipse Luna Crashed on XFCE

这个错误日志看起来是我在尝试打开 Eclipse Marketplace 时收到的。之后 Eclipse 就关闭了。我的操作系统是 Linux Mint Derbian,我正在使用 Eclipse Luna 4.4.1。我在 Derbian 的论坛上找到了这个提示,它对我有用。 回复:Eclipse Luna 在 XFCE 上崩溃

I add the line to eclipse/eclipse.in:

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

--launcher.GTK_version
2

Hope it works for you too.

希望它也适用于你。

回答by user3514722

The Erick Alves Answer works for me. I add the code

埃里克·阿尔维斯的答案对我有用。我添加代码

--launcher.GTK_version 2

--launcher.GTK_version 2

then, below my eclipse.ini works.

然后,在我的 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