Bug 328735 - Kontact crashes when deleting mail
Summary: Kontact crashes when deleting mail
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-12-12 21:37 UTC by James Cain
Modified: 2017-01-07 22:33 UTC (History)
0 users

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 James Cain 2013-12-12 21:37:31 UTC
Application: kontact (4.12 rc1)
KDE Platform Version: 4.11.97
Qt Version: 4.8.4
Operating System: Linux 3.11.0-15-generic x86_64
Distribution: Ubuntu 13.10

-- Information about the crash:
- What I was doing when the application crashed: Deleting mail from a Gmail (IMAP) account. Folders do not appear to be in sync and when this happens, every email takes a long time to download. Once downloaded, if I select messages to move to trash, I will get either:

A. A message saying the message could not be moved to trash (probably because it already was a some point in the past, but is still showing up in my message list); or
B. Kontact will crash when attempting to move messages to trash.

This is new behaviour that did not happen in the past.

The crash can be reproduced sometimes.

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

Thread 6 (Thread 0x7f2e216f6700 (LWP 5959)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2e3a19b1cd in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f2e3a19b209 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f2e368c0f6e in start_thread (arg=0x7f2e216f6700) at pthread_create.c:311
#4  0x00007f2e3c9349cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7f2de0df3700 (LWP 5960)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2e39edbbbd in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f2e3a1caa76 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f2e368c0f6e in start_thread (arg=0x7f2de0df3700) at pthread_create.c:311
#4  0x00007f2e3c9349cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7f2dcaf6f700 (LWP 5970)):
#0  0x00007f2e364280ed in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f2e36428399 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2e363e8595 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2e363e87ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2e3d0ada76 in QEventDispatcherGlib::processEvents (this=0x7f2db80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f2e3d07f5ef in QEventLoop::processEvents (this=this@entry=0x7f2dcaf6ed70, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f2e3d07f8e5 in QEventLoop::exec (this=this@entry=0x7f2dcaf6ed70, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f2e3cf7e88f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00007f2e3cf80f2f in QThreadPrivate::start (arg=0x10264c0) at thread/qthread_unix.cpp:338
#9  0x00007f2e368c0f6e in start_thread (arg=0x7f2dcaf6f700) at pthread_create.c:311
#10 0x00007f2e3c9349cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f2dc9321700 (LWP 5974)):
#0  0x00007f2e364280ed in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f2e36428399 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2e363e8659 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2e363e87ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2e3d0ada76 in QEventDispatcherGlib::processEvents (this=0x7f2dbc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007f2e3d07f5ef in QEventLoop::processEvents (this=this@entry=0x7f2dc9320d30, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f2e3d07f8e5 in QEventLoop::exec (this=this@entry=0x7f2dc9320d30, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f2e3cf7e88f in QThread::exec (this=this@entry=0x19a25e0) at thread/qthread.cpp:542
#8  0x00007f2e3d060d13 in QInotifyFileSystemWatcherEngine::run (this=0x19a25e0) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x00007f2e3cf80f2f in QThreadPrivate::start (arg=0x19a25e0) at thread/qthread_unix.cpp:338
#10 0x00007f2e368c0f6e in start_thread (arg=0x7f2dc9321700) at pthread_create.c:311
#11 0x00007f2e3c9349cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f2dcb770700 (LWP 6964)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f2e3cf813e4 in wait (time=30000, this=0x256e210) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=mutex@entry=0x256f778, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f2e3cf748a5 in QThreadPoolThread::run (this=0x256c920) at concurrent/qthreadpool.cpp:141
#4  0x00007f2e3cf80f2f in QThreadPrivate::start (arg=0x256c920) at thread/qthread_unix.cpp:338
#5  0x00007f2e368c0f6e in start_thread (arg=0x7f2dcb770700) at pthread_create.c:311
#6  0x00007f2e3c9349cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f2e3f2ac800 (LWP 5958)):
[KCrash Handler]
#6  0x00007f2e3dec3424 in QTabWidget::currentWidget (this=0x13e7930) at widgets/qtabwidget.cpp:634
#7  0x00007f2dd60836f0 in MessageList::Pane::markMessageItemsAsAboutToBeRemoved(long, bool) () from /usr/lib/libmessagelist.so.4
#8  0x00007f2dd6cec86e in KMMainWidget::slotTrashMessagesCompleted(KMMoveCommand*) () from /usr/lib/libkmailprivate.so.4
#9  0x00007f2dd6d0ecf3 in ?? () from /usr/lib/libkmailprivate.so.4
#10 0x00007f2e3d094a58 in QMetaObject::activate (sender=0x31f2e00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffd2738980) at kernel/qobject.cpp:3539
#11 0x00007f2dd6cd83ef in KMMoveCommand::moveDone(KMMoveCommand*) () from /usr/lib/libkmailprivate.so.4
#12 0x00007f2dd6cd842f in KMMoveCommand::completeMove(KMCommand::Result) () from /usr/lib/libkmailprivate.so.4
#13 0x00007f2e3d094a58 in QMetaObject::activate (sender=sender@entry=0x29d3bf0, m=m@entry=0x7f2e3d898600 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fffd2738ad0) at kernel/qobject.cpp:3539
#14 0x00007f2e3d5091f2 in KJob::result (this=this@entry=0x29d3bf0, _t1=_t1@entry=0x29d3bf0) at ./kjob.moc:208
#15 0x00007f2e3d509230 in KJob::emitResult (this=0x29d3bf0) at ../../kdecore/jobs/kjob.cpp:318
#16 0x00007f2e3b94c1c1 in ?? () from /usr/lib/libakonadi-kde.so.4
#17 0x00007f2e3b98ce39 in ?? () from /usr/lib/libakonadi-kde.so.4
#18 0x00007f2e3d094a58 in QMetaObject::activate (sender=0x1223a70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#19 0x00007f2e3d094a58 in QMetaObject::activate (sender=sender@entry=0x1359648, m=m@entry=0x7f2e3d3e2540 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#20 0x00007f2e3d0dd780 in QIODevice::readyRead (this=this@entry=0x1359648) at .moc/release-shared/moc_qiodevice.cpp:105
#21 0x00007f2e37970b3d in QAbstractSocketPrivate::canReadNotification (this=0x1303f40) at socket/qabstractsocket.cpp:654
#22 0x00007f2e37979b8d in QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1151
#23 0x00007f2e3da70dfc in QApplicationPrivate::notify_helper (this=this@entry=0xe03570, receiver=receiver@entry=0x12cea60, e=e@entry=0x7fffd2739080) at kernel/qapplication.cpp:4567
#24 0x00007f2e3da77470 in QApplication::notify (this=this@entry=0x7fffd2739d20, receiver=receiver@entry=0x12cea60, e=e@entry=0x7fffd2739080) at kernel/qapplication.cpp:4353
#25 0x00007f2e3e77ad9a in KApplication::notify (this=0x7fffd2739d20, receiver=0x12cea60, event=0x7fffd2739080) at ../../kdeui/kernel/kapplication.cpp:311
#26 0x00007f2e3d0808bd in QCoreApplication::notifyInternal (this=0x7fffd2739d20, receiver=0x12cea60, event=event@entry=0x7fffd2739080) at kernel/qcoreapplication.cpp:946
#27 0x00007f2e3d0ae590 in sendEvent (event=0x7fffd2739080, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#28 socketNotifierSourceDispatch (source=0xe037b0) at kernel/qeventdispatcher_glib.cpp:110
#29 0x00007f2e363e83b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f2e363e8708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f2e363e87ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f2e3d0ada55 in QEventDispatcherGlib::processEvents (this=0xdc5690, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#33 0x00007f2e3db129d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f2e3d07f5ef in QEventLoop::processEvents (this=this@entry=0x7fffd27392d0, flags=...) at kernel/qeventloop.cpp:149
#35 0x00007f2e3d07f8e5 in QEventLoop::exec (this=0x7fffd27392d0, flags=...) at kernel/qeventloop.cpp:204
#36 0x00007f2e3d50a3d3 in KJob::exec (this=0x13bdc80) at ../../kdecore/jobs/kjob.cpp:210
#37 0x00007f2dd6cbed76 in KMKernel::cleanup() () from /usr/lib/libkmailprivate.so.4
#38 0x00007f2dd7028cd5 in ?? () from /usr/lib/kde4/kmailpart.so
#39 0x00007f2dd7028da9 in ?? () from /usr/lib/kde4/kmailpart.so
#40 0x00007f2e3eff4cbe in KontactInterface::Plugin::~Plugin() () from /usr/lib/libkontactinterface.so.4
#41 0x00007f2dd9645a9f in ?? () from /usr/lib/kde4/kontact_kmailplugin.so
#42 0x00007f2dd9645ac9 in ?? () from /usr/lib/kde4/kontact_kmailplugin.so
#43 0x00007f2e3ebbcfee in Kontact::MainWindow::~MainWindow() () from /usr/lib/libkontactprivate.so.4
#44 0x00007f2e3ebbd149 in Kontact::MainWindow::~MainWindow() () from /usr/lib/libkontactprivate.so.4
#45 0x00007f2e3d098e08 in QObject::event (this=this@entry=0xf9eb60, e=e@entry=0x1a36e50) at kernel/qobject.cpp:1175
#46 0x00007f2e3dac036b in QWidget::event (this=this@entry=0xf9eb60, event=event@entry=0x1a36e50) at kernel/qwidget.cpp:8845
#47 0x00007f2e3de79db3 in QMainWindow::event (this=this@entry=0xf9eb60, event=event@entry=0x1a36e50) at widgets/qmainwindow.cpp:1478
#48 0x00007f2e3e82f2d1 in KMainWindow::event (this=this@entry=0xf9eb60, ev=ev@entry=0x1a36e50) at ../../kdeui/widgets/kmainwindow.cpp:1084
#49 0x00007f2e3e866d69 in KXmlGuiWindow::event (this=0xf9eb60, ev=0x1a36e50) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#50 0x00007f2e3da70dfc in QApplicationPrivate::notify_helper (this=this@entry=0xe03570, receiver=receiver@entry=0xf9eb60, e=e@entry=0x1a36e50) at kernel/qapplication.cpp:4567
#51 0x00007f2e3da77470 in QApplication::notify (this=this@entry=0x7fffd2739d20, receiver=receiver@entry=0xf9eb60, e=e@entry=0x1a36e50) at kernel/qapplication.cpp:4353
#52 0x00007f2e3e77ad9a in KApplication::notify (this=0x7fffd2739d20, receiver=0xf9eb60, event=0x1a36e50) at ../../kdeui/kernel/kapplication.cpp:311
#53 0x00007f2e3d0808bd in QCoreApplication::notifyInternal (this=0x7fffd2739d20, receiver=receiver@entry=0xf9eb60, event=event@entry=0x1a36e50) at kernel/qcoreapplication.cpp:946
#54 0x00007f2e3d083e1f in sendEvent (event=0x1a36e50, receiver=0xf9eb60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#55 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xdc41d0) at kernel/qcoreapplication.cpp:1570
#56 0x00007f2e3d0842c3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1463
#57 0x00007f2e3d0ae073 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#58 postEventSourceDispatch (s=0xdfef30) at kernel/qeventdispatcher_glib.cpp:279
#59 0x00007f2e363e83b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007f2e363e8708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007f2e363e87ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#62 0x00007f2e3d0ada55 in QEventDispatcherGlib::processEvents (this=0xdc5690, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#63 0x00007f2e3db129d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#64 0x00007f2e3d07f5ef in QEventLoop::processEvents (this=this@entry=0x7fffd2739c20, flags=...) at kernel/qeventloop.cpp:149
#65 0x00007f2e3d07f8e5 in QEventLoop::exec (this=this@entry=0x7fffd2739c20, flags=...) at kernel/qeventloop.cpp:204
#66 0x00007f2e3d084e5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#67 0x0000000000403660 in ?? ()
#68 0x00007f2e3c85bde5 in __libc_start_main (main=0x402bb0, argc=1, ubp_av=0x7fffd2739e68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffd2739e58) at libc-start.c:260
#69 0x0000000000403b28 in _start ()

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 19:24:26 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 22:33:00 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.