Bug 453237

Summary: kmail/kontakt crash when navigate in filter dialog or add new filter
Product: [Applications] kontact Reporter: filip <v8filip>
Component: mailAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.20.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description filip 2022-04-30 17:43:25 UTC
Application: kontact (5.20.0 (22.04.0))

Qt Version: 5.15.2
Frameworks Version: 5.93.0
Operating System: Linux 5.17.4-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.24.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Navigate through "Filter" dialog or add new filter rule
Same problem as in BUG 452416 in the new Framework and Application Version

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  __gnu_cxx::__atomic_add (__val=1, __mem=0x100000009) at /usr/include/c++/11/ext/atomicity.h:71
#7  __gnu_cxx::__atomic_add_dispatch (__val=1, __mem=0x100000009) at /usr/include/c++/11/ext/atomicity.h:111
#8  std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_add_ref_copy (this=0x100000001) at /usr/include/c++/11/bits/shared_ptr_base.h:148
#9  std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count (__r=..., this=0x7ffcb61238d8) at /usr/include/c++/11/bits/shared_ptr_base.h:712
#10 std::__shared_ptr<MailCommon::SearchRule, (__gnu_cxx::_Lock_policy)2>::__shared_ptr (this=<optimized out>, this=<optimized out>) at /usr/include/c++/11/bits/shared_ptr_base.h:1152
#11 std::shared_ptr<MailCommon::SearchRule>::shared_ptr (this=0x7ffcb61238d0) at /usr/include/c++/11/bits/shared_ptr.h:150
#12 MailCommon::SearchRuleWidgetLister::setRuleList (aList=0x5644db2bebe8, this=0x5644db18b650) at /usr/src/debug/mailcommon-22.04.0-1.1.x86_64/src/search/searchpatternedit.cpp:449
#13 MailCommon::SearchPatternEdit::setSearchPattern (this=0x5644db189ca0, aPattern=0x5644db2bebe8) at /usr/src/debug/mailcommon-22.04.0-1.1.x86_64/src/search/searchpatternedit.cpp:639
#14 0x00007f72e7c5923f in MailCommon::KMFilterDialog::slotFilterSelected (this=0x5644da815600, aFilter=0x5644db2bebe0) at /usr/src/debug/mailcommon-22.04.0-1.1.x86_64/src/filter/kmfilterdialog.cpp:480
#15 0x00007f7377bf7453 in QtPrivate::QSlotObjectBase::call (a=0x7ffcb6123ab0, r=0x5644da815600, this=0x5644db287500) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#16 doActivate<false> (sender=0x5644da017cf0, signal_index=10, argv=0x7ffcb6123ab0) at kernel/qobject.cpp:3886
#17 0x00007f7377bf07af in QMetaObject::activate (sender=sender@entry=0x5644da017cf0, m=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffcb6123ab0) at kernel/qobject.cpp:3946
#18 0x00007f72e7c25d9b in MailCommon::KMFilterListBox::filterSelected (_t1=<optimized out>, this=0x5644da017cf0) at /usr/src/debug/mailcommon-22.04.0-1.1.x86_64/build/src/KF5MailCommon_autogen/CSB7XD6IZM/moc_kmfilterlistbox.cpp:291
#19 MailCommon::KMFilterListBox::slotSelected (this=0x5644da017cf0, aIdx=5) at /usr/src/debug/mailcommon-22.04.0-1.1.x86_64/src/filter/kmfilterlistbox.cpp:386
#20 0x00007f7377bf7453 in QtPrivate::QSlotObjectBase::call (a=0x7ffcb6123bd0, r=0x5644da017cf0, this=0x5644db17cc60) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#21 doActivate<false> (sender=0x5644da6dd630, signal_index=23, argv=0x7ffcb6123bd0) at kernel/qobject.cpp:3886
#22 0x00007f7377bf07af in QMetaObject::activate (sender=sender@entry=0x5644da6dd630, m=m@entry=0x7f7378cad4a0 <QListWidget::staticMetaObject>, local_signal_index=local_signal_index@entry=8, argv=argv@entry=0x7ffcb6123bd0) at kernel/qobject.cpp:3946
#23 0x00007f7378a2e801 in QListWidget::currentRowChanged (this=this@entry=0x5644da6dd630, _t1=<optimized out>) at .moc/moc_qlistwidget.cpp:417
#24 0x00007f7378a2f67b in QListWidgetPrivate::_q_emitCurrentItemChanged (this=<optimized out>, current=..., previous=...) at itemviews/qlistwidget.cpp:1236
#25 0x00007f7377bf7488 in doActivate<false> (sender=0x5644da6eaf30, signal_index=4, argv=0x7ffcb6123d40) at kernel/qobject.cpp:3898
#26 0x00007f7377bf07af in QMetaObject::activate (sender=sender@entry=0x5644da6eaf30, m=m@entry=0x7f7377e94e60 <QItemSelectionModel::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffcb6123d40) at kernel/qobject.cpp:3946
#27 0x00007f7377b6b653 in QItemSelectionModel::currentChanged (this=this@entry=0x5644da6eaf30, _t1=..., _t2=...) at .moc/moc_qitemselectionmodel.cpp:482
#28 0x00007f7377b6f039 in QItemSelectionModel::setCurrentIndex (this=0x5644da6eaf30, index=..., command=...) at itemmodels/qitemselectionmodel.cpp:1416
#29 0x00007f73789e5a13 in QAbstractItemView::mousePressEvent (this=0x5644da6dd630, event=<optimized out>) at itemviews/qabstractitemview.cpp:1786
#30 0x00007f73787b3cde in QWidget::event (this=this@entry=0x5644da6dd630, event=event@entry=0x7ffcb61243f0) at kernel/qwidget.cpp:9020
#31 0x00007f73788605fe in QFrame::event (this=0x5644da6dd630, e=0x7ffcb61243f0) at widgets/qframe.cpp:550
#32 0x00007f7377bc08c2 in QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1190
#33 QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x5644da6eb560, event=event@entry=0x7ffcb61243f0) at kernel/qcoreapplication.cpp:1179
#34 0x00007f7378771afe in QApplicationPrivate::notify_helper (this=this@entry=0x5644d49e6fc0, receiver=receiver@entry=0x5644da6eb560, e=e@entry=0x7ffcb61243f0) at kernel/qapplication.cpp:3626
#35 0x00007f7378779614 in QApplication::notify (this=<optimized out>, receiver=0x5644da6eb560, e=0x7ffcb61243f0) at kernel/qapplication.cpp:3076
#36 0x00007f7377bc0b5a in QCoreApplication::notifyInternal2 (receiver=0x5644da6eb560, event=0x7ffcb61243f0) at kernel/qcoreapplication.cpp:1064
#37 0x00007f7378778123 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x5644da6eb560, event=event@entry=0x7ffcb61243f0, alienWidget=alienWidget@entry=0x5644da6eb560, nativeWidget=0x5644da815600, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#38 0x00007f73787ccddc in QWidgetWindow::handleMouseEvent (this=0x5644db904110, event=0x7ffcb61246c0) at kernel/qwidgetwindow.cpp:683
#39 0x00007f73787d01f5 in QWidgetWindow::event (this=0x5644db904110, event=0x7ffcb61246c0) at kernel/qwidgetwindow.cpp:300
#40 0x00007f7378771b0f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5644db904110, e=0x7ffcb61246c0) at kernel/qapplication.cpp:3632
#41 0x00007f7377bc0b5a in QCoreApplication::notifyInternal2 (receiver=0x5644db904110, event=0x7ffcb61246c0) at kernel/qcoreapplication.cpp:1064
#42 0x00007f737801da77 in QGuiApplicationPrivate::processMouseEvent (e=0x5644db9a33c0) at kernel/qguiapplication.cpp:2282
#43 0x00007f7377ff386c in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#44 0x00007f73644a0e9a in xcbSourceDispatch (source=source@entry=0x5644d4ac1b70) at qxcbeventdispatcher.cpp:105
#45 0x00007f736e385122 in g_main_dispatch (context=0x7f735c005010) at ../glib/gmain.c:3417
#46 g_main_context_dispatch (context=0x7f735c005010) at ../glib/gmain.c:4135
#47 0x00007f736e3854b8 in g_main_context_iterate (context=context@entry=0x7f735c005010, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4211
#48 0x00007f736e38556f in g_main_context_iteration (context=0x7f735c005010, may_block=1) at ../glib/gmain.c:4276
#49 0x00007f7377c182b4 in QEventDispatcherGlib::processEvents (this=0x5644d4ad3730, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#50 0x00007f7377bbf55b in QEventLoop::exec (this=this@entry=0x7ffcb61249f0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#51 0x00007f7377bc7820 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#52 0x00007f737801161c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#53 0x00007f7378771a85 in QApplication::exec () at kernel/qapplication.cpp:2824
#54 0x00005644d3190000 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kontact-22.04.0-1.1.x86_64/src/main.cpp:214
[Inferior 1 (process 5154) detached]

Reported using DrKonqi
Comment 1 filip 2022-04-30 17:52:00 UTC
Original reported in BUG 452416
Comment 2 filip 2022-04-30 17:58:04 UTC
Description from original BUG 452416:

I have more than one filters to delete spam mails from spam folder.
Already configured filters work without any problems.
When i try to enter a new filter rule e.g. "From" contains "xyz.com" with Filter action "Delete"
kmail crashes always.

New: Also the navigation through the mail filter definitions crashes the Applikation
Comment 3 filip 2022-06-06 21:12:08 UTC
In the current version KMail 5.20.1 (22.04.1) with Framework 5.94.0 the crash does not occur anymore.
In addition, I had recreated the last filter list. Perhaps this also contributed to the problem solution.
Comment 4 filip 2022-06-06 21:12:49 UTC
The problem no longer exists.