Bug 154422 - Filtering all messages sometimes crashes
Summary: Filtering all messages sometimes crashes
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: filtering (show other bugs)
Version: SVN trunk (KDE 4)
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-21 10:23 UTC by Klaus Dimde
Modified: 2010-01-14 17:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Dimde 2007-12-21 10:23:18 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.2 
OS:                Linux

KMail crashes (at the moment non reproducable) when filtering messages. I have a set of about 20 filter rules, all normal content filtering with "move to" results, no external programs, pipes or similar. After creating a new filter rule and choosing all messages in my incoming folder kmail crashed with:

=== Start of backtrace ===
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47318947817264 (LWP 2437)]
[KCrash handler]
#5  0x00002b094937209b in *__GI_raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
#6  0x00002b0949373580 in *__GI_abort () at abort.c:88
#7  0x00002b094936b68f in *__GI___assert_fail (
    assertion=0x2b093f302580 "serNum", 
    file=0x2b093f302470 "/sources/kde4/src/kdepim/kmail/kmmsgdict.cpp", 
    line=362, 
    function=0x2b093f302760 "static QList<long unsigned int> KMMsgDict::serNumList(QList<KMMsgBase*>)") at assert.c:78
#8  0x00002b093f0bf3f9 in KMMsgDict::serNumList (msgList=@0x7fff6d5f8b80)
    at /sources/kde4/src/kdepim/kmail/kmmsgdict.cpp:362
#9  0x00002b093f06d3f6 in KMHeaders::applyFiltersOnMsg (this=0x6c0630)
    at /sources/kde4/src/kdepim/kmail/kmheaders.cpp:1444
#10 0x00002b093f1e7cc6 in KMMainWidget::slotApplyFilters (this=0x89dc30)
    at /sources/kde4/src/kdepim/kmail/kmmainwidget.cpp:1904
#11 0x00002b093f201646 in KMMainWidget::qt_metacall (this=0x89dc30, 
    _c=QMetaObject::InvokeMetaMethod, _id=81, _a=0x7fff6d5f9250)
    at /sources/kde4/build/kdepim/kmail/kmmainwidget.moc:408
#12 0x00002b093d7dece1 in QMetaObject::activate (sender=0xa8af60, 
    from_signal_index=5, to_signal_index=6, argv=0x7fff6d5f9250)
    at kernel/qobject.cpp:3087
#13 0x00002b093d7dee93 in QMetaObject::activate (sender=0xa8af60, 
    m=0x2b09481c10a0, from_local_signal_index=1, to_local_signal_index=2, 
    argv=0x7fff6d5f9250) at kernel/qobject.cpp:3169
#14 0x00002b09478a774f in QAction::triggered (this=0xa8af60, _t1=false)
    at .moc/debug-shared/moc_qaction.cpp:208
#15 0x00002b09478a906e in QAction::activate (this=0xa8af60, 
    event=QAction::Trigger) at kernel/qaction.cpp:1114
#16 0x00002b0947c60061 in QMenuPrivate::activateAction (this=0xc63f80, 
    action=0xa8af60, action_e=QAction::Trigger, self=true)
    at widgets/qmenu.cpp:923
#17 0x00002b0947c628ca in QMenu::mouseReleaseEvent (this=0xaaae90, 
    e=0x7fff6d5f9e90) at widgets/qmenu.cpp:2093
#18 0x00002b09426c94d1 in KMenu::mouseReleaseEvent (this=0xaaae90, e=0x985)
    at /sources/kde4/src/kdelibs/kdeui/widgets/kmenu.cpp:423
#19 0x00002b09478fcade in QWidget::event (this=0xaaae90, event=0x7fff6d5f9e90)
    at kernel/qwidget.cpp:6138
#20 0x00002b0947c5e005 in QMenu::event (this=0xaaae90, e=0x7fff6d5f9e90)
    at widgets/qmenu.cpp:2182
#21 0x00002b09478aed35 in QApplicationPrivate::notify_helper (this=0x654fa0, 
    receiver=0xaaae90, e=0x7fff6d5f9e90) at kernel/qapplication.cpp:3556
#22 0x00002b09478af975 in QApplication::notify (this=0x7fff6d5fcc70, 
    receiver=0xaaae90, e=0x7fff6d5f9e90) at kernel/qapplication.cpp:3255
#23 0x00002b094261891b in KApplication::notify (this=0x7fff6d5fcc70, 
    receiver=0xaaae90, event=0x7fff6d5f9e90)
    at /sources/kde4/src/kdelibs/kdeui/kernel/kapplication.cpp:319
