Bug 235444

Summary: kmail crashes on startup in KMFilterActionAddTag::argsFromString
Product: [Applications] kmail Reporter: Marcin Gryszkalis <mg>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: cwickert, doublewitt, n.underwood78, riccardo.pasquini
Priority: NOR    
Version: 1.13.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marcin Gryszkalis 2010-04-26 15:46:54 UTC
Application: kmail (1.13.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.33-gentoo-ines i686
Distribution (Platform): Gentoo Packages

-- Information about the crash:
I edited filters configuration few days before closing KMail (these filters worked ok). After closing I cannot start KMail anymore. I'll try to edit config by hand I report here if anything is related.

The crash can be reproduced every time.

 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  QBasicAtomicInt::ref (this=0x962ecf4, other=...) at src/corelib/arch/qatomic_i386.h:120
#7  QString::operator= (this=0x962ecf4, other=...) at tools/qstring.cpp:1280
#8  0xb6c5f67b in KMFilterActionAddTag::argsFromString (this=0x962ece8, argsStr=...) at /usr/src/debug/kde-base/kmail-4.4.2/kmail-4.4.2/kmail/kmfilteraction.cpp:941
#9  0xb6c7fb2d in KMFilter::readConfig (this=0x9880c80, config=...) at /usr/src/debug/kde-base/kmail-4.4.2/kmail-4.4.2/kmail/kmfilter.cpp:295
#10 0xb6c80f89 in KMFilter (this=0x9880c80, aConfig=..., popFilter=false) at /usr/src/debug/kde-base/kmail-4.4.2/kmail-4.4.2/kmail/kmfilter.cpp:67
#11 0xb6c592e0 in KMail::FilterImporterExporter::readFiltersFromConfig (config=..., bPopFilter=false) at /usr/src/debug/kde-base/kmail-4.4.2/kmail-4.4.2/kmail/filterimporterexporter.cpp:114
#12 0xb6c577ec in KMFilterMgr::readConfig (this=0x98d37a8) at /usr/src/debug/kde-base/kmail-4.4.2/kmail-4.4.2/kmail/kmfiltermgr.cpp:74
#13 0xb6d2e933 in KMKernel::init (this=0xbff202b8) at /usr/src/debug/kde-base/kmail-4.4.2/kmail-4.4.2/kmail/kmkernel.cpp:1543
#14 0x0804ae52 in main (argc=3, argv=0xbff20544) at /usr/src/debug/kde-base/kmail-4.4.2/kmail-4.4.2/kmail/main.cpp:131

Reported using DrKonqi
Comment 1 Marcin Gryszkalis 2010-04-26 18:24:20 UTC
It looks like some settings got lost on exit (including message tags).

Crash was caused by filters containing reference to tag, like:

action-args-0=xyz
action-name-0=add tag

after removing such lines from kmailrc kmail started (reporting lack of action).
Comment 2 Riccardo Pasquini 2010-10-25 11:12:38 UTC
*** Bug 255189 has been marked as a duplicate of this bug. ***
Comment 3 Christophe Marin 2011-04-24 14:56:09 UTC
*** Bug 268028 has been marked as a duplicate of this bug. ***
Comment 4 Christophe Marin 2011-07-08 13:01:41 UTC
*** Bug 275105 has been marked as a duplicate of this bug. ***
Comment 5 Christophe Marin 2011-12-14 10:50:29 UTC
*** Bug 288958 has been marked as a duplicate of this bug. ***
Comment 6 Myriam Schweingruber 2012-08-19 11:02:39 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding