| Summary: | Kdevelop crash on start when parsing a PHP project | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Julio J. <julioelpoeta> |
| Component: | Language Support: PHP | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | crash | CC: | mail, pprkut |
| Priority: | NOR | ||
| Version First Reported In: | 5.3.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | GDB Backtrace of the crash | ||
Thanks for the report! This looks like a problem with parsing some specific syntax edge-case. If you use ``` export QT_LOGGING_TO_CONSOLE=1 export QT_LOGGING_RULES="kdev*=true" kdevelop --pick-session ``` you should get a lot of debug output, including the file(s) being parsed at the time of the crash. If you can narrow it down to a particular file or part of a file, and attach the contents to this bug, that would be very helpful. I just tried what you mentioned, and I get indeed a lot of output, and I realized that it crashes with any Laravel project, including an empty one. Steps to reproduce: - composer create-project --prefer-dist laravel/laravel test - kdevelop --pick-session - Open the test folder created above as a new project The files being parsed at the time of the crash aren't always the same, so I don't think I'd be very lucky trying to narrow it down. Hopefully you can reproduce the crash with a new laravel project as well. Let me know if I can provide any extra info. Thanks for an awesome work! Hey Julio! :) Any chance you could try with this change applied? https://cgit.kde.org/kdev-php.git/commit/?h=5.3&id=2469eba750b2b52107e0c2671c3c11a9d87539f8 It fixed a related issue in the same function and might just solve this one too Hey Heinz! I just tried and with the latest version from master there is no crash, so I guess you can mark this as solved. I'll just keep my compiled version till the new release goes out. Thanks for the good work! Great! Good to hear :) This is most likely then a duplicate of the other bug. Thanks for reporting back! *** This bug has been marked as a duplicate of bug 400294 *** |
Created attachment 116409 [details] GDB Backtrace of the crash SUMMARY Latest version of Kdevelop crashes on startup when I open a particular PHP project. SOFTWARE/OS VERSIONS Linux: Arch Linux KDE Plasma Version: 5.14.3 KDE Frameworks Version: 5.51.0 Qt Version: 5.11.2 ADDITIONAL INFORMATION Since I can reproduce it every time, I've run it with GDB, find attached the backtrace: