filter agent crashes when trying to filter messages

Bug #1035105 reported by Joshua Kugler
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Akonadi
Fix Released
Critical
Kubuntu PPA
Fix Released
Undecided
Unassigned

Bug Description

Application: akonadi_mailfilter_agent (4.9)
KDE Platform Version: 4.9.00
Qt Version: 4.8.1
Operating System: Linux 3.2.0-27-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
I had selected all the messages in a folder, and selected "apply all filters." It filtered a couple hundred, then crashed. I tried again, and it crashed again right away.

The crash can be reproduced every time.

Revision history for this message
In , Joshua Kugler (jkugler) wrote :
Download full text (4.7 KiB)

Application: akonadi_mailfilter_agent (4.9)
KDE Platform Version: 4.9.00
Qt Version: 4.8.1
Operating System: Linux 3.2.0-27-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
I had selected all the messages in a folder, and selected "apply all filters." It filtered a couple hundred, then crashed. I tried again, and it crashed again right away.

The crash can be reproduced every time.

-- Backtrace:
Application: Mail Filter Agent (akonadi_mailfilter_agent), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6 0x00007f4f002a1500 in typeinfo for KMime::Headers::BasePrivate () from /usr/lib/libkmime.so.4
#7 0x00007f4f02218dff in MailCommon::FilterActionRewriteHeader::process (this=<optimized out>, context=...) at ../../mailcommon/filter/filteractionrewriteheader.cpp:76
#8 0x00007f4f02245d1c in MailCommon::MailFilter::execActions (this=0x23c7350, context=..., stopIt=@0x7fff8a44803f: false) at ../../mailcommon/filter/mailfilter.cpp:141
#9 0x0000000000411615 in FilterManager::process (this=0x2327f00, mailFilters=..., item=..., requestedPart=<optimized out>, set=FilterManager::Explicit, account=false, accountId=...) at ../../mailfilteragent/filtermanager.cpp:524
#10 0x0000000000411d69 in FilterManager::Private::slotItemsFetchedForFilter (this=0x2336460, items=...) at ../../mailfilteragent/filtermanager.cpp:136
#11 0x00007f4f006b0281 in QMetaObject::activate (sender=0x266ae30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff8a4483c0) at kernel/qobject.cpp:3547
#12 0x00007f4f00d68522 in Akonadi::ItemFetchJob::itemsReceived (this=<optimized out>, _t1=...) at ./itemfetchjob.moc:106
#13 0x00007f4f00d695dc in timeout (this=0x25df580) at ../../akonadi/itemfetchjob.cpp:71
#14 Akonadi::ItemFetchJob::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./itemfetchjob.moc:57
#15 0x00007f4f006b0281 in QMetaObject::activate (sender=0x25d4c40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#16 0x00007f4f006b5179 in QObject::event (this=0x25d4c40, e=<optimized out>) at kernel/qobject.cpp:1157
#17 0x00007f4efee44894 in notify_helper (e=0x7fff8a448bc0, receiver=0x25d4c40, this=0x22aef50) at kernel/qapplication.cpp:4559
#18 QApplicationPrivate::notify_helper (this=0x22aef50, receiver=0x25d4c40, e=0x7fff8a448bc0) at kernel/qapplication.cpp:4531
#19 0x00007f4efee49713 in QApplication::notify (this=0x7fff8a448ea0, receiver=0x25d4c40, e=0x7fff8a448bc0) at kernel/qapplication.cpp:4420
#20 0x00007f4f017ad456 in KApplication::notify (this=0x7fff8a448ea0, receiver=0x25d4c40, event=0x7fff8a448bc0) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x00007f4f0069be9c in QCoreApplication::notifyInternal (this=0x7fff8a448ea0, receiver=0x25d4c40, event=0x7fff8a448bc0) at kernel/qcoreapplication.cpp:876
#22 0x00007f4f006cd1f2 in sendEvent (event=0x7fff8a448bc0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#23 QTimerInfoList::activateTimers (this=0x22b0720) at kernel/qeventdispatcher_unix.cpp:611
#24 0x00007f4f006cac0d in ...

