Summary: | Kleopatra 15.12.1 (2.2): load certifications (pgp) - segfault after infinite recursion | ||
---|---|---|---|
Product: | [Applications] kleopatra | Reporter: | Till Schäfer <till2.schaefer> |
Component: | general | Assignee: | Andre Heinecke <aheinecke> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jkt, kdepim-bugs, marvin24, mutz |
Priority: | NOR | ||
Version: | 2.2.0 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepim/35bbcb687537628e0c7facc83ca2c175e3d22d3b | Version Fixed In: | 16.04 |
Sentry Crash Report: |
Description
Till Schäfer
2016-01-13 16:49:00 UTC
Thanks for reporting this. I've already seen it and it's on my Todo but there was no report about this. This is a regression from the Qt5 / KF5 port but I think the bug is that the underlying model in kleo is not correct. I will attach the stack trace as soon as this is ready. it takes a while to print a gdb stacktrace with 20k lines :-) There is no need for that. The info you have posted is already enough and the problem is clear and reproducible. The problem is likely that there is a cycle in the model which qt wants to layout as a tree. I should probably just try to fix it instead of talking about it ;-) Git commit 35bbcb687537628e0c7facc83ca2c175e3d22d3b by Andre Heinecke. Committed on 19/02/2016 at 14:22. Pushed by aheinecke into branch 'master'. Refactor UserID Certificate details The old code was obscurely optimized to avoid copying data for the useridmodel. The userID model is fairly small as it only works with the Signatures of the UIDs of a single key. In most cases this is not much data. Keys with more then a thousand signatures are rare and even those modern Systems handle easily. Reflecting this the option to specifically load certifications is gone. Even for keys with lots of signatures liek 0xE3EDFAE3 or 0xD21739E9 this feels like instant. So no need to hassle a user that explicitly selects UserID and Certification details with yet another click to load them. This also changes the UserIDListModel API to a Qt API. REVIEW: 127059 M +14 -32 kleopatra/dialogs/certificatedetailsdialog.cpp M +0 -1 kleopatra/dialogs/certificatedetailsdialog.h M +0 -10 kleopatra/dialogs/certificatedetailsdialog.ui M +185 -239 kleopatra/models/useridlistmodel.cpp M +10 -32 kleopatra/models/useridlistmodel.h http://commits.kde.org/kdepim/35bbcb687537628e0c7facc83ca2c175e3d22d3b I've reworked the model for this so that it is more usable in the future. In the long term I have in mind that I also want to show certifications better in the treeview. Now at least it does not crash anymore. I've also changed that you no longer have to click "load certifications" as I this is very quick in my experience even for extremely large keys. And saving a click if a user already navigated into the details is good. neat, thx is a backport to 15.12 branch possible? |