Bug 506828

Summary: Crash, when selecting multiple addresses of a distribution list
Product: [Applications] kmail2 Reporter: Elias Probst <mail>
Component: composerAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version First Reported In: 6.4.3   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: GDB backtrace of crashed KMail

Description Elias Probst 2025-07-09 21:54:48 UTC
Created attachment 183106 [details]
GDB backtrace of crashed KMail

SUMMARY
Selecting multiple recipients from a distribution list (click, hold shift, click) causes KMail to crash.

STEPS TO REPRODUCE
1. Compose a new mail
2. Open recipient picker
3. Expand a distribution list
4. Click on the 1st contact of the list
5. Hold shift and click on the last contact of the list

OBSERVED RESULT
KMail freezes & crashes (full BT is attached):

#0··0x00007fffe569f59d·in·QSortFilterProxyModel::sibling(int,·int,·QModelIndex·const&)·const·()·at·/nix/store/l9kvcx3wna1bla7xpy1629hawjqmna4y-qtbase-6.9.0/lib/libQt6Core.so.6⏎                                                    
  3859  #1··0x00007fffe355c6ad·in·QModelIndex::sibling·(acolumn=0,·this=0x7ffffffefce0,·arow=2)·at·/nix/store/l9kvcx3wna1bla7xpy1629hawjqmna4y-qtbase-6.9.0/include/QtCore/qabstractitemmodel.h:509⏎                                        
  3860  #2··Akonadi::EntityTreeViewPrivate::slotSelectionChanged·(this=0x347d010,·selected=...,·deselected=<optimized·out>)·at·/build/akonadi-25.04.3/src/widgets/entitytreeview.cpp:110⏎                                                   
  3861  ········row·=·2⏎                                                                                                                                                                                                                    
  3862  ········index·=·{r·=·1,·c·=·0,·i·=·1,·m·=·{ptr·=·0x2aa0670}}⏎                                                                                                                                                                       
  3863  ········range·=·@0x299df80:·{tl·=·{d·=·0x3629f60},·br·=·{d·=·0x3a8ecc0}}

EXPECTED RESULT
KMail allows me to add the selected contacts as recipients of the mail I'm composing

SOFTWARE/OS VERSIONS
Operating System: NixOS 25.11
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.15.4 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen AI 5 340 w/ Radeon 840M
Memory: 32 GiB of RAM (30.6 GiB usable)
Graphics Processor: AMD Radeon Graphics 

ADDITIONAL INFORMATION