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

匿名 (未验证) 提交于 2019-12-03 02:41:02

问题:

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.

# # 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 here that 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?

thanks.

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

回答1:

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

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



回答2:

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.



回答3:

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

I add the line to eclipse/eclipse.in:

--launcher.GTK_version 2 

Hope it works for you too.



回答4:

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

--launcher.GTK_version 2

then, below my eclipse.ini works.

--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 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!