Bug 449927

Summary: kmail crashes on startup after crashing when switching folders
Product: [Applications] kmail2 Reporter: Timo Wilken <kdebugs>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash CC: mail
Priority: NOR    
Version: 5.19.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: kmail startup and debug log

Description Timo Wilken 2022-02-10 10:48:57 UTC
Created attachment 146528 [details]
kmail startup and debug log

SUMMARY
After looking at emails and switching folders a few times, when switching back to an inbox, kontact crashes.

I'm not sure, but the crash may have happened when switching to a folder where the first message was signed using an RSA4096 GPG key, of which I have the public key stored in KGPG.

Subsequently trying to reopen kontact or kmail crashes with a segfault (see attached log).


STEPS TO REPRODUCE
1. open kontact/kmail and switch folders a few times, possibly opening a GPG-signed message
2. kontact/kmail crashes
3. try to reopen kmail
4. kmail keeps segfaulting

OBSERVED RESULT
kmail crashes upon startup, without showing a window. See attached log for details.

EXPECTED RESULT
kmail starts normally.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 5.16.8-arch1-1
(available in About System)
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Hauke 2022-02-11 14:32:21 UTC
Can confirm: When I open an encrypted message, KMail crashes.

It look like this is related to #449898