Created attachment 128015 [details] kcrash - stack trace for crashed KDevelop SUMMARY I have modified several files in my project using git repository. When I tried to do commit (RMB on root item of the project in Projects view -> Commit then KDevelop crashes. I tried couple times even I restarted PC to be sure that this is not because of recent update, but after I started KDevelop and tried to do commit again, KDevelop just crashed. STEPS TO REPRODUCE 1. Change in project couple files. 2. Try to do commit as I described above 3. OBSERVED RESULT CRASH. Before on half second appeared diff view. EXPECTED RESULT Performing commit in git repository. SOFTWARE/OS VERSIONS Linux/KDE Plasma: YES (available in About System) KDE Plasma Version: 5.18.4 KDE Frameworks Version: 5.69.0 Qt Version: 5.14.2 ADDITIONAL INFORMATION git version 2.26.2-1 In attachment please find couple stack traces (not so detailed).
Created attachment 128016 [details] kcrash - stack trace for crashed KDevelop
Created attachment 128017 [details] kcrash - stack trace for crashed KDevelop
I suppose KDevelop crashes because of diff plugin issue. I experienced crash also in case of option: "Show differences". I experienced this crash in Antergos and KaOS. KDevelop crashes every time when user try to do Commit or check differences (using "Show differences" option). I'm not sure what diff application/library depends KDevelop on, so provide all what I have installed: colordiff 1.0.18-2 diffutils 3.7-3 kdiff3 1.8.2-1 libkomparediff2 20.04.0-1 python-patiencediff 0.1.0-1
indeed, seems to be a crash in kompare
Well, strictly speaking, it's a crash in libkomparediff2, KDevelop does not use the code from the kompare application (anymore). But there is no separate libkomparediff2 component, it seems.
The problem with these backtraces is that there is no debugging information for libkomparediff2 installed, so I do not see line numbers nor other details.
(In reply to Kevin Kofler from comment #6) > The problem with these backtraces is that there is no debugging information > for libkomparediff2 installed, so I do not see line numbers nor other > details. If you are able to identify issue and fix it, I'll try to provide more detailed backtrace, so I will install libkomparediff2 with debug information. Thanks for quick response.
I cannot promise that I will be able to fix it (especially without having access to a reproducer), but the chance that I will be able to find what is wrong will be higher if I know the exact line where it crashes.
Also hitting here. Seems a regression due to https://phabricator.kde.org/D27937? which ports from QLinkedList to QList, thus uncovering some broken iteration going past the end of the list (which does not crash with QLinkedList as there the iterator goes to first node if going past end node, so still pointing to list items, other than QList iterator). Looking into fixing this myself currently, hopefully in time for 20.04.01.
Git commit 759183c4bc9ed26eff9426862eece835a2aee106 by Friedrich W. H. Kossebau. Committed on 06/05/2020 at 20:10. Pushed by kossebau into branch 'release/20.04'. Do not crash if real files have less lines than what the patch claims FIXED-IN: 20.04.1 M +3 -2 komparemodellist.cpp https://commits.kde.org/libkomparediff2/759183c4bc9ed26eff9426862eece835a2aee106
*** Bug 419689 has been marked as a duplicate of this bug. ***
*** Bug 421535 has been marked as a duplicate of this bug. ***
*** Bug 421536 has been marked as a duplicate of this bug. ***