Bug 401099

Summary: When trusting an imported secret key, KGpg fills all memory and swap space and never completes the operation
Product: [Applications] kgpg Reporter: Marcell Fulop <marekful>
Component: generalAssignee: Rolf Eike Beer <kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: marekful
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marcell Fulop 2018-11-16 10:27:44 UTC
SUMMARY

KGpg version 17.04.3 (current version on Ubuntu 17.10)


STEPS TO REPRODUCE

1. Export a PGP secret key from a third party
2. Import it into KGpg
3. Open the key properties dialogue, the trust level is "Unknown" as expected for imported keys.
4. Change trust level to Ultimate and click Apply or OK.


OBSERVED RESULT

KGpg and gpg heavily utilises CPU. Memory starts to slowly fill up until it's full. Then swap space starts to fill up until it's full. Then system crashes.

Tried multiple times with different keys. Created a large, 20GB swap space to see what happens and observed the same behaviour. 


EXPECTED RESULT

Just as in gpg command line editor, when trust command is issued, it should immediately change trust level on the selected key and complete operation swiftly.


SOFTWARE/OS VERSIONS

Linux: 

Distributor ID: Ubuntu
Description:    Ubuntu 17.10
Release:        17.10
Codename:       artful

KDE Plasma Version: 5.10.5

KDE Frameworks Version: 5.38.0

Qt Version: 5.9.1
Comment 1 Rolf Eike Beer 2018-11-23 07:19:49 UTC

*** This bug has been marked as a duplicate of bug 373909 ***