[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 130510] New: kdevelop freezes when source has a line with many
From:       enrique <eturegano () gmail ! com>
Date:       2006-07-09 10:24:22
Message-ID: 20060709122420.130510.eturegano () gmail ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=130510         
           Summary: kdevelop freezes when source has a line with many "&&"
           Product: kdevelop
           Version: 3.2.2
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: eturegano gmail com


Version:           3.2.2 (using KDE 3.5.1, Debian Package 4:3.5.1-4 \
                (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.11-1-686

I've tried this on 3.3.2 and 3.2.2 versions:

When you have the following c++ line:
<code>
if(
centro < gaux[i+2+WIDTH*j] &&
centro < gaux[i-2+WIDTH*j] &&
centro < gaux[i+WIDTH*(j+2)] &&
centro < gaux[i+WIDTH*(j-2)] &&

centro < gaux[i+1+WIDTH*j] &&
centro < gaux[i-1+WIDTH*j] &&
centro < gaux[i+WIDTH*(j+1)] &&
centro < gaux[i+WIDTH*(j-1)] &&

centro < gaux[i+1+WIDTH*(j+1)] &&
centro < gaux[i-1+WIDTH*(j+1)] &&
centro < gaux[i+1+WIDTH*(j-1)] &&
centro < gaux[i-1+WIDTH*(j-1)] &&
centro < 128
)
aux[i-1+WIDTH*(j-1)]=0;
</code>

in a .cpp file from a project and you try to close the tab in which the file with the \
line is, kdevelop freezes for 2 minutes (it depends on your processor cpu). Any \
operation like compile, open that tab, open the project will freeze it too.

The number of subconditions in the "if" is proporcional to the time it hangs up. If \
you add another "centro < gaux[i-1+WIDTH*(j-1)] &&" it will freeze longer.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic