Running Eclipse under Valgrind

痴心易碎 提交于 2019-12-12 12:00:21

问题


Has anybody here succeeded in running Eclipse under Valgrind? I'm battling a particularly hairy crash involving JNI code, and was hoping that Valgrind perhaps could (again) prove its excellence, but when I run Eclipse under Valgrind, the JVM terminates with an error message about not being able to create the initial object heap (I currently don't have access to the exact error message; I'll edit this post as soon as I do.)


回答1:


If there is a crash in native code, then gdb might be a better choice. It should even stop the execution automatically on a crash and might show You the stack trace (command bt).




回答2:


Does it work if you run valgrind with --smc-check=all?

Also -- valgrind increases a program's memory requirements pretty dramatically. With something as large as Eclipse, there's plenty of room for trouble; hopefully you're 64-bit native (and thus have plenty of address space) and have lots of RAM and/or swap.



来源:https://stackoverflow.com/questions/189284/running-eclipse-under-valgrind

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