Bug 355854

Summary: KDevelop hangs on move over certain words
Product: [Applications] kdevelop Reporter: rjwgnr27
Component: All editorsAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: 4.7.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 4.7.3
Sentry Crash Report:
Attachments: Output of GDB "thread apply all bt"

Description rjwgnr27 2015-11-24 18:36:59 UTC
Version 4.7.2, Fedora Linux (x86_64) release 4.1.8-100.fc21.x86_64

This was originally reported in Bug 355094; it was requested I open this as a separate issue.

I have a large, mostly C, project. When I move the cursor on to the word "bool" or "true" or "false", even if the mouse ust passes over it, KDevelop will hang, consuming CPU. This is old code, and likely there are multiple definitions of these types/values within the project. It does not matter the context of the usage: as the type of a function definition ("bool fn() {}"); as a literal in assignment ("var = true;"); etc.

This appears to be a regression from 4.7.1 to 4.7.2, as this just started happening with the upgrade to 4.7.2.


Reproducible: Always

Steps to Reproduce:
In a C module, move the cursor or mouse over a word with many usages (and possibly multiple definitions), such as "bool" or "true".



Actual Results:  
KDevelop will hang, consuming 100% of a CPU core.

Expected Results:  
Context pop-up; not hang.
Comment 1 rjwgnr27 2015-11-24 18:39:45 UTC
Created attachment 95702 [details]
Output of GDB "thread apply all bt"
Comment 2 Kevin Funk 2015-11-24 20:00:27 UTC
This is likely fixed by:

commit c8ff6a6cefbd9122b74fb048c37b2fc17a7e0a08
Author: Zhang HuiJie <yitianbuji@gmail.com>
Date:   Tue Oct 20 20:04:54 2015 +0800

    fix definite loop.
    
    see  https://git.reviewboard.kde.org/r/125684/