Read more...

Revision history for this message
In , Joshua Kugler (jkugler) wrote :

Addendum: after the filter agent crashes, mail will no longer filter, and I have to restart Akonadi to get filtering working again.

Revision history for this message
In , Joshua Kugler (jkugler) wrote :

Another addendum. It seems if I get mail filter running, I can filter one message at a time. But if I select too many to filter, and then hit 'Ctrl-J' it dies.

Revision history for this message
In , Joshua Kugler (jkugler) wrote :

Or it dies if I hit 'Ctrl-J' too fast. Siiiiigh. So aggravating. All this was working perfectly with KMail 1.

Revision history for this message
In , Joshua Kugler (jkugler) wrote :

Created attachment 73070
New crash information added by DrKonqi

akonadi_mailfilter_agent (4.9) on KDE Platform 4.9.00 using Qt 4.8.1

I was trying to filter by hand (i.e. Ctrl-J) and selected a block of messages (eight) and hit Ctrl-J. and the mail filter crashed.

-- Backtrace (Reduced):
#6 0x00007fd2b6250500 in typeinfo for KMime::Headers::BasePrivate () from /usr/lib/libkmime.so.4
#7 0x00007fd2b81c7dff in MailCommon::FilterActionRewriteHeader::process (this=<optimized out>, context=...) at ../../mailcommon/filter/filteractionrewriteheader.cpp:76
#8 0x00007fd2b81f4d1c in MailCommon::MailFilter::execActions (this=0x13aa4b0, context=..., stopIt=@0x7fff727bdbdf: false) at ../../mailcommon/filter/mailfilter.cpp:141
#9 0x0000000000411615 in FilterManager::process (this=0x1301590, mailFilters=..., item=..., requestedPart=<optimized out>, set=FilterManager::Explicit, account=false, accountId=...) at ../../mailfilteragent/filtermanager.cpp:524
#10 0x0000000000411d69 in FilterManager::Private::slotItemsFetchedForFilter (this=0x12fcbd0, items=...) at ../../mailfilteragent/filtermanager.cpp:136

Revision history for this message
In , Joshua Kugler (jkugler) wrote :

Changing to critical importance because it renders filtering unusable. With over 100 filters, I heavily rely on filtering to work properly.

Revision history for this message
Joshua Kugler (jkugler) wrote :

I can't find the place to link to the upstream bug, so here it is: https://bugs.kde.org/show_bug.cgi?id=304866

Revision history for this message
Joshua Kugler (jkugler) wrote :

These are using the 4.9.0-0ubuntu2~precise1 PPAs by the way.

Rohan Garg (rohangarg)
affects: mandriva → akonadi
no longer affects: akonadi
Changed in akonadi:
importance: Unknown → Critical
status: Unknown → New
Revision history for this message
Mark Fraser (launchpad-mfraz) wrote :

Might be related to this bug I filed a while ago https://bugs.kde.org/show_bug.cgi?id=302567. It is marked as fixed, but I'm still seeing the crashes occasionally.

Revision history for this message
In , Montel-3 (montel-3) wrote :

Git commit aaaf11099e1538ceea1af37ebdded9017a4af5b0 by Montel Laurent.
Committed on 13/08/2012 at 20:23.
Pushed by mlaurent into branch 'KDE/4.9'.

Fix Bug 304866 - filter agent crashes when trying to filter messages

FIXED-IN: 4.9.1

M +1 -1 mailcommon/filter/filteractionrewriteheader.cpp

http://commits.kde.org/kdepim/aaaf11099e1538ceea1af37ebdded9017a4af5b0

Changed in akonadi:
status: New → Fix Released
Simon Quigley (tsimonq2)
Changed in kubuntu-ppa:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.