Bug 54203 - OUT OF MEMORY: loading project causes attempt to parse $HOME as project
Summary: OUT OF MEMORY: loading project causes attempt to parse $HOME as project
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-06 13:16 UTC by Will Stephenson
Modified: 2013-03-31 00:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Stephenson 2003-02-06 13:16:13 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2 
OS:          Linux

hi guys.  I've just tried to load the kopete.kdevelop from our CVS, after another developer has been using it, so the project file is full of his paths.  Normally this works for me.  Note the file is a clean checkout, not resulting from a CVS merge, so it should be the legal project file that the other developer's gideon wrote.  

What happened was that instead of parsing the project files as normal, or giving an error that paths in the project file could not be found, gideon started parsing my entire $HOME, and traversed into my 10Gb mp3 partition.  Gideon started 'parsing' those and my entire system ground to a halt: OOM. 

This is unsafe behaviour and should be guarded against.

The offending project and session files are at 
http://www.cs.ncl.ac.uk/old/people/william.stephenson/home.informal/kopete.kdevelop
http://www.cs.ncl.ac.uk/old/people/william.stephenson/home.informal/kopete.kdevses
Comment 1 Harald Fernengel 2003-02-06 15:57:40 UTC
Please not that *.kdevses files should never go into CVS because they store the 
user's current session only. 
Can you remember the status message you got while parsing? Was KDevelop trying 
to build the persistant classstore out of your $HOME or a documentation index? 
Comment 2 Eray Ozkural 2003-02-27 14:31:51 UTC
need more info, but surely this could be more user-proof :) 
 
Comment 3 Will Stephenson 2003-02-27 18:21:36 UTC
Harald: 
 
Not sure how to tell what was happening.  I haven't seen it since.  It's whatever class 
flyout on the left side of the UI is called, as it happened when the project was being 
opened, and when the files are being parsed you can't expand the class tree there.  
The status message was "Currently parsing: blah/blah/blah.cpp".   
 
The .kdevses was not in cvs, it was the one I had hanging around locally from my last 
session. 
 
Eray:  
What other info can I provide?  You could checkout kdenonbeta/kopete 
-r'the-time-of-the-first-report'. 
 
regards 
 
Will 
Comment 4 Amilcar do Carmo Lucas 2003-05-13 14:19:19 UTC
Solved by Roberto Raggi 
Comment 5 Aleix Pol 2013-03-31 00:48:10 UTC
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively