Ubuntu 11.04 下的 Eclipse Helios CDT 每次启动时都会崩溃:“致命错误... SIGSEGV”

发布于 2024-11-16 05:30:59 字数 1124 浏览 1 评论 0原文

有人可以帮我解决这个问题吗,我几天前才开始使用 Eclipse。我用谷歌搜索了这个问题,我看到其他人也有同样的“SIGSERV”崩溃,但我没有找到解决它的方法。

Ubuntu 11.04 下的 Eclipse Helios CDT 每次启动后几秒钟内就会崩溃。在我清除复选框后,它开始发生:索引未包含在项目中的源文件。

下面是错误日志。由于篇幅太长,所以我只贴了上面的部分。

谢谢!!

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff5ccc6cc8b, pid=22977, tid=140693409957632
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J  org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPSemantics.declaredBefore(Ljava/lang/Object;Lorg/eclipse/cdt/core/dom/ast/IASTNode;Z)Z
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

- - - - - - - - 线 - - - - - - - -

当前线程(0x00000000416bd000): JavaThread“Worker-7” [_thread_in_Java,id=23044, 堆栈(0x00007ff5bca90000,0x00007ff5bcb91000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1(SEGV_MAPERR), si_addr=0x000000000165657a

Could someone help me with this, I started using Eclipse only few days ago. I did google this problem, I see other people had the same "SIGSERV" crash but I did not find the way to fix it.

Eclipse Helios CDT under Ubuntu 11.04 crashes every time within a few seconds after I start it. It started happening after I cleared the check box: Index source files that are not included in the project.

Below is the error log. It's very long so I posted only the top part it.

THX!!

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff5ccc6cc8b, pid=22977, tid=140693409957632
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J  org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPSemantics.declaredBefore(Ljava/lang/Object;Lorg/eclipse/cdt/core/dom/ast/IASTNode;Z)Z
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x00000000416bd000):
JavaThread "Worker-7"
[_thread_in_Java, id=23044,
stack(0x00007ff5bca90000,0x00007ff5bcb91000)]

siginfo:si_signo=SIGSEGV: si_errno=0,
si_code=1 (SEGV_MAPERR),
si_addr=0x000000000165657a

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回眸一遍 2024-11-23 05:30:59

可能有几件事,你可以尝试一下我的学生(Michael Rueegg)在他的硕士项目中发现的内容:

“在我们的 CI 环境上更新 Ubuntu 系统后,我们经常注意到由 JVM 的分段错误引起的单元测试损坏更新包括新的 JRE 版本 1.6.0_24。
CDT bugzilla 条目部分描述了此问题的原因
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333227
建议的解决方案是使用名为 UseCompressedOops 的 HotSpot 选项。 Oops 代表“普通对象指针”,与 HotSpot [Joh09] 中的托管指针相等。此选项的目的是通过在可能的情况下将 64 位指针编码为 32 位来减少 64 位 JVM 的内存使用量 [Joh09]。”

[Joh09]
约翰·罗斯. CompressedOops - OpenJDK 的 HotSpot 内部结构.万维网,http://wikis.sun.com/display/HotSpotInternals/CompressedOops ,2009 年。访问时间:2011 年 6 月 12 日。

could be several things, you might try out what of my students (Michael Rueegg) figured out during his master's project:

"After an Ubuntu system update on our CI environment, we regularly noticed broken unit tests which were caused by segmentation faults of the JVM. The update included the new JRE version 1.6.0_24.
The reason for this issue is partially described in the CDT bugzilla entry
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333227 .
The proposed solution is to use a HotSpot option called UseCompressedOops. Oops stands for “ordinary object pointer” and is the equality of a managed pointer in HotSpot [Joh09]. This option is intended to reduce the memory usage of a 64-bit JVM by — among other provisions — encoding 64-bit pointers into 32-bits where possible [Joh09]."

[Joh09]
John Rose. CompressedOops - HotSpot Internals for OpenJDK. World Wide Web, http://wikis.sun.com/display/HotSpotInternals/CompressedOops , 2009. Accessed: 12.06.2011.

山川志 2024-11-23 05:30:59

您好,我在使用 CDT 的 Eclipse Indigo 时遇到了类似的问题
我从这里得到了解决方案
http://www.eclipse.org/forums/index.php/m/ 664268/

将以下行添加到您的 eclipse.ini 文件中

-XX:-UseCompressedOops

Hi I had a similar problem with Eclipse Indigo with CDT
I got the solution from here
http://www.eclipse.org/forums/index.php/m/664268/

add the following line to your eclipse.ini file

-XX:-UseCompressedOops
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文