Bug 488043 - KDevelop crashed when loading a KDevGenericManager project
Summary: KDevelop crashed when loading a KDevGenericManager project
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: OpenMandriva Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-06-05 01:03 UTC by Davide Beatrici
Modified: 2024-06-06 12:34 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (194.61 KB, text/plain)
2024-06-05 01:03 UTC, Davide Beatrici
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Beatrici 2024-06-05 01:03:47 UTC
Application: kdevelop (5.14.240500 (24.05.0))

Qt Version: 6.7.1
Frameworks Version: 6.2.0
Operating System: Linux 6.9.1-desktop-1omv2490 x86_64
Windowing System: X11
Distribution: "OpenMandriva Lx 24.06"
DrKonqi: 6.0.5 [CoredumpBackend]

-- Information about the crash:
The crash happened almost immediately. Upon restarting the program, I chose to delete the cache and then I opened the project again, which was loaded just fine.

The crash can be reproduced sometimes.

-- Backtrace (Reduced):
#5  0x00007fbd5c8e7476 in std::__fill_a1<unsigned short*, int> (__first=0x7fbd1690d33e, __last=0x7fbd1690ecd8, __value=<optimized out>) at /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/14.1.0/../../../../include/c++/14.1.0/bits/stl_algobase.h:952
#6  std::__fill_a<unsigned short*, int> (__first=0x7fbd1690d33e, __last=0x7fbd1690ecd8, __value=<optimized out>) at /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/14.1.0/../../../../include/c++/14.1.0/bits/stl_algobase.h:998
#7  std::__fill_n_a<unsigned short*, int, int> (__first=0x7fbd1690d33e, __n=3277, __value=<optimized out>) at /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/14.1.0/../../../../include/c++/14.1.0/bits/stl_algobase.h:1151
#8  std::fill_n<unsigned short*, KDevelop::Bucket<KDevelop::CodeModelRepositoryItem, KDevelop::CodeModelRequestItem, true, 0u>::{unnamed type#3}, int>(KDevelop::Bucket<KDevelop::CodeModelRepositoryItem, KDevelop::CodeModelRequestItem, true, 0u>::{unnamed type#3}, KDevelop::Bucket<KDevelop::CodeModelRepositoryItem, KDevelop::CodeModelRequestItem, true, 0u>::{unnamed type#3}, int const&) (__first=0x7fbd1690d33e, __n=KDevelop::Bucket<KDevelop::CodeModelRepositoryItem, KDevelop::CodeModelRequestItem, true, 0u>::NextBucketHashSize, __value=<optimized out>) at /usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/14.1.0/../../../../include/c++/14.1.0/bits/stl_algobase.h:1180
#9  KDevelop::Bucket<KDevelop::CodeModelRepositoryItem, KDevelop::CodeModelRequestItem, true, 0u>::takeNextBucketHash (this=0x7fbbcc1d0560) at /usr/src/debug/kdevelop-24.05.0-1.x86_64/kdevplatform/serialization/itemrepository.h:734


Reported using DrKonqi
Comment 1 Davide Beatrici 2024-06-05 01:03:48 UTC
Created attachment 170153 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Igor Kushnir 2024-06-05 08:09:51 UTC
(In reply to Davide Beatrici from comment #0)
> The crash happened almost immediately. Upon restarting the program, I chose
> to delete the cache and then I opened the project again, which was loaded just fine.
Did you update Clang just before the crash occurred? Perhaps the cache is incompatible between [major] libclang versions.
Comment 3 Davide Beatrici 2024-06-05 23:36:50 UTC
Just checked: no updates to the Clang packages and it was the first time I opened the project after a fresh system reinstall (I didn't transfer ~/.cache over).
Comment 4 Igor Kushnir 2024-06-06 12:34:02 UTC
(In reply to Davide Beatrici from comment #3)
> Just checked: no updates to the Clang packages and it was the first time I
> opened the project after a fresh system reinstall (I didn't transfer
> ~/.cache over).
Then it's probably a bug in CodeModel or ItemRepository somewhere. The backtrace looks good and may be used to find and fix a bug. If only someone had the time for that...