Summary: | KDevelop crashes when renaming a variable on an assert in BasicRefactoring::executeRenameAction | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Jonathan Verner <jonathan.verner> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | Keywords: | drkonqi |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/kdevelop/kdevelop/commit/08e4a17ab5fe58bb9f3ffbcca15244c75d1db714 | Version Fixed In: | 5.8.220400 |
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Jonathan Verner
2021-10-28 21:32:28 UTC
Created attachment 142981 [details]
New crash information added by DrKonqi
DrKonqi auto-attaching complete backtrace.
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/276 Git commit 08e4a17ab5fe58bb9f3ffbcca15244c75d1db714 by Igor Kushnir, on behalf of Jonathan L. Verner. Committed on 14/12/2021 at 10:25. Pushed by igorkushnir into branch 'master'. Fix a crash when renaming a variable (in executeRenameAction) When renaming a variable, the function `BasicRefactoring::executeRenameAction` calls the `isValid` method of `IndexedDeclaration` which is documented to require the DUChain to be read locked. However the function does no such locking. This commit introduces a lock around the two calls. FIXED-IN: 5.8.220400 M +10 -5 kdevplatform/language/codegen/basicrefactoring.cpp https://invent.kde.org/kdevelop/kdevelop/commit/08e4a17ab5fe58bb9f3ffbcca15244c75d1db714 |