Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340289 - JVM crash after creating example C++ project
Summary: JVM crash after creating example C++ project
Status: RESOLVED DUPLICATE of bug 333227
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-17 05:42 EDT by Markus Knauer CLA
Modified: 2011-03-17 05:48 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Knauer CLA 2011-03-17 05:42:29 EDT
I saw this crash happen for the first time in the Indigo M6 EPP package, but then I downloaded the M5 version and were able to reproduce it there too.

Environment is a Ubuntu 10.4 64-bit with a 1.6.0_24 64-bit JVM and a g++ (Ubuntu 4.4.3-4ubuntu5).

If you start with a fresh copy of the above package and with an empty workspace, I could reproduce this error several times by

1 File > New > C++ Project
2 Choose 'Hello World C++ Project', give it a name, press next...
3 Wait until the editor opens and the indexer runs...
4 See Eclipse disappear and look at the crash



!SESSION 2011-03-17 10:28:53.924 -----------------------------------------------
eclipse.buildId=I20110127-2034
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product -consoleLog

!ENTRY org.eclipse.core.resources 2 10035 2011-03-17 10:29:00.086
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fdd437c0bd6, pid=11320, tid=140588043544320
#
# 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.CPPASTFunctionDeclarator.postAccept(Lorg/eclipse/cdt/core/dom/ast/ASTVisitor;)Z+14
#
# An error report file with more information is saved as:
# /tmp/eclipse/hs_err_pid11320.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Comment 1 James Blackburn CLA 2011-03-17 05:48:28 EDT
It's a JVM bug, unfortunately the fix appears to have gone into Java 7 and not Java 6u2X...

*** This bug has been marked as a duplicate of bug 333227 ***