Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362402

Summary: java.lang.StackOverflowError when opening C++ project
Product: [Tools] CDT Reporter: vagran <vagran.ast>
Component: cdt-parserAssignee: Project Inbox <cdt-parser-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: critical    
Priority: P3 CC: cdtdoug, vagran.ast
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Error log none

Description vagran CLA 2011-10-29 10:47:17 EDT
Build Identifier: Build id: 20110916-0149

I have error "Internal error: java.lang.StackOverflowError" every time I open my C++ project or type any character in a specific C++ source file. From Java backtrace it is seen that there is an infinite recursion of org.eclipse.cdt.internal.core.dom.parser.cpp.ClassTypeHelper.collectPureVirtualMethods(ClassTypeHelper.java:856) method (error log will be attached).

Reproducible: Always

Steps to Reproduce:
1. Create CDT C++ project from the commit 2ac6debdd5acd2c63ddd7bdb0ba53d04017a1609 in this Git repository: git://ast-phoenix.git.sourceforge.net/gitroot/ast-phoenix/ast-phoenix
2. Open file phoenix/include/log.h in C++ editor (Probably KERNEL macro must be defined in project setting to reproduce the error).
3. Eclipse will report exception immediately or after something is changed in the file.
Comment 1 vagran CLA 2011-10-29 10:48:13 EDT
Created attachment 206165 [details]
Error log

Error log attached.
Comment 2 Markus Schorn CLA 2011-10-31 10:19:19 EDT

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