Bug 286277

Summary: crash on manually applying filters on multiple emails [@ Akonadi::Job::~Job]
Product: [Frameworks and Libraries] Akonadi Reporter: Milian Wolff <mail>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: iivanich
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Milian Wolff 2011-11-10 16:25:39 UTC
Application: kmail (4.8 pre)
KDE Platform Version: 4.7.3 (4.7.3)
Qt Version: 4.7.4
Operating System: Linux 3.0-ARCH x86_64

-- Information about the crash:
I selected a bunch of spam messages and hit the shortcut to manually apply the "mark as spam" filter action. I saw how a few of the messages where filtered but then kmail crashed.

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

Thread 5 (Thread 0x7f21c75a2700 (LWP 29530)):
#0  0x00007f21db527b54 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f21d64655ba in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f21d64656a9 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f21db523df0 in start_thread () from /lib/libpthread.so.0
#4  0x00007f21daac639d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f21c6c89700 (LWP 29531)):
#0  0x00007f21daabe123 in poll () from /lib/libc.so.6
#1  0x00007f21d2bfcd08 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f21d2bfd1c9 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f21db8bf66e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f21db893a92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f21db893c97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f21db7ab13f in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f21db7adbc5 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f21db523df0 in start_thread () from /lib/libpthread.so.0
#9  0x00007f21daac639d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f21c4f7f700 (LWP 1295)):
#0  0x00007f21db527ecb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f21db7adfde in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f21db7a297f in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f21db7adbc5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f21db523df0 in start_thread () from /lib/libpthread.so.0
#5  0x00007f21daac639d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f21bd0c8700 (LWP 1384)):
#0  0x00007f21db527ecb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f21db7adfde in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f21db7a297f in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f21db7adbc5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f21db523df0 in start_thread () from /lib/libpthread.so.0
#5  0x00007f21daac639d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f21cc862780 (LWP 29526)):
[KCrash Handler]
#6  0x00007f21db8ab5ce in QObject::~QObject() () from /usr/lib/libQtCore.so.4
#7  0x00007f21db8af549 in QTimer::~QTimer() () from /usr/lib/libQtCore.so.4
#8  0x00007f21db8a64a5 in QObjectPrivate::deleteChildren() () from /usr/lib/libQtCore.so.4
#9  0x00007f21db8aba79 in QObject::~QObject() () from /usr/lib/libQtCore.so.4
#10 0x00007f21dd963591 in Akonadi::Job::~Job (this=0x13d0c80, __in_chrg=<optimized out>) at /home/milian/projects/kde4/kdepimlibs/akonadi/job.cpp:252
#11 0x00007f21dd94f8b8 in Akonadi::ItemFetchJob::~ItemFetchJob (this=0x13d0c80, __in_chrg=<optimized out>) at /home/milian/projects/kde4/kdepimlibs/akonadi/itemfetchjob.cpp:158
#12 0x00007f21dd94f8ea in Akonadi::ItemFetchJob::~ItemFetchJob (this=0x13d0c80, __in_chrg=<optimized out>) at /home/milian/projects/kde4/kdepimlibs/akonadi/itemfetchjob.cpp:160
#13 0x00007f21db8ab1b8 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#14 0x00007f21dc570ae4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007f21dc575951 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007f21df429bb6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#17 0x00007f21db89489c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#18 0x00007f21db897c2f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#19 0x00007f21db8bf1a3 in ?? () from /usr/lib/libQtCore.so.4
#20 0x00007f21d2bfc7fd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x00007f21d2bfcff8 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007f21d2bfd1c9 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0x00007f21db8bf606 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0x00007f21dc613eee in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007f21db893a92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0x00007f21db893c97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#27 0x00007f21db897eab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#28 0x00000000004036a6 in main (argc=1, argv=0x7fff886840e8) at /home/milian/projects/kde4/kdepim/kmail/main.cpp:145

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2012-08-18 22:05:22 UTC
*** Bug 283535 has been marked as a duplicate of this bug. ***
Comment 2 Denis Kurz 2016-09-24 20:42:00 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 22:03:32 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.