Bug 463563 - CDT Parsers cause eclipse crash during indexing
Summary: CDT Parsers cause eclipse crash during indexing
Status: REOPENED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-31 05:36 EDT by Dongseong Hwang CLA
Modified: 2020-09-04 15:22 EDT (History)
2 users (show)

See Also:


Attachments
core dump (134.33 KB, text/x-log)
2015-03-31 05:36 EDT, Dongseong Hwang CLA
no flags Details
another crash (129.91 KB, text/x-log)
2015-03-31 12:18 EDT, Dongseong Hwang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dongseong Hwang CLA 2015-03-31 05:36:56 EDT
Created attachment 252031 [details]
core dump

When indexing large project, Eclipse crash on Ubuntu 14.10 with both oracle jdk 1.8, openjdk 1.7 and openjdk 1.8

Crash log in stdout;
java.lang.InterruptedException
	at java.lang.Object.wait(Native Method)
	at org.eclipse.core.internal.jobs.Semaphore.acquire(Semaphore.java:39)
	at org.eclipse.core.internal.jobs.JobManager.join(JobManager.java:861)
	at org.eclipse.core.internal.jobs.InternalJob.join(InternalJob.java:384)
	at org.eclipse.core.runtime.jobs.Job.join(Job.java:420)
	at org.eclipse.linuxtools.internal.cdt.libhover.LibHover.getFunctionInfo(LibHover.java:388)
	at org.eclipse.cdt.internal.ui.text.CHelpSettings.getFunctionInfo(CHelpSettings.java:121)
	at org.eclipse.cdt.internal.ui.CHelpProviderManager.getFunctionInfo(CHelpProviderManager.java:163)
	at org.eclipse.cdt.internal.ui.text.c.hover.CDocHover.getHoverInfo(CDocHover.java:81)
	at org.eclipse.cdt.internal.ui.text.c.hover.AbstractCEditorTextHover.getHoverInfo2(AbstractCEditorTextHover.java:84)
	at org.eclipse.cdt.internal.ui.text.c.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:144)
	at org.eclipse.cdt.internal.ui.text.c.hover.CEditorTextHoverProxy.getHoverInfo2(CEditorTextHoverProxy.java:84)
	at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f7660f8835c, pid=19408, tid=140145627846400
#
# JRE version: Java(TM) SE Runtime Environment (8.0_40-b25) (build 1.8.0_40-b25)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J 29151 C2 org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTDeclarator.accept(Lorg/eclipse/cdt/core/dom/ast/ASTVisitor;)Z (254 bytes) @ 0x00007f7660f8835c [0x00007f7660f87660+0xcfc]

Refer to dump file for more detail
Comment 1 Marc-André Laperle CLA 2015-03-31 11:05:10 EDT
Looks like a bug in Java. Can you try the workaround mentioned in bug 333227 comment 7 ?
Comment 2 Dongseong Hwang CLA 2015-03-31 11:57:41 EDT
thx for workaround

*** This bug has been marked as a duplicate of bug 333227 ***
Comment 3 Dongseong Hwang CLA 2015-03-31 12:18:56 EDT
Created attachment 252047 [details]
another crash

After -XX:-UseCompressedOops to eclipse.ini workaround, another reason still causes crash

[libjvm.so+0x976fdd]  oopDesc* PSPromotionManager::copy_to_survivor_space<false>(oopDesc*)+0x4d
[libjvm.so+0x976978]  PSPromotionManager::drain_stacks_depth(bool)+0x808
[libjvm.so+0x3f8c4e]  CardTableExtension::scavenge_contents_parallel(ObjectStartArray*, MutableSpace*, HeapWord*, PSPromotionManager*, unsigned int, unsigned int)+0xafe
[libjvm.so+0x97a25b]  OldToYoungRootsTask::do_it(GCTaskManager*, unsigned int)+0x4b
[libjvm.so+0x5cabaf]  GCTaskThread::run()+0x12f
[libjvm.so+0x910ee8]  java_start(Thread*)+0x108

refer to attached file for more detail
Comment 4 Dongseong Hwang CLA 2015-03-31 12:19:53 EDT
reopen
Comment 5 Marc-André Laperle CLA 2015-03-31 12:23:45 EDT
Do you have sample code that causes the crash that could be attached? In the end, it's probably better to open a bug against openjdk though.