Bug 389291 - Kleopatra crashes when trying to create New key pair
Summary: Kleopatra crashes when trying to create New key pair
Status: RESOLVED FIXED
Alias: None
Product: kleopatra
Classification: Applications
Component: general (show other bugs)
Version: 3.0.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Andre Heinecke
URL:
Keywords:
: 388047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-01-21 18:55 UTC by stefanprobst
Modified: 2018-02-09 18:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stefanprobst 2018-01-21 18:55:50 UTC
When trying to create a New key pair, after clicking on either option in the dialog, kleopatra crashes ("Speicherzugriffsfehler"). Kleopatra's self-test shows no problems.
Comment 1 stefanprobst 2018-01-21 19:15:52 UTC
Interestingly, generating a new key pair via kmail's "Add account" assistant *does* work - and then shows up in kleopatra.
Comment 2 Andre Heinecke 2018-01-22 06:14:13 UTC
Hi,
thanks for your report. Which Version in Neon is that exactly? Depending on the Neon flavor that can differ.
(dpkg -s kleopatra)

There was one crash that I know of that has been fixed with https://dev.gnupg.org/T3577 Kleopatra from KDE Applications 17.12.0

(There are Kleopatra 3.0.1 Versions both with and without this commit)

If your Version is newer then from 17.12.0 please attach a backtrace.

Thanks!
Comment 3 stefanprobst 2018-01-22 13:16:44 UTC
This is with package version 4:17.12.1-0neon+16.04+xenial+build42.

Backtrace:
Thread 1 "kleopatra" received signal SIGSEGV, Segmentation fault.
Kleo::gpgComplianceP (mode=mode@entry=0x672056 "de-vs") at /workspace/build/src/utils/gnupg-helper.cpp:284
284     /workspace/build/src/utils/gnupg-helper.cpp: No such file or directory.
Comment 4 Andre Heinecke 2018-01-22 14:26:01 UTC
Oops. Looking at that code shows an obvious mistake that will lead to crashes against older GnuPG versions. (<2.1.16)

I'll fix it.
Comment 5 Andre Heinecke 2018-01-22 14:28:35 UTC
Git commit 8e417cbfd52f88c4f114595b68e3f17a08c85d02 by Andre Heinecke.
Committed on 22/01/2018 at 14:24.
Pushed by aheinecke into branch 'Applications/17.12'.

Fix crash if compliance is not known to gnupg

We need to check if entry is null because older gnupg
versions might not have that config entry.

M  +6    -5    src/utils/gnupg-helper.cpp

https://commits.kde.org/kleopatra/8e417cbfd52f88c4f114595b68e3f17a08c85d02
Comment 6 Andre Heinecke 2018-01-31 07:34:18 UTC
*** Bug 388047 has been marked as a duplicate of this bug. ***
Comment 7 nasan one 2018-02-09 18:27:10 UTC
thanks guys the updated version works wonderfull - keep up the excellent work - hats off to you guys