在 Valgrind 下运行 Eclipse
这里有人成功在 Valgrind 下运行 Eclipse 吗? 我正在与涉及 JNI 代码的特别严重的崩溃作斗争,并希望 Valgrind 或许可以(再次)证明其卓越性,但是当我在 Valgrind 下运行 Eclipse 时,JVM 终止并显示一条有关无法创建初始对象的错误消息堆(我目前无法访问确切的错误消息;我会尽快编辑这篇文章。)
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.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 --smc-check=all 运行 valgrind?
另外,valgrind 显着增加了程序的内存需求。 对于像 Eclipse 这样大的东西,有很多麻烦的地方。 希望您是 64 位本机(因此有足够的地址空间)并且有大量 RAM 和/或交换。
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.
如果本机代码发生崩溃,那么 gdb 可能是更好的选择。
它甚至应该在崩溃时自动停止执行,并可能向您显示堆栈跟踪(命令bt)。
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).