Bug 106949 - infinite directory recursion when adding custom code completion database
Summary: infinite directory recursion when adding custom code completion database
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.2.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 107620 109309 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-07 12:00 UTC by Samuel Scharrer
Modified: 2008-07-05 23:17 UTC (History)
2 users (show)

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 Samuel Scharrer 2005-06-07 12:00:45 UTC
Version:           3.2.1 (using KDE KDE 3.4.1)
Installed from:    Gentoo Packages
Compiler:          gcc-3.4.4 
OS:                Linux

__Description:
When adding a custom code completion database for a project from an include folder, one specifies "Recursive" and the folder contains a symbolic link to itself, then the folder seems to be recursed over and over ad infinitum.
This happened to me when I tried to import the directory "/usr/include/GL/", which for some reason contained a symbolic link "/usr/include/GL/GL -> /usr/include//GL"

__Symptoms:
CPU, memory & swap usage go to pretty much 100%.
the progress bar and thus the whole dialog window keeps getting wider and wider... pretty weird-looking effect... ;-)

__Exact steps to reproduce the bug:
go to "Project" Menu
-> "Project Options"
-> "C++ Specific"
-> "Code Completion"
-> "Add..."
select "Custom Directory PCS Importer"
-> "Next"
add a directory containing a self-referencing symbolic link
select "Recursive" check-box
-> "Next"
Comment 1 Amilcar do Carmo Lucas 2005-07-19 13:30:28 UTC
*** Bug 109309 has been marked as a duplicate of this bug. ***
Comment 2 Jens Dagerbo 2006-12-31 15:44:06 UTC
Crossref bug #103297

Same problem, different code. I doubt we handle detection of cyclic links anywhere...
Comment 3 Andreas Pakulat 2007-01-14 03:57:44 UTC
*** Bug 107620 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Pakulat 2008-07-05 23:17:19 UTC
can't reproduce with recent kdevelop3 versions.