Summary: | KDevelop keeps crashing since the 5.2 upgrade [Php::VariableDeclaration::isVariadic] | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Julio J. <julioelpoeta> |
Component: | Language Support: PHP | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | mail, pprkut |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.2.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kdev-php/3036fee6e96fa776e05a3ac572355146b7171991 | Version Fixed In: | 5.2.1 |
Sentry Crash Report: | |||
Attachments: | Another backtrace, same kind of crash I've been having since yesterday. |
Description
Julio J.
2017-11-15 22:07:19 UTC
Wow, re-reading the report it sounds ironic, but I truly thank all of you for a great job on KDE and Kdevelop (regardless of the bugs that may sneak in). Keep it up! @Heinz: Quick look -- I suspect the place where this crashes is: duchain/navigation/declarationnavigationcontext.cpp: 159 void DeclarationNavigationContext::htmlFunction() ... 197 VariableDeclaration *argDec = dynamic_cast<VariableDeclaration*>(decls[currentArgNum]); 198 199 if (argDec->isVariadic()) { ... where argDec is being a nullptr or invalid? Created attachment 108889 [details]
Another backtrace, same kind of crash I've been having since yesterday.
Another backtrace, not sure if related to above but it just crashed again :(
If I should file another bug for this one just let me know.
Please file a different bug for this one -- it has a different backtrace. But also please try to get debug symbols first. Does the following wiki page for ArchLinux help, maybe? https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces#CMAKE_.28KDE.29_applications I'll file a different bug. tbh, I've submitted these 2 because DrKonqi gave them 3 stars. I'll look into getting debug symbols because I'd love to keep using kdevelop and these constant crashes are making it unusable. Thanks for the link! FWIW, until it's fixed, you can easily go back to 5.1.2 by using the AppImage in the meantime. @Sven Brauch: Thanks, that was my plan. @Kevin Funk: I've managed to compile KDevelop from sources with debug symbols, the kdev-php isn't included, and I can't find a way to include it. Could you point me to somewhere where I can read how to compile it w/ PHP support? All resources I could find were for KDevelop4 :( Thanks! git clone git://anongit.kde.org/kdev-php cd kdev-php mkdir build; cd build; cmake .. -DCMAKE_INSTALL_PREFIX=<put your prefix here> make install Git commit 3036fee6e96fa776e05a3ac572355146b7171991 by Milian Wolff. Committed on 18/11/2017 at 18:33. Pushed by mwolff into branch '5.2'. Check dynamic_cast result before derefencing its value M +1 -1 duchain/navigation/declarationnavigationcontext.cpp https://commits.kde.org/kdev-php/3036fee6e96fa776e05a3ac572355146b7171991 |