Bug 431539 - Kmail crash after configuring Expire on a folder
Summary: Kmail crash after configuring Expire on a folder
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: kmail2
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.16.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-01-13 13:02 UTC by BingMyBong
Modified: 2026-01-28 21:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BingMyBong 2021-01-13 13:02:33 UTC
Application: kmail (5.16.1 (20.12.0))

Qt Version: 5.15.2
Frameworks Version: 5.77.0
Operating System: Linux 5.10.5-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:
1. I selected a folder, 
2. Created an expire (via Folder Properties)to happen on that folder after 365 days and transfer messages to wastebin 
3. Pressed "save settings and expire now" - the button didn't grey out to show it was working even though it was working fine (progress message says "trash" and not "wastebin")
4. After all messages transferred to wastebin, i selected another folder.
5. The new folder emails were displayed above the message pane.
6. I selected an email to read and the message pane got the "Retrieving messages..." 
7.  It sat there "retrieving" for ages and eventually crashed.
This happened twice in a row.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault

[KCrash Handler]
#4  std::__atomic_base<int>::operator++ (this=0x7ffac31f3dbc <vtable for QPixmap+20>) at /usr/include/c++/10/bits/atomic_base.h:325
#5  QAtomicOps<int>::ref<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:283
#6  QBasicAtomicInteger<int>::ref (this=0x7ffac31f3dbc <vtable for QPixmap+20>) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:118
#7  QExplicitlySharedDataPointer<QObjectPrivate::ConnectionData>::QExplicitlySharedDataPointer (adata=0x7ffac31f3db8 <vtable for QPixmap+16>, this=0x7ffcfe553f88) at ../../include/QtCore/../../src/corelib/tools/qshareddata.h:285
#8  doActivate<false> (sender=0x5563baae7b00, signal_index=6, argv=0x7ffcfe553fb0) at kernel/qobject.cpp:3803
#9  0x00007ffacb106322 in KMail::KMSystemTray::updateToolTip (this=0x5563baae7660, count=<optimized out>) at /usr/src/debug/kmail-20.12.1-1.1.x86_64/src/kmsystemtray.cpp:256
#10 0x00007ffacb106566 in KMail::UnityServiceManager::unreadMail (this=<optimized out>, model=0x5563ba38d8c0, parentIndex=...) at /usr/src/debug/kmail-20.12.1-1.1.x86_64/src/unityservicemanager.cpp:88
#11 0x00007ffacb109085 in KMail::UnityServiceManager::initListOfCollection (this=0x5563ba3d1e90) at /usr/src/debug/kmail-20.12.1-1.1.x86_64/src/unityservicemanager.cpp:110
#12 0x00007ffac28408c6 in QtPrivate::QSlotObjectBase::call (a=0x7ffcfe554220, r=0x5563ba3d1e90, this=0x5563ba3dab00) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#13 doActivate<false> (sender=0x5563ba35a610, signal_index=23, argv=argv@entry=0x7ffcfe554220) at kernel/qobject.cpp:3886
#14 0x00007ffac2839c20 in QMetaObject::activate (sender=<optimized out>, m=<optimized out>, local_signal_index=local_signal_index@entry=20, argv=argv@entry=0x7ffcfe554220) at kernel/qobject.cpp:3946
#15 0x00007ffac0842bc7 in Akonadi::Monitor::collectionStatisticsChanged (this=<optimized out>, _t1=<optimized out>, _t2=...) at /usr/src/debug/akonadi-server-20.12.1-1.1.x86_64/build/src/core/KF5AkonadiCore_autogen/include/moc_monitor.cpp:1004
#16 0x00007ffac084b9aa in Akonadi::MonitorPrivate::slotStatisticsChangedFinished (this=0x5563ba397280, job=0x7ffa86505d70) at /usr/src/debug/akonadi-server-20.12.1-1.1.x86_64/src/core/monitor_p.cpp:639
#17 0x00007ffac28408c6 in QtPrivate::QSlotObjectBase::call (a=0x7ffcfe5543b0, r=0x5563ba35a610, this=0x7ffa854aef90) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#18 doActivate<false> (sender=0x7ffa86505d70, signal_index=6, argv=argv@entry=0x7ffcfe5543b0) at kernel/qobject.cpp:3886
#19 0x00007ffac2839c20 in QMetaObject::activate (sender=sender@entry=0x7ffa86505d70, m=m@entry=0x7ffac3978660 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffcfe5543b0) at kernel/qobject.cpp:3946
#20 0x00007ffac39248cc in KJob::result (this=this@entry=0x7ffa86505d70, _t1=<optimized out>, _t1@entry=0x7ffa86505d70, _t2=...) at /usr/src/debug/kcoreaddons-5.77.0-1.1.x86_64/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:576
#21 0x00007ffac3928ed3 in KJob::finishJob (this=0x7ffa86505d70, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons-5.77.0-1.1.x86_64/src/lib/jobs/kjob.cpp:93
#22 0x00007ffac2836311 in QObject::event (this=0x7ffa86505d70, e=0x5563bd2b4da0) at kernel/qobject.cpp:1314
#23 0x00007ffac33ba50f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x7ffa86505d70, e=0x5563bd2b4da0) at kernel/qapplication.cpp:3632
#24 0x00007ffac280a2ea in QCoreApplication::notifyInternal2 (receiver=0x7ffa86505d70, event=0x5563bd2b4da0) at kernel/qcoreapplication.cpp:1063
#25 0x00007ffac280cd21 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5563ba07a210) at kernel/qcoreapplication.cpp:1817
#26 0x00007ffac28621b3 in postEventSourceDispatch (s=0x5563ba19ba20) at kernel/qeventdispatcher_glib.cpp:277
#27 0x00007ffabc7cee57 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#28 0x00007ffabc7cf1d8 in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007ffabc7cf28f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#30 0x00007ffac286183f in QEventDispatcherGlib::processEvents (this=0x5563ba19bb60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#31 0x00007ffac2808cab in QEventLoop::exec (this=this@entry=0x7ffcfe5547a0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#32 0x00007ffac2810f20 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#33 0x00007ffac2c6a1bc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#34 0x00007ffac33ba485 in QApplication::exec () at kernel/qapplication.cpp:2824
#35 0x00005563b909d447 in main (argc=<optimized out>, argv=<optimized out>) at /usr/include/qt5/QtCore/qcoreapplication.h:116
[Inferior 1 (process 6891) detached]

Possible duplicates by query: bug 425205, bug 411883, bug 384513, bug 381621.

Reported using DrKonqi
Comment 1 BingMyBong 2021-01-13 13:06:36 UTC
(In reply to BingMyBong from comment #0)

"Retrieving messages..." should read "Retrieving Folder Contents"
Comment 2 aristsakas 2026-01-27 19:36:54 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with KMail 25.12.1.
Comment 3 cwo 2026-01-28 21:14:10 UTC
.