Bug 270281 - Crash on manual filtering of DIMAP account
Summary: Crash on manual filtering of DIMAP account
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: filtering (show other bugs)
Version: Git (master)
Platform: Compiled Sources Linux
: NOR critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 270280 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-07 07:22 UTC by Ryan Rix
Modified: 2011-08-30 14:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Rix 2011-04-07 07:22:39 UTC
Version:           Git (master) (using Devel) 
OS:                Linux

Application: kmail (2.0.89)
KDE Platform Version: 4.6.41 (4.7 >= 20110106) (Compiled from sources)
Qt Version: 4.7.1
Operating System: Linux 2.6.35.11-83.fc14.x86_64 x86_64
Distribution: "Fedora release 14 (Laughlin)"

-- Information about the crash:
- What I was doing when the application crashed:
At the end of a manual filtering operation KMail will crash with the attached backtrace. manual and automatic filtering on a different account works perfectly fine, however. As far as I can tell from the backtrace, it's crashing in the progress bar code, but other items which use a progress bar work just fine. Looks like it's emitting a signal which is caught by itself or something that's causing the codepath to repeat until the stack goes snap.

- Unusual behavior I noticed:
Well, automatic filtering doesn't work and manual filtering is janky. not exactly sure what is going on, but it seems related to https://bugs.kde.org/show_bug.cgi?id=257984 . This filtering bug could be triggering some issue in this code.

- Custom settings of the application:
dIMAP account

KMail
Version 2.0.89
Using KDE Development Platform 4.6.41 (4.7 >= 20110106)

I'll rebuild trunk tonight, I think, have to clear out more disk space, first though...

The crash can be reproduced every time.


Reproducible: Always
Comment 1 Ryan Rix 2011-04-07 07:33:24 UTC
*** Bug 270280 has been marked as a duplicate of this bug. ***
Comment 2 Ryan Rix 2011-04-07 07:35:31 UTC
Trimmed of identical frames.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f2b67877840 (LWP 14800))]

Thread 3 (Thread 0x7f2b5c976700 (LWP 14804)):
#0  0x0000003eacc0b8c4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003dfe7287f4 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#2  0x0000003eacc06d5b in start_thread () from /lib64/libpthread.so.0
#3  0x0000003eac0e4aad in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f2b586d5700 (LWP 18354)):
#0  0x0000003eabc416d7 in g_main_context_query (context=0x64984a0, max_priority=2147483647, timeout=0x7f2b586d4be8, fds=0x6187ac0, n_fds=2) at gmain.c:2529
#1  0x0000003eabc4227b in g_main_context_iterate (context=0x64984a0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2762
#2  0x0000003eabc428ad in g_main_context_iteration (context=0x64984a0, may_block=1) at gmain.c:2843
#3  0x0000003eb5586916 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x0000003eb555ab42 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x0000003eb555ad8c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x0000003eb546fed4 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x0000003eb553c5f8 in ?? () from /usr/lib64/libQtCore.so.4
#8  0x0000003eb54726ee in ?? () from /usr/lib64/libQtCore.so.4
#9  0x0000003eacc06d5b in start_thread () from /lib64/libpthread.so.0
#10 0x0000003eac0e4aad in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f2b67877840 (LWP 14800)):
[KCrash Handler]
#6  0x0000003eb556fe27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#7  0x00007f2b6fc29640 in KPIM::ProgressItem::progressItemProgress (this=<value optimized out>, _t1=0x5d1e550, _t2=315) at /home/rrix/dev/trunk/build/kdepim/libkdepim/progressmanager.moc:114
#8  0x00007f2b6bc7e9ff in updateProgress (this=0x1de16b0, items=<value optimized out>) at /home/rrix/dev/trunk/kdepim/libkdepim/progressmanager.h:157
#9  MailCommon::FilterManager::Private::slotItemsFetchedForFilter (this=0x1de16b0, items=<value optimized out>) at /home/rrix/dev/trunk/kdepim/mailcommon/filtermanager.cpp:153
#1634 0x00007f2b6bc7f232 in MailCommon::FilterManager::qt_metacall (this=0x1db3bb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffc85d1a50) at /home/rrix/dev/trunk/build/kdepim/mailcommon/filtermanager.moc:100
#1635 0x0000003eb557004f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#1636 0x00007f2b6e2dc3c2 in Akonadi::ItemFetchJob::itemsReceived (this=<value optimized out>, _t1=<value optimized out>) at /home/rrix/dev/trunk/build/kdepimlibs/akonadi/itemfetchjob.moc:92
#1637 0x00007f2b6e2dd1ab in timeout (this=<value optimized out>, _c=<value optimized out>, _id=2, _a=0x7fffc85d1b10) at /home/rrix/dev/trunk/kdepimlibs/akonadi/itemfetchjob.cpp:71
#1638 Akonadi::ItemFetchJob::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=2, _a=0x7fffc85d1b10) at /home/rrix/dev/trunk/build/kdepimlibs/akonadi/itemfetchjob.moc:80
#1639 0x0000003eb557004f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#1640 0x0000003eb556f879 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#1641 0x0000003eb5fb78c4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#1642 0x0000003eb5fbc3da in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#1643 0x00007f2b70bc6846 in KApplication::notify (this=0x7fffc85d2620, receiver=0x6bf8e30, event=0x7fffc85d2250) at /home/rrix/dev/trunk/kdelibs/kdeui/kernel/kapplication.cpp:311
#1644 0x0000003eb555b7ac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#1645 0x0000003eb55893fe in ?? () from /usr/lib64/libQtCore.so.4
#1646 0x0000003eb55861d4 in ?? () from /usr/lib64/libQtCore.so.4
#1647 0x0000003eabc41e33 in g_main_dispatch (context=0x1d62920) at gmain.c:2149
#1648 g_main_context_dispatch (context=0x1d62920) at gmain.c:2702
#1649 0x0000003eabc42610 in g_main_context_iterate (context=0x1d62920, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
#1650 0x0000003eabc428ad in g_main_context_iteration (context=0x1d62920, may_block=1) at gmain.c:2843
#1651 0x0000003eb55868bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#1652 0x0000003eb605c59e in ?? () from /usr/lib64/libQtGui.so.4
#1653 0x0000003eb555ab42 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#1654 0x0000003eb555ad8c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#1655 0x0000003eb555f24b in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#1656 0x000000000040305e in main (argc=<value optimized out>, argv=<value optimized out>) at /home/rrix/dev/trunk/kdepim/kmail/main.cpp:145

Report to https://bugs.kde.org
Comment 3 Andre Heinecke 2011-05-25 20:09:21 UTC
Hi, 
I can not reproduce this here for me manual filtering on disconnected imap works.
Do you select all the messages in the inbox and apply your filters?

Does it also crash if you only apply all filters to some messages and not all?
(And if so can you try to bisect which message causes it to crash? )

Can you check the filter log viewer (under extras) if there is something notworthy in there?
Comment 4 Laurent Montel 2011-08-05 07:45:03 UTC
Fixed in 4.7.1/master