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

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

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

谢谢。

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

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

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

我不知道这个解决方案是否适用于每个人,但我设法通过将我的eclipse从indigo更新为kepler来解决这个问题。

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

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

 --launcher.GTK_version 2 

希望它也适合你。

Erick Alves Answer适合我。 我添加了代码

–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