Bug 432232

Summary: KMail Filer Rules selection crash
Product: [Applications] kmail2 Reporter: kdebt
Component: UIAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash CC: montel
Priority: NOR    
Version: 5.16.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: gdb bt
filters 1st entry
filters 2nd entry

Description kdebt 2021-01-28 08:50:13 UTC
Created attachment 135254 [details]
gdb bt

KMail crashes with SIGSEGV when selecting the 2nd entry in my message filter list if the 1st entry was selected before (post-open default or not). Any other selection order doesn't crash (1->2 crashes, 1->3->2 is fine, 1->3->1->2 crashes). This reproduces reliably and every time.

STEPS TO REPRODUCE
1. open filter dialog
2. select 2nd entry

OBSERVED RESULT
filter selection changes as for e.g. 1->3->2 instead of 1->2

EXPECTED RESULT
crash

SOFTWARE/OS VERSIONS
Linux: openSUSE Tumbleweed
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
mailcommon 20.12

ADDITIONAL INFORMATION
see attachment
Comment 1 kdebt 2021-01-28 08:50:46 UTC
Created attachment 135255 [details]
filters 1st entry
Comment 2 kdebt 2021-01-28 08:51:01 UTC
Created attachment 135257 [details]
filters 2nd entry
Comment 3 Laurent Montel 2021-02-03 06:21:21 UTC
Hi 
could you export you two filters please and send me it in private emails ?
I think that the patterns is nullptr but I can't confirm it.
Thanks