Bug 503909

Summary: Kmail crash after activate plugin
Product: [Applications] kmail2 Reporter: wanio1ster
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: montel
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/174511/events/06606d65538f4130bee5a27fed2b5ff6/
Attachments: New crash information added by DrKonqi
Kmail with activated kmail_checkfoldersizeaccount

Description wanio1ster 2025-05-08 08:10:52 UTC
Application: kmail (6.4.0 (25.04.0))

ApplicationNotResponding [ANR]: false
Qt Version: 6.9.0
Frameworks Version: 6.13.0
Operating System: Linux 6.14.5-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 6.3.4 [CoredumpBackend]

-- Information about the crash:
After enabling a plugin (probably adblock), the program stopped launching upon restart. When the kdepim-addons package is removed, KMail starts normally. However, with the kdepim-addons package installed, KMail crashes every time.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  PimCommon::AbstractGenericPluginInterface::setParentWidget (this=this@entry=0x0, parent=0x59dbd489d800) at /usr/include/c++/14.2.1/bits/unique_ptr.h:193
#6  0x00007e7cacf51bf5 in PimCommon::PluginInterface::createPluginInterface (this=0x7e7cbb517160 <KMailPluginInterface::self()::s_self>) at /usr/src/debug/pimcommon/pimcommon-25.04.0/src/pimcommonakonadi/genericplugins/plugininterface.cpp:76
#7  0x00007e7cbb3f61c7 in KMMainWidget::setupActions (this=0x59dbd489d800) at /usr/src/debug/kmail/kmail-25.04.0/src/kmmainwidget.cpp:2922
#8  0x00007e7cbb3eaf0d in KMMainWidget::KMMainWidget (this=0x59dbd489d800, parent=<optimized out>, aGUIClient=<optimized out>, actionCollection=<optimized out>, config=<optimized out>, this=<optimized out>, parent=<optimized out>, aGUIClient=<optimized out>, actionCollection=<optimized out>, config=<optimized out>) at /usr/src/debug/kmail/kmail-25.04.0/src/kmmainwidget.cpp:242
#9  0x00007e7cbb39bbea in KMMainWin::KMMainWin (this=0x59dbd4fa6880, this=<optimized out>) at /usr/src/debug/kmail/kmail-25.04.0/src/kmmainwin.cpp:87


Reported using DrKonqi
Comment 1 wanio1ster 2025-05-08 08:10:53 UTC
Created attachment 181054 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 wanio1ster 2025-05-20 12:03:09 UTC
I found a plugin that crashes KMail, it's kmail_checkfoldersizeaccount.
After activating it, KMail shows:
KCrash: Application 'kmail' crashing... crashRecursionCounter = 2
Segmentation fault (core dumped)
Comment 3 wanio1ster 2025-05-20 12:05:05 UTC
Created attachment 181561 [details]
Kmail with activated kmail_checkfoldersizeaccount

I found a plugin that crashes KMail, it's kmail_checkfoldersizeaccount.
After activating it, KMail shows:
KCrash: Application 'kmail' crashing... crashRecursionCounter = 2
Segmentation fault (core dumped)