Bug 579371 - Indexer hanged while parsing .C file
Summary: Indexer hanged while parsing .C file
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 10.6.0   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: 2022-03-22 13:17 EDT by Avinash Sonawane CLA
Modified: 2022-03-22 22:37 EDT (History)
2 users (show)

See Also:


Attachments
source file causing the hang (240 bytes, text/x-c++src)
2022-03-22 13:17 EDT, Avinash Sonawane CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Avinash Sonawane CLA 2022-03-22 13:17:03 EDT
Created attachment 288267 [details]
source file causing the hang

Hello!

I'm using Eclipse Version: 2022-03 (4.23.0) on Ubuntu 21.10.

I'm trying to index project `gcc` (git://gcc.gnu.org/git/gcc.git)

But CDT indexer hangs while parsing /gcc/gcc/testsuite/g++.dg/cpp0x/pr32126.C (http://gcc.gnu.org/git/?p=gcc.git;a=blob_plain;f=gcc/testsuite/g%2B%2B.dg/cpp0x/pr32126.C;hb=HEAD) file.

It stuck at 65% for the last 5-6 hours. Yesterday I got "heap-full" or something error while parsing the same file. (Sorry, I don't remember the exact error from yesterday but Eclipse asked me whether I wanted to close the workspace)

Please find the attached file.

Thanks!
Comment 1 Avinash Sonawane CLA 2022-03-22 22:37:06 EDT
Indexer just finished processing that file and it took 14+ hours!

```
Indexer: parsing /gcc/gcc/testsuite/g++.dg/cpp0x/pr32126.C
Indexer: adding file:/home/rootkea/Downloads/todo/hacking/gcc/gcc/testsuite/g++.dg/cpp0x/pr32126.C
Indexer: processed /gcc/gcc/testsuite/g++.dg/cpp0x/pr32126.C [51340921 ms]
```