| Summary: | Crash when saving the addressbook after deleting a record while searching | ||
|---|---|---|---|
| Product: | [Applications] trojita | Reporter: | Jonáš Vidra <vidra.jonas> |
| Component: | Core | Assignee: | Trojita default assignee <trojita-bugs> |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 0.7 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Backtrace generated by the KCrash handler after the segfault | ||
|
Description
Jonáš Vidra
2019-01-09 13:09:03 UTC
Indeed, I can reproduce it here: Thread 1 "trojita" received signal SIGSEGV, Segmentation fault. 0x000055555568aec7 in AbookAddressbook::saveContacts() () at /home/jkt/work/prog/trojita/src/Plugins/AbookAddressbook/AbookAddressbook.cpp:312 312 if (it->first == Mail) (gdb) bt #0 0x000055555568aec7 in AbookAddressbook::saveContacts() () at /home/jkt/work/prog/trojita/src/Plugins/AbookAddressbook/AbookAddressbook.cpp:312 #1 0x00005555556933bb in BE::Contacts::saveContacts (this=0x555555fca580) at /home/jkt/work/prog/trojita/src/Plugins/AbookAddressbook/be-contacts.cpp:173 #2 BE::Contacts::closeEvent(QCloseEvent*) () at /home/jkt/work/prog/trojita/src/Plugins/AbookAddressbook/be-contacts.cpp:163 #3 0x00007ffff3334c48 in QWidget::event (this=0x555555fca580, event=0x7fffffffcd50) at /var/tmp/portage/dev-qt/qtwidgets-5.11.9999/work/qtwidgets-5.11.9999/src/widgets/kernel/qwidget.cpp:8916 Also, the list of matching items gets empty right after that deletion attempt even though there are some more matching items. That appears quite relevant. A first thing to be checked is proper QModelIndex invalidation, but I haven't checked the code. Patches welcome, of course. Trojitá is no longer maintained, please switch to a maintained alternative like https://apps.kde.org/kmail2/ Sorry for the inconveniences. |