Bug 454309

Summary: Hangs and consumes 100% when shutting down
Product: [Applications] kdevelop Reporter: Aaron Williams <aaronw>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: igorkuo
Priority: NOR    
Version: 5.8.220401   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Backtrace of all threads when in this condition

Description Aaron Williams 2022-05-24 06:09:34 UTC
Created attachment 149155 [details]
Backtrace of all threads when in this condition

SUMMARY
Every time I shut down kdevelop, either by logging out, file->quit, or any other method the process becomes stuck consuming 100% of the CPU. The process will never terminate unless kill -9 is applied. Even logging out of the X session does not kill it. It does this with all of my various sessions. Clearing the cache does not help either.

This has been going on for some time.

Here is the stacktrace:

STEPS TO REPRODUCE
1.  Start develop with a project
2. quit
3. 

OBSERVED RESULT
I observe kdevelop getting stuck trying to exit like it's in an endless loop. I do not see this behavior with other KDE applications.

It never exits from KDevelop::Bucket<KDevelop::AbstractTypeData, KDevelop::AbstractTypeDataRequest, true, 0u>::deleteItem<KDevelop::ItemRepository<KDevelop::AbstractTypeData, KDevelop::AbstractTypeDataRequest, true, true, 0u, 1048576u> > (repository=..., hash=<optimized out>, index=29676, this=0x55850f6084f0) at /usr/src/debug/kdevelop5-22.04.1-lp153.19.1.x86_64/kdevplatform/serialization/itemrepository.h:525

When stepping through the code, index is set to 29676 but currentIndex is always zero which indicates that the assert in deleteItem in itemrepository.h around line 527 should trigger.

It might make sense to bail out of currentIndex is 0.
EXPECTED RESULT
I expect kdevelop to shut down cleanly

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version:  5.94.0
Qt Version:  5.15.2

ADDITIONAL INFORMATION
Comment 1 Igor Kushnir 2022-05-24 08:28:58 UTC

*** This bug has been marked as a duplicate of bug 379669 ***