Bug 313249 - Mail filter agent crashed when filtering manually
Summary: Mail filter agent crashed when filtering manually
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: 4.9
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-14 15:47 UTC by Andreas Hencke
Modified: 2013-01-15 00:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.10
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Hencke 2013-01-14 15:47:12 UTC
Application: akonadi_mailfilter_agent (4.9)
KDE Platform Version: 4.9.97
Qt Version: 4.8.3
Operating System: Linux 3.5.0-21-generic i686
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:

I opened kmail (via kontact), filter agent failed (as usual), so that I filtered with the shortcut  
Strg+J and nothing happened, then I opened the kontext-menue and clicked at apply all filters then mail-filter agent crashed.

-- Backtrace:
Application: Agent zur E-Mail-Filterung (akonadi_mailfilter_agent), signal: Floating point exception
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#7  0x08056cc1 in FilterManager::Private::slotItemsFetchedForFilter (this=0x9c873a0, items=...) at ../../mailfilteragent/filtermanager.cpp:124
#8  0xb69a5ed6 in QMetaObject::activate (sender=0x9e8e230, m=0x80656dc <Akonadi::ItemFetchJob::staticMetaObject>, local_signal_index=0, argv=0xbfbb9388) at kernel/qobject.cpp:3547
#9  0xb6c4cdf5 in Akonadi::ItemFetchJob::itemsReceived (this=this@entry=0x9e8e230, _t1=...) at ./moc_itemfetchjob.cpp:106
#10 0xb6c4df7c in timeout (this=0x9e7def0) at ../../akonadi/itemfetchjob.cpp:71
#11 Akonadi::ItemFetchJob::qt_static_metacall (_o=0x9e8e230, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfbb9498) at ./moc_itemfetchjob.cpp:57
#12 0xb69a5ed6 in QMetaObject::activate (sender=0x9e8e230, m=0xb705248c <KJob::staticMetaObject>, local_signal_index=3, argv=0xbfbb9498) at kernel/qobject.cpp:3547
#13 0xb6e9bcd5 in KJob::result (this=this@entry=0x9e8e230, _t1=_t1@entry=0x9e8e230) at ./kjob.moc:208
#14 0xb6e9bd28 in KJob::emitResult (this=0x9e8e230) at ../../kdecore/jobs/kjob.cpp:318
#15 0xb6c6056e in Akonadi::JobPrivate::delayedEmitResult (this=0x9e7def0) at ../../akonadi/job.cpp:144
#16 0xb699f9aa in QMetaCallEvent::placeMetaCall (this=0x9e63210, object=0x9e8e230) at kernel/qobject.cpp:525
#17 0xb69a3eeb in QObject::event (this=0x9e8e230, e=0x9e63210) at kernel/qobject.cpp:1195
#18 0xb5aba39c in QApplicationPrivate::notify_helper (this=0x9c23648, receiver=0x9e8e230, e=0x9e63210) at kernel/qapplication.cpp:4562
#19 0xb5abedaf in QApplication::notify (this=0x9e63210, receiver=0x9e8e230, e=0x9e63210) at kernel/qapplication.cpp:3944
#20 0xb72392b1 in KApplication::notify (this=0xbfbb9cc4, receiver=0x9e8e230, event=0x9e63210) at ../../kdeui/kernel/kapplication.cpp:311
#21 0xb698d78e in QCoreApplication::notifyInternal (this=0xbfbb9cc4, receiver=0x9e8e230, event=0x9e63210) at kernel/qcoreapplication.cpp:915
#22 0xb699197d in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9bdc130) at kernel/qcoreapplication.cpp:1539
#24 0xb6991c0c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1432
#25 0xb69bf804 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#26 postEventSourceDispatch (s=0x9c24aa0) at kernel/qeventdispatcher_glib.cpp:279
#27 0xb46169e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#28 0xb4616d80 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#29 0xb4616e61 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#30 0xb69bf981 in QEventDispatcherGlib::processEvents (this=0x9bdcea0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#31 0xb5b709aa in QGuiEventDispatcherGlib::processEvents (this=0x9bdcea0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#32 0xb698c26c in QEventLoop::processEvents (this=this@entry=0xbfbb9c28, flags=...) at kernel/qeventloop.cpp:149
#33 0xb698c561 in QEventLoop::exec (this=0xbfbb9c28, flags=...) at kernel/qeventloop.cpp:204
#34 0xb6991cba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#35 0xb5ab7fc4 in QApplication::exec () at kernel/qapplication.cpp:3823
#36 0xb6ba0341 in Akonadi::AgentBase::init (r=0x9d3df90) at ../../akonadi/agentbase.cpp:576
#37 0x0805c9ab in Akonadi::AgentBase::init<MailFilterAgent> (argc=argc@entry=3, argv=argv@entry=0xbfbb9da4) at /usr/include/akonadi/agentbase.h:343
#38 0x08050ceb in main (argc=3, argv=0xbfbb9da4) at ../../mailfilteragent/mailfilteragent.cpp:292

This bug may be a duplicate of or related to bug 303292.

Possible duplicates by query: bug 304824.

Reported using DrKonqi
Comment 1 Allen Winter 2013-01-15 00:58:50 UTC
Git commit bfaee890bfde38035573b13ecdaafe11853a6850 by Allen Winter.
Committed on 15/01/2013 at 01:57.
Pushed by winterz into branch 'KDE/4.10'.

in slotItemsFetchedForFilter(), avoid a possible divide by zero.
FIXED-IN: 4.10

M  +7    -7    mailfilteragent/filtermanager.cpp

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