Bug 299295

Summary: KMail crashes after attempting to delete unread messages when viewing with a filter, Unread messages. (Gmail IMAP)
Product: [Frameworks and Libraries] Akonadi Reporter: spammailsukz
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: joost392
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description spammailsukz 2012-05-03 12:15:08 UTC
Application: kontact (4.8.2)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic-pae i686
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Accessing Gmail IMAP, filter view on unread messages, deleting multiple messages from that same view without viewing them.  It always crashes.  Then after restarting the application I get duplicate message notifications where I must choose between two identical messages.  This error message continues through every message that was deleted in the Unread Message view, which takes about 10 seconds to resolve for each message, it locks up KDE during the time it takes to resolve the message.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb21f3980 (LWP 4461))]

Thread 4 (Thread 0xafbd8b40 (LWP 4462)):
#0  0xb77c5424 in __kernel_vsyscall ()
#1  0xb39fc96b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb61013dc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb587f263 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb587f37f in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb39f8d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb60f3ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xaf2b7b40 (LWP 4463)):
#0  0xb374adcd in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0xb635a315 in do_gettime (frac=0xaf2b7000, sec=0xaf2b6ff8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb6444226 in QTimerInfoList::updateCurrentTime (this=0xae902074) at kernel/qeventdispatcher_unix.cpp:343
#4  0xb644457a in QTimerInfoList::timerWait (this=0xae902074, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0xb6442e23 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xaf2b70ec) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb3925762 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb3925f6f in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb39261c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb64438e7 in QEventDispatcherGlib::processEvents (this=0xae900468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#10 0xb640f50d in QEventLoop::processEvents (this=0xaf2b7270, flags=...) at kernel/qeventloop.cpp:149
#11 0xb640f7a9 in QEventLoop::exec (this=0xaf2b7270, flags=...) at kernel/qeventloop.cpp:204
#12 0xb62f894c in QThread::exec (this=0x8714488) at thread/qthread.cpp:501
#13 0xb62f8a3b in QThread::run (this=0x8714488) at thread/qthread.cpp:568
#14 0xb62fbde0 in QThreadPrivate::start (arg=0x8714488) at thread/qthread_unix.cpp:298
#15 0xb39f8d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#16 0xb60f3ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xaac5eb40 (LWP 4580)):
#0  0xb77c5424 in __kernel_vsyscall ()
#1  0xb60e5380 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb3933a3b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb392606e in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb39261c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb64438e7 in QEventDispatcherGlib::processEvents (this=0xabd02eb0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb640f50d in QEventLoop::processEvents (this=0xaac5e240, flags=...) at kernel/qeventloop.cpp:149
#7  0xb640f7a9 in QEventLoop::exec (this=0xaac5e240, flags=...) at kernel/qeventloop.cpp:204
#8  0xb62f894c in QThread::exec (this=0x9036490) at thread/qthread.cpp:501
#9  0xb63ecb5d in QInotifyFileSystemWatcherEngine::run (this=0x9036490) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb62fbde0 in QThreadPrivate::start (arg=0x9036490) at thread/qthread_unix.cpp:298
#11 0xb39f8d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb60f3ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb21f3980 (LWP 4461)):
[KCrash Handler]
#7  0xb6423d37 in QObject::thread (this=0xa26bfa0) at kernel/qobject.cpp:1371
#8  0xb642aba2 in QObject::QObject (this=0x9713ee0, parent=0xa26bfa0) at kernel/qobject.cpp:725
#9  0xb6685952 in KJob::KJob (this=0x9713ee0, dd=..., parent=0xa26bfa0) at ../../kdecore/jobs/kjob.cpp:58
#10 0xb6684ff8 in KCompositeJob::KCompositeJob (this=0x9713ee0, parent=0xa26bfa0) at ../../kdecore/jobs/kcompositejob.cpp:33
#11 0xb40f6256 in Akonadi::Job::Job (this=0x9713ee0, dd=0x9aeb688, parent=0xa26bfa0) at ../../akonadi/job.cpp:247
#12 0xb40d997e in Akonadi::ItemCreateJob::ItemCreateJob (this=0x9713ee0, item=..., collection=..., parent=0x0) at ../../akonadi/itemcreatejob.cpp:53
#13 0xb4096f97 in Akonadi::ConflictHandler::useBothItems (this=0xa470e70) at ../../akonadi/conflicthandling/conflicthandler.cpp:128
#14 0xb4097108 in Akonadi::ConflictHandler::resolve (this=0xa470e70) at ../../akonadi/conflicthandling/conflicthandler.cpp:91
#15 0xb6422c01 in QMetaCallEvent::placeMetaCall (this=0xa34b850, object=0xa470e70) at kernel/qobject.cpp:525
#16 0xb642bc7b in QObject::event (this=0xa470e70, e=0xa34b850) at kernel/qobject.cpp:1195
#17 0xb6978ed4 in notify_helper (e=0xa34b850, receiver=0xa470e70, this=0x8712820) at kernel/qapplication.cpp:4559
#18 QApplicationPrivate::notify_helper (this=0x8712820, receiver=0xa470e70, e=0xa34b850) at kernel/qapplication.cpp:4531
#19 0xb697e30d in QApplication::notify (this=0xa34b850, receiver=0xa470e70, e=0xa34b850) at kernel/qapplication.cpp:4288
#20 0xb74fdb21 in KApplication::notify (this=0xbfc2e704, receiver=0xa470e70, event=0xa34b850) at ../../kdeui/kernel/kapplication.cpp:311
#21 0xb641097e in QCoreApplication::notifyInternal (this=0xbfc2e704, receiver=0xa470e70, event=0xa34b850) at kernel/qcoreapplication.cpp:876
#22 0xb6414ad8 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=0x86eaab8) at kernel/qcoreapplication.cpp:1500
#24 0xb6414e0c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#25 0xb6443494 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#26 postEventSourceDispatch (s=0x8716ba0) at kernel/qeventdispatcher_glib.cpp:279
#27 0xb3925cda in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#28 0xb39260e5 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#29 0xb39261c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#30 0xb6443887 in QEventDispatcherGlib::processEvents (this=0x86eb818, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#31 0xb6a31aaa in QGuiEventDispatcherGlib::processEvents (this=0x86eb818, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#32 0xb640f50d in QEventLoop::processEvents (this=0xbfc2e664, flags=...) at kernel/qeventloop.cpp:149
#33 0xb640f7a9 in QEventLoop::exec (this=0xbfc2e664, flags=...) at kernel/qeventloop.cpp:204
#34 0xb6414eba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#35 0xb6976a74 in QApplication::exec () at kernel/qapplication.cpp:3820
#36 0x0804ac91 in main (argc=347494132, argv=0x14b656f4) at ../../../kontact/src/main.cpp:218

Possible duplicates by query: bug 294851.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-02-28 16:49:40 UTC
*** Bug 304244 has been marked as a duplicate of this bug. ***
Comment 2 Denis Kurz 2016-09-24 20:41:15 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:22:50 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.