Summary: | updated kdevelop on debian today, crashed while parsing a just imported project | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Arthur Gruzauskas <debian> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | igorkuo |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | New crash information added by DrKonqi |
Description
Arthur Gruzauskas
2022-06-01 07:49:48 UTC
Created attachment 149368 [details]
New crash information added by DrKonqi
DrKonqi auto-attaching complete backtrace.
Judging by the common "getBitWidthValue" line in the backtraces, this and Bug 438249 are both duplicates of Bug 431811. In the oldest of these bugs the following workaround is proposed: > If I change > decl->setBitWidth(clang_getFieldDeclBitWidth(cursor)); > to > decl->setBitWidth(-1); > , KDevelop will finish the parsing without issue. Could you try if that works for you? What LLVM versions did you use to build and run KDevelop? In that same Bug 431811 I proposed this: > If other users experience this crash with LLVM version < 11, then KDevelop should probably disable the new feature by calling decl->setBitWidth(-1) when it is compiled against an older LLVM version. I am running KDevelop-5.6.1-x86_64.AppImage, so no source to play with. I had compiled git master for a decade or so, then a year ago this crashing while importing started to happen. The above AppImage worked, so I used it. A few months ago I tried the version in debian testing, which worked perfectly till an upgrade arrived today. I suspect I was using LLVM11 a year ago when the crashing started, but not certain. It is now past midnight, and I have to stop. Tomorrow I will add your trial fix to my git clone and will be compiling with LLVM13 and report back. Thank you for looking at this issue, I love KDevelop! Well Igor, that worked! Patched builder.cpp in my updated master git clone as suggested, compiled with LLVM13 on debian testing, all dependencies satisfied. Loaded 3 projects, parsed, compiled, ran all projects. no issues. Its worked for 45 mins, before it was always 1~5 mins. I'll be using kdevelop for a couple hours a day for the next few days and will report back if any problems. Assuming all is well, is there anything further I need to do to close this? This looks like an uncommon issue, specific to some systems, perhaps too few for it to be a priority. If you want to use my system as a crash test dummy, I'm happy to try any experiments. Now I really really need to go to bed. Thank you Igor. *** This bug has been marked as a duplicate of bug 438249 *** |