Bug 454309 - Hangs and consumes 100% when shutting down
Summary: Hangs and consumes 100% when shutting down
Status: RESOLVED DUPLICATE of bug 379669
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.8.220401
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-24 06:09 UTC by Aaron Williams
Modified: 2022-05-24 08:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Backtrace of all threads when in this condition (254.59 KB, text/plain)
2022-05-24 06:09 UTC, Aaron Williams
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***