Bug 333227 - Oracle Java 6 update 23 crashes when running Eclipse CDT (64-bit version of CDT & JRE) [see comment 7 for workaround]
Summary: Oracle Java 6 update 23 crashes when running Eclipse CDT (64-bit version of C...
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: PC All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 264919 333330 335401 335449 336311 337419 337952 338071 338165 338513 339010 339017 339244 339338 339423 340289 342368 342544 342801 342803 343126 345190 345711 346849 347400 350401 350512 351234 360134 360377 361765 374624 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-27 03:25 EST by Alexander Bychkov CLA
Modified: 2015-03-31 11:57 EDT (History)
44 users (show)

See Also:


Attachments
Log file for crash on CentOS 5.3 (76.73 KB, text/plain)
2010-12-27 11:03 EST, Gabriel Sjoberg CLA
no flags Details
A crash on my Linux Ubuntu 10.10 64bit (102.26 KB, text/plain)
2011-04-01 09:31 EDT, Shahar Hadas CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bychkov CLA 2010-12-27 03:25:16 EST
Build Identifier:  20100917-0705

CDT (64-bit edition) after undefined short time-out crashes when I try to use Oracle Java 6 update 23 (64-bit). In any situation with CDT (edit source, build and etc.) it crashes with error message that it can't find some files in JRE. With Oracle Java 6 update 22 all works fine! This problem are the same in the different computers with MS Windows 7 (64-bit, Corporate Edition).

Reproducible: Always

Steps to Reproduce:
1.Install Oracle Java 6 update 23.
2.Open Eclipse CDT.
3.Try edit sources or rebuild projects.
Comment 1 Gabriel Sjoberg CLA 2010-12-27 10:59:15 EST
I can confirm that this bug also occurs with Oracle Java 6u23 on CentOS 5.3 (64-bit).
Comment 2 Gabriel Sjoberg CLA 2010-12-27 11:03:56 EST
Created attachment 185845 [details]
Log file for crash on CentOS 5.3

Here's a crash log from 64-bit CentOS 5.3 with Oracle Java 6u23 (also 64-bit).
Comment 3 Andrew Gvozdev CLA 2010-12-28 10:14:33 EST
I am not sure if it has anything to do with CDT or it is JVM bug but the log points to
> # Problematic frame:
> # J  org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTFunctionDeclarator.postAccept(Lorg/eclipse/cdt/core/dom/ast/ASTVisitor;)Z
Should somebody take a look at the parser code just in case?
Comment 4 Markus Schorn CLA 2010-12-28 10:41:16 EST
The vm crashes while executing code generated by the jit-compiler. That is not CDT's fault. From the log file written it looks like the JVM is low on perm-space, so you might get around the issue by increasing the max perm size.
Comment 5 James Blackburn CLA 2010-12-30 08:55:46 EST
*** Bug 333330 has been marked as a duplicate of this bug. ***
Comment 6 Tim CLA 2011-01-14 09:04:14 EST
I to am having this problem, my error log is reporting the following log header (other information left out for brevity, provided on request):

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000260d16e, pid=3816, tid=2676
#
# JRE version: 6.0_23-b05
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.0-b09 mixed mode windows-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+15
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

I'm running Windows 7 64-bit in a Parallels Boot Camp VM on Mac OSX 10.6.6. I've yet to reboot properly into the partition to check if the error still occurs. But from what I see here it looks like it doesn't have anything to do with Parallels.

The crash occurs when I try and add a linked directory to one of my projects, the directory contains a C++ source and header files. The parser automatically kicks in and then the crash happens at an arbitrary time soon after.

Let me know if I can help with the resolution in any way.

Tim
Comment 7 Marc-André Laperle CLA 2011-01-14 12:13:52 EST
I think this can be worked around by adding
-XX:-UseCompressedOops
to eclipse.ini
Comment 8 Anton Leherbauer CLA 2011-01-17 09:30:51 EST
This could be another JIT compiler bug similar to http://bugs.sun.com/view_bug.do?bug_id=6614100.
To disable the JIT compiler add -Xint to the vmargs in eclipse.ini.
To exclude only the problematic method from JIT compilation, use
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTFunctionDeclarator,postAccept
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics,declaredBefore
Comment 9 Tim CLA 2011-01-17 12:40:38 EST
Marc-Andre your workaround got things going, thanks. Anton, I'll test your workaround and post the result.

Thanks again.

Tim
Comment 10 Anton Leherbauer CLA 2011-01-21 06:55:56 EST
I think Marc-Andre's workaround is the best choice. See also http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7002666.
Comment 11 Paul Hilton CLA 2011-01-25 19:08:51 EST
*** Bug 335401 has been marked as a duplicate of this bug. ***
Comment 12 James Blackburn CLA 2011-01-26 10:05:49 EST
*** Bug 335449 has been marked as a duplicate of this bug. ***
Comment 13 James Blackburn CLA 2011-02-04 03:07:46 EST
*** Bug 336311 has been marked as a duplicate of this bug. ***
Comment 14 Joseph Remes CLA 2011-02-08 11:21:03 EST
I am experiencing the exact same problem. Marc-Andre's suggestion seems to
have solved it. Thanks!
Comment 15 Anton Leherbauer CLA 2011-02-17 07:15:04 EST
*** Bug 337419 has been marked as a duplicate of this bug. ***
Comment 16 James Blackburn CLA 2011-02-23 05:26:41 EST
*** Bug 337952 has been marked as a duplicate of this bug. ***
Comment 17 Anton Leherbauer CLA 2011-02-24 08:04:51 EST
*** Bug 338071 has been marked as a duplicate of this bug. ***
Comment 18 James Blackburn CLA 2011-02-24 18:56:09 EST
*** Bug 338165 has been marked as a duplicate of this bug. ***
Comment 19 James Blackburn CLA 2011-03-02 04:30:00 EST
*** Bug 338513 has been marked as a duplicate of this bug. ***
Comment 20 Massimo CLA 2011-03-02 04:36:29 EST
Hi,
version 6u24 64bit crashes as well.
I solved by using openjdk.
Comment 21 Abhirav Kushwaha CLA 2011-03-05 16:08:24 EST
I was experiencing Eclipse crash issue for quite some time. Marc-Andre Laperle suggestion worked for me.

Thank you very much.
Comment 22 Andrew Gvozdev CLA 2011-03-05 18:34:32 EST
*** Bug 339017 has been marked as a duplicate of this bug. ***
Comment 23 Sergey Prigogin CLA 2011-03-05 21:06:59 EST
*** Bug 339010 has been marked as a duplicate of this bug. ***
Comment 24 James Blackburn CLA 2011-03-08 11:27:00 EST
*** Bug 339244 has been marked as a duplicate of this bug. ***
Comment 25 James Blackburn CLA 2011-03-09 07:17:29 EST
*** Bug 339338 has been marked as a duplicate of this bug. ***
Comment 26 James Blackburn CLA 2011-03-09 16:32:31 EST
*** Bug 339423 has been marked as a duplicate of this bug. ***
Comment 27 James Blackburn CLA 2011-03-17 05:48:28 EDT
*** Bug 340289 has been marked as a duplicate of this bug. ***
Comment 28 Andrew Gvozdev CLA 2011-03-28 00:18:18 EDT
*** Bug 264919 has been marked as a duplicate of this bug. ***
Comment 29 Shahar Hadas CLA 2011-04-01 09:31:06 EDT
Created attachment 192358 [details]
A crash on my Linux Ubuntu 10.10 64bit

Trying to index FreeSwitch latest git Makefile.

Have 5 more log files if needed
Comment 30 Marc-André Laperle CLA 2011-04-01 09:48:27 EDT
(In reply to comment #29)
> Created attachment 192358 [details]
> A crash on my Linux Ubuntu 10.10 64bit
> 
> Trying to index FreeSwitch latest git Makefile.
> 
> Have 5 more log files if needed

Thanks but it's not a bug in CDT :) See comment 7 for workaround.
Comment 31 Anton Leherbauer CLA 2011-04-11 04:26:33 EDT
*** Bug 342368 has been marked as a duplicate of this bug. ***
Comment 32 Markus Schorn CLA 2011-04-12 08:44:12 EDT
*** Bug 342544 has been marked as a duplicate of this bug. ***
Comment 33 James Blackburn CLA 2011-04-14 04:33:32 EDT
*** Bug 342801 has been marked as a duplicate of this bug. ***
Comment 34 James Blackburn CLA 2011-04-14 04:42:43 EDT
*** Bug 342803 has been marked as a duplicate of this bug. ***
Comment 35 Markus Schorn CLA 2011-04-18 07:46:39 EDT
*** Bug 343126 has been marked as a duplicate of this bug. ***
Comment 36 Enriquevagu CLA 2011-04-25 06:35:31 EDT
Java 6u25 (see http://www.oracle.com/technetwork/java/javase/downloads/index.html) solves the problem for me, under Windows x64
Comment 37 Andrew Gvozdev CLA 2011-05-10 00:17:32 EDT
*** Bug 345190 has been marked as a duplicate of this bug. ***
Comment 38 Markus Schorn CLA 2011-05-13 06:19:05 EDT
*** Bug 345711 has been marked as a duplicate of this bug. ***
Comment 39 Anton Leherbauer CLA 2011-05-23 09:41:52 EDT
*** Bug 346849 has been marked as a duplicate of this bug. ***
Comment 40 cooper CLA 2011-05-24 21:14:40 EDT
Java 6u25 as suggested by Enriquevagu also worked for me. Should we mark this as fixed then?
Comment 41 Marc-André Laperle CLA 2011-05-24 22:38:51 EDT
(In reply to comment #40)
> Java 6u25 as suggested by Enriquevagu also worked for me. Should we mark this
> as fixed then?

I don't think it should be marked as fixed. This is not a Eclipse/CDT problem and it is already marked as Resolved/Not Eclipse.
Comment 42 Anton Leherbauer CLA 2011-05-27 03:51:48 EDT
*** Bug 347400 has been marked as a duplicate of this bug. ***
Comment 43 Marc-André Laperle CLA 2011-06-27 15:59:04 EDT
*** Bug 350401 has been marked as a duplicate of this bug. ***
Comment 44 Marc-André Laperle CLA 2011-06-28 19:32:45 EDT
*** Bug 350512 has been marked as a duplicate of this bug. ***
Comment 45 Marc-André Laperle CLA 2011-07-05 23:52:23 EDT
*** Bug 351234 has been marked as a duplicate of this bug. ***
Comment 46 Doug Schaefer CLA 2011-08-26 15:52:41 EDT
Made the title more accurate :)
Comment 47 Marc-André Laperle CLA 2011-10-06 12:55:14 EDT
*** Bug 360134 has been marked as a duplicate of this bug. ***
Comment 48 craigoliveira CLA 2011-10-11 19:59:06 EDT
*** Bug 360377 has been marked as a duplicate of this bug. ***
Comment 49 Anton Leherbauer CLA 2011-10-24 08:11:48 EDT
*** Bug 361765 has been marked as a duplicate of this bug. ***
Comment 50 Missing name CLA 2011-10-24 13:23:12 EDT
Where do I add the work around in eclpise.ini? I tried adding it to the end and now it says that it cannot create Java VM.... help!?
Comment 51 Joseph Remes CLA 2011-10-24 13:43:35 EDT
To neinome@gmail.com, 

First I would recommend getting a newer release of Java. This bug in the JVM has been fixed.
I put the -XX:-UseCompressedOops option on my eclipse command line, worked perfectly. But I have since removed it as it is no longer necessary.
Comment 52 Marc-André Laperle CLA 2012-03-19 10:40:05 EDT
*** Bug 374624 has been marked as a duplicate of this bug. ***
Comment 53 Dongseong Hwang CLA 2015-03-31 11:57:41 EDT
*** Bug 463563 has been marked as a duplicate of this bug. ***