#24 0x00002b093d7cb1d4 in QCoreApplication::notifyInternal (
    this=0x7fff6d5fcc70, receiver=0xaaae90, event=0x7fff6d5f9e90)
    at kernel/qcoreapplication.cpp:530
#25 0x00002b09478b9f8b in QCoreApplication::sendSpontaneousEvent (
    receiver=0xaaae90, event=0x7fff6d5f9e90)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:203
#26 0x00002b09479187af in QETWidget::translateMouseEvent (this=0xaaae90, 
    event=0x7fff6d5fa860) at kernel/qapplication_x11.cpp:3774
#27 0x00002b09479167d5 in QApplication::x11ProcessEvent (this=0x7fff6d5fcc70, 
    event=0x7fff6d5fa860) at kernel/qapplication_x11.cpp:2918
#28 0x00002b0947940613 in x11EventSourceDispatch (s=0x658720, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:135
#29 0x00002b0949ac4844 in IA__g_main_context_dispatch (context=0x657920)
    at gmain.c:2061
#30 0x00002b0949ac7b2d in g_main_context_iterate (context=0x657920, block=1, 
    dispatch=1, self=<value optimized out>) at gmain.c:2694
#31 0x00002b0949ac7ffe in IA__g_main_context_iteration (context=0x657920, 
    may_block=1) at gmain.c:2753
#32 0x00002b093d7f3186 in QEventDispatcherGlib::processEvents (this=0x654390, 
    flags=@0x7fff6d5faaf0) at kernel/qeventdispatcher_glib.cpp:338
#33 0x00002b094793feaf in QGuiEventDispatcherGlib::processEvents (
    this=0x654390, flags=@0x7fff6d5fab40)
    at kernel/qguieventdispatcher_glib.cpp:191
#34 0x00002b093d7c8381 in QEventLoop::processEvents (this=0x7fff6d5fac10, 
    flags=@0x7fff6d5faba0) at kernel/qeventloop.cpp:140
#35 0x00002b093d7c84d6 in QEventLoop::exec (this=0x7fff6d5fac10, 
    flags=@0x7fff6d5fac20) at kernel/qeventloop.cpp:182
#36 0x00002b0947c62b46 in QMenu::exec (this=0xe4ec60, p=@0x7fff6d5fac80, 
    action=0x0) at widgets/qmenu.cpp:1853
#37 0x00002b093f06ab3e in KMHeaders::slotRMB (this=0x6c0630)
    at /sources/kde4/src/kdepim/kmail/kmheaders.cpp:2482
#38 0x00002b093f06abe0 in KMHeaders::rightButtonPressed (this=0x6c0630, 
    lvi=0xf456c0) at /sources/kde4/src/kdepim/kmail/kmheaders.cpp:2279
#39 0x00002b093f076144 in KMHeaders::qt_metacall (this=0x6c0630, 
    _c=QMetaObject::InvokeMetaMethod, _id=39, _a=0x7fff6d5fb2d0)
    at /sources/kde4/build/kdepim/kmail/kmheaders.moc:184
#40 0x00002b093d7dece1 in QMetaObject::activate (sender=0x6c0630, 
    from_signal_index=65, to_signal_index=65, argv=0x7fff6d5fb2d0)
    at kernel/qobject.cpp:3087
#41 0x00002b093d7df685 in QMetaObject::activate (sender=0x6c0630, 
    m=0x2b094894f740, local_signal_index=15, argv=0x7fff6d5fb2d0)
    at kernel/qobject.cpp:3149
#42 0x00002b09486b4c7e in Q3ListView::contextMenuRequested (this=0x6c0630, 
    _t1=0xf456c0, _t2=@0x7fff6d5fb3a0, _t3=0)
    at .moc/debug-shared/moc_q3listview.cpp:369
#43 0x00002b094855be7d in Q3ListView::contentsContextMenuEvent (
    this=0x6c0630, e=0x7fff6d5fb410) at itemviews/q3listview.cpp:4375
#44 0x00002b0944cd3fb9 in K3ListView::contentsContextMenuEvent (this=0x985, 
    event=0x985)
    at /sources/kde4/src/kdelibs/kde3support/kdeui/k3listview.cpp:1284
#45 0x00002b09485c5591 in Q3ScrollView::viewportContextMenuEvent (
    this=0x6c0630, e=0x7fff6d5fbed0) at widgets/q3scrollview.cpp:1918
#46 0x00002b09485c6910 in Q3ScrollView::eventFilter (this=0x6c0630, 
    obj=0x89ef40, e=0x7fff6d5fbed0) at widgets/q3scrollview.cpp:1562
#47 0x00002b094855c573 in Q3ListView::eventFilter (this=0x6c0630, o=0x89ef40, 
    e=0x7fff6d5fbed0) at itemviews/q3listview.cpp:3792
#48 0x00002b093f076c66 in KMHeaders::eventFilter (this=0x6c0630, o=0x89ef40, 
    e=0x7fff6d5fbed0) at /sources/kde4/src/kdepim/kmail/kmheaders.cpp:287
#49 0x00002b09478aecb7 in QApplicationPrivate::notify_helper (this=0x654fa0, 
    receiver=0x89ef40, e=0x7fff6d5fbed0) at kernel/qapplication.cpp:3548
#50 0x00002b09478b00d1 in QApplication::notify (this=0x7fff6d5fcc70, 
    receiver=0x89ef40, e=0x7fff6d5fbed0) at kernel/qapplication.cpp:3340
#51 0x00002b094261891b in KApplication::notify (this=0x7fff6d5fcc70, 
    receiver=0x89ef40, event=0x7fff6d5fbed0)
    at /sources/kde4/src/kdelibs/kdeui/kernel/kapplication.cpp:319
#52 0x00002b093d7cb1d4 in QCoreApplication::notifyInternal (
    this=0x7fff6d5fcc70, receiver=0x89ef40, event=0x7fff6d5fbed0)
    at kernel/qcoreapplication.cpp:530
#53 0x00002b09478b9f8b in QCoreApplication::sendSpontaneousEvent (
    receiver=0x89ef40, event=0x7fff6d5fbed0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:203
#54 0x00002b0947918b4f in QETWidget::translateMouseEvent (this=0x89ef40, 
    event=0x7fff6d5fc720) at kernel/qapplication_x11.cpp:3873
#55 0x00002b09479167d5 in QApplication::x11ProcessEvent (this=0x7fff6d5fcc70, 
    event=0x7fff6d5fc720) at kernel/qapplication_x11.cpp:2918
#56 0x00002b0947940613 in x11EventSourceDispatch (s=0x658720, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:135
#57 0x00002b0949ac4844 in IA__g_main_context_dispatch (context=0x657920)
    at gmain.c:2061
#58 0x00002b0949ac7b2d in g_main_context_iterate (context=0x657920, block=1, 
    dispatch=1, self=<value optimized out>) at gmain.c:2694
#59 0x00002b0949ac7ffe in IA__g_main_context_iteration (context=0x657920, 
    may_block=1) at gmain.c:2753
#60 0x00002b093d7f3186 in QEventDispatcherGlib::processEvents (this=0x654390, 
    flags=@0x7fff6d5fc9b0) at kernel/qeventdispatcher_glib.cpp:338
#61 0x00002b094793feaf in QGuiEventDispatcherGlib::processEvents (
    this=0x654390, flags=@0x7fff6d5fca00)
    at kernel/qguieventdispatcher_glib.cpp:191
#62 0x00002b093d7c8381 in QEventLoop::processEvents (this=0x7fff6d5fcab0, 
    flags=@0x7fff6d5fca60) at kernel/qeventloop.cpp:140
#63 0x00002b093d7c84d6 in QEventLoop::exec (this=0x7fff6d5fcab0, 
    flags=@0x7fff6d5fcac0) at kernel/qeventloop.cpp:182
#64 0x00002b093d7cb94e in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:759
#65 0x00002b09478ae90c in QApplication::exec ()
    at kernel/qapplication.cpp:3053
#66 0x0000000000402e24 in main (argc=3, argv=0x7fff6d5fcdf8)
    at /sources/kde4/src/kdepim/kmail/main.cpp:129
#0  0x00002b09493d81b0 in __nanosleep_nocancel () from /lib/libc.so.6

=== end of backtrace ===

I tried to create a reproducable scenario expecially if it crashes on a certain message but then some of my mails where crippled (everthing set to "unknown" or "no topic") and now I can't trigger the crash any more. 

Some information
kde{libs,pimlibs,base,pim} updated from svn and build yesterday. Distribution is clfs, system Athlon64. Everything compiled from sources and installed as root in /opt/kde4
Comment 1 Björn Ruberg 2010-01-14 01:31:14 UTC
Is  this still a problem with a recent kmail version?
Comment 2 Klaus Dimde 2010-01-14 17:43:32 UTC
No, did not occur since kde 4.x is stable. I think, bug can be closed.