2

有时当我运行某些东西时,日食会说一件奇怪的事情:

eclipse(1414,0x113f48000) malloc: *** error for object 0x60000284c0f0: Heap corruption
detected, free list canary is damaged
*** set a breakpoint in malloc_error_break to debug

我在网上搜索了这个错误,但什么也没出现,我不明白如何解决这个问题

我在用:

Eclipse Java EE IDE for Web Developers.
Version: Juno Service Release 2
Build id: 20130225-0426

与 OSX

这与代码无关,它只是在我运行 java 程序或 junit 或服务器时发生,与代码本身无关

4

2 回答 2

1

It looks like a corruption in the native heap while Eclipse is running. (The mention of "malloc" is the clue ...)

AFAIK, there is no easy answer ... unless you can track down similar problem reports. Without that, it is not possible to say what specifically is causing this, but the most likely explanation is some bug in one of the native libraries that Eclipse is using.

I'd recommend the following:

  • See if the normal restart / reinitialization tricks make any difference.

  • Install a fresh copy of Juno release 2, adding your plugins and seeing if that makes any difference.

  • Try again, but this time with as few plugins as you can bear.

If at any point you are confident that you have scenario that allows you to reproduce the problem AND reproduce the Eclipse setup, submit a bug report.


One should not entirely discount the possibility that you've installed a corrupted Eclipse download, something has corrupted your copy on disc or you have a hardware fault (a bad memory chip, flaky CPU, etc)

于 2013-06-23T12:38:39.477 回答
0

我认为这个问题是由于 Eclipse 内存不足。

我通过增加 eclipse.ini 中的 Java 内存设置来解决这个问题: Optimizing Eclipse for Android development

于 2013-06-28T18:45:25.873 回答