Bug 332056

Summary: Crash while closing kontact
Product: [Applications] kontact Reporter: Steve <sgrubb>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.12.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Steve 2014-03-12 11:48:27 UTC
Application: kontact (4.12.3)
KDE Platform Version: 4.12.3
Qt Version: 4.8.5
Operating System: Linux 3.13.6-200.fc20.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
I had started kontact. After a while, I saw a cinnomon notification that I had 60 new emails. For some reason, it forgot the last email I was looking at yesterday and it resorted all of my email and left me at one from 2004. I scrolled to the bottom and only saw new 15-20 emails. I also saw that none of the filters had moved mail to folders (like trash for example). So, I had a feeling kontact had deadlocked displaying something and decided to close it. As soon as I did, it crashed.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f0e474ba8c0 (LWP 3075))]

Thread 4 (Thread 0x7f0dd1d8f700 (LWP 3078)):
#0  0x00007f0e4028b9dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f0e3d0a95b4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f0dcc0010c0, timeout=-1, context=0x168d300) at gmain.c:4007
#2  g_main_context_iterate (context=0x168d300, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3708
#3  0x00007f0e3d0a9a3a in g_main_loop_run (loop=0x1642c70) at gmain.c:3907
#4  0x00007f0e3e850376 in gdbus_shared_thread_func (user_data=0x168f880) at gdbusprivate.c:278
#5  0x00007f0e3d0cea45 in g_thread_proxy (data=0x1556190) at gthread.c:798
#6  0x00007f0e4100af33 in start_thread (arg=0x7f0dd1d8f700) at pthread_create.c:309
#7  0x00007f0e40295ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f0dd1385700 (LWP 3079)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0e45f0746d in JSC::BlockAllocator::blockFreeingThreadMain (this=0x1771e98) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#2  0x00007f0e461f9d36 in WTF::wtfThreadEntryPoint (param=0x176b9c0) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#3  0x00007f0e4100af33 in start_thread (arg=0x7f0dd1385700) at pthread_create.c:309
#4  0x00007f0e40295ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f0db96a3700 (LWP 3111)):
#0  0x00007f0e3d0ea2ea in g_mutex_get_impl (mutex=0x7f0dac0009a0) at gthread-posix.c:124
#1  0x00007f0e3d0ea5c9 in g_mutex_unlock (mutex=mutex@entry=0x7f0dac0009a0) at gthread-posix.c:232
#2  0x00007f0e3d0a8c78 in g_main_context_prepare (context=context@entry=0x7f0dac0009a0, priority=priority@entry=0x7f0db96a2bd0) at gmain.c:3405
#3  0x00007f0e3d0a94bb in g_main_context_iterate (context=context@entry=0x7f0dac0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3693
#4  0x00007f0e3d0a96dc in g_main_context_iteration (context=0x7f0dac0009a0, may_block=1) at gmain.c:3774
#5  0x00007f0e413d2ec6 in QEventDispatcherGlib::processEvents (this=0x7f0dac0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007f0e413a2edf in QEventLoop::processEvents (this=this@entry=0x7f0db96a2d10, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f0e413a322d in QEventLoop::exec (this=this@entry=0x7f0db96a2d10, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f0e41299baf in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#9  0x00007f0e4129c3af in QThreadPrivate::start (arg=0x13ae960) at thread/qthread_unix.cpp:338
#10 0x00007f0e4100af33 in start_thread (arg=0x7f0db96a3700) at pthread_create.c:309
#11 0x00007f0e40295ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f0e474ba8c0 (LWP 3075)):
[KCrash Handler]
#6  Akonadi::StandardMailActionManager::action (this=0x0, type=type@entry=Akonadi::StandardMailActionManager::MarkAllMailAsRead) at /usr/src/debug/kdepimlibs-4.12.3/akonadi/kmime/standardmailactionmanager.cpp:905
#7  0x00007f0dbe8d3688 in KMMainWidget::updateMoveAction (this=this@entry=0x1cc8a10, hasUnreadMails=hasUnreadMails@entry=false, hasMails=hasMails@entry=false) at /usr/src/debug/kdepim-4.12.3/kmail/kmmainwidget.cpp:1157
#8  0x00007f0dbe8e16c0 in KMMainWidget::updateMessageActionsDelayed (this=0x1cc8a10) at /usr/src/debug/kdepim-4.12.3/kmail/kmmainwidget.cpp:3986
#9  0x00007f0dbe8f9c9a in KMMainWidget::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kdepim-4.12.3/x86_64-redhat-linux-gnu/kmail/kmmainwidget.moc:384
#10 0x00007f0e413b8cf8 in QMetaObject::activate (sender=0x1ea6f40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#11 0x00007f0e413bd0a1 in QObject::event (this=0x1ea6f40, e=<optimized out>) at kernel/qobject.cpp:1156
#12 0x00007f0e42012d8c in QApplicationPrivate::notify_helper (this=this@entry=0x13ab130, receiver=receiver@entry=0x1ea6f40, e=e@entry=0x7fff31b5bf80) at kernel/qapplication.cpp:4562
#13 0x00007f0e42019725 in QApplication::notify (this=this@entry=0x7fff31b5cd10, receiver=receiver@entry=0x1ea6f40, e=e@entry=0x7fff31b5bf80) at kernel/qapplication.cpp:4348
#14 0x00007f0e42d70b0a in KApplication::notify (this=0x7fff31b5cd10, receiver=0x1ea6f40, event=0x7fff31b5bf80) at /usr/src/debug/kdelibs-4.12.3/kdeui/kernel/kapplication.cpp:311
#15 0x00007f0e413a439d in QCoreApplication::notifyInternal (this=0x7fff31b5cd10, receiver=0x1ea6f40, event=event@entry=0x7fff31b5bf80) at kernel/qcoreapplication.cpp:949
#16 0x00007f0e413d5ae3 in sendEvent (event=0x7fff31b5bf80, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#17 QTimerInfoList::activateTimers (this=0x13b2660) at kernel/qeventdispatcher_unix.cpp:621
#18 0x00007f0e413d2c69 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#19 idleTimerSourceDispatch (source=source@entry=0x13b26b0) at kernel/qeventdispatcher_glib.cpp:233
#20 0x00007f0e3d0a92a6 in g_main_dispatch (context=0x13b13f0) at gmain.c:3066
#21 g_main_context_dispatch (context=context@entry=0x13b13f0) at gmain.c:3642
#22 0x00007f0e3d0a9628 in g_main_context_iterate (context=context@entry=0x13b13f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
#23 0x00007f0e3d0a96dc in g_main_context_iteration (context=0x13b13f0, may_block=1) at gmain.c:3774
#24 0x00007f0e413d2ea5 in QEventDispatcherGlib::processEvents (this=0x13ab4f0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#25 0x00007f0e420b4ca6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#26 0x00007f0e413a2edf in QEventLoop::processEvents (this=this@entry=0x7fff31b5c210, flags=...) at kernel/qeventloop.cpp:149
#27 0x00007f0e413a322d in QEventLoop::exec (this=0x7fff31b5c210, flags=...) at kernel/qeventloop.cpp:204
#28 0x00007f0e41846ea3 in KJob::exec (this=this@entry=0x1d0cdf0) at /usr/src/debug/kdelibs-4.12.3/kdecore/jobs/kjob.cpp:210
#29 0x00007f0dbe8a6806 in KMKernel::cleanup (this=0x1c419c0) at /usr/src/debug/kdepim-4.12.3/kmail/kmkernel.cpp:1277
#30 0x00007f0dbec16fb5 in KMailPart::~KMailPart (this=this@entry=0x1ac7240, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.12.3/kmail/kmail_part.cpp:119
#31 0x00007f0dbec170a9 in KMailPart::~KMailPart (this=0x1ac7240, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.12.3/kmail/kmail_part.cpp:121
#32 0x00007f0e46c8438e in KontactInterface::Plugin::~Plugin (this=0x1a83210, __vtt_parm=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.12.3/kontactinterface/plugin.cpp:92
#33 0x00007f0dc8654d0f in KMailPlugin::~KMailPlugin (this=0x1a83210, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.12.3/kontact/plugins/kmail/kmail_plugin.cpp:160
#34 0x00007f0dc8654d39 in KMailPlugin::~KMailPlugin (this=0x1a83210, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.12.3/kontact/plugins/kmail/kmail_plugin.cpp:164
#35 0x00007f0e44422e4e in Kontact::MainWindow::~MainWindow (this=this@entry=0x161de40, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.12.3/kontact/src/mainwindow.cpp:296
#36 0x00007f0e44422fc9 in Kontact::MainWindow::~MainWindow (this=0x161de40, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.12.3/kontact/src/mainwindow.cpp:298
#37 0x00007f0e413bd2a8 in QObject::event (this=0x161de40, e=<optimized out>) at kernel/qobject.cpp:1175
#38 0x00007f0e42065cd3 in QWidget::event (this=this@entry=0x161de40, event=event@entry=0x57f9350) at kernel/qwidget.cpp:8846
#39 0x00007f0e424360e3 in QMainWindow::event (this=this@entry=0x161de40, event=event@entry=0x57f9350) at widgets/qmainwindow.cpp:1478
#40 0x00007f0e42e2f8e1 in KMainWindow::event (this=this@entry=0x161de40, ev=ev@entry=0x57f9350) at /usr/src/debug/kdelibs-4.12.3/kdeui/widgets/kmainwindow.cpp:1084
#41 0x00007f0e42e6afa9 in KXmlGuiWindow::event (this=0x161de40, ev=0x57f9350) at /usr/src/debug/kdelibs-4.12.3/kdeui/xmlgui/kxmlguiwindow.cpp:126
#42 0x00007f0e42012d8c in QApplicationPrivate::notify_helper (this=this@entry=0x13ab130, receiver=receiver@entry=0x161de40, e=e@entry=0x57f9350) at kernel/qapplication.cpp:4562
#43 0x00007f0e42019725 in QApplication::notify (this=this@entry=0x7fff31b5cd10, receiver=receiver@entry=0x161de40, e=e@entry=0x57f9350) at kernel/qapplication.cpp:4348
#44 0x00007f0e42d70b0a in KApplication::notify (this=0x7fff31b5cd10, receiver=0x161de40, event=0x57f9350) at /usr/src/debug/kdelibs-4.12.3/kdeui/kernel/kapplication.cpp:311
#45 0x00007f0e413a439d in QCoreApplication::notifyInternal (this=0x7fff31b5cd10, receiver=receiver@entry=0x161de40, event=event@entry=0x57f9350) at kernel/qcoreapplication.cpp:949
#46 0x00007f0e413a7485 in sendEvent (event=0x57f9350, receiver=0x161de40) at kernel/qcoreapplication.h:231
#47 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x136fb50) at kernel/qcoreapplication.cpp:1573
#48 0x00007f0e413a7923 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1466
#49 0x00007f0e413d3623 in sendPostedEvents () at kernel/qcoreapplication.h:236
#50 postEventSourceDispatch (s=s@entry=0x13b14e0) at kernel/qeventdispatcher_glib.cpp:280
#51 0x00007f0e3d0a92a6 in g_main_dispatch (context=0x13b13f0) at gmain.c:3066
#52 g_main_context_dispatch (context=context@entry=0x13b13f0) at gmain.c:3642
#53 0x00007f0e3d0a9628 in g_main_context_iterate (context=context@entry=0x13b13f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
#54 0x00007f0e3d0a96dc in g_main_context_iteration (context=0x13b13f0, may_block=1) at gmain.c:3774
#55 0x00007f0e413d2ea5 in QEventDispatcherGlib::processEvents (this=0x13ab4f0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#56 0x00007f0e420b4ca6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#57 0x00007f0e413a2edf in QEventLoop::processEvents (this=this@entry=0x7fff31b5cc00, flags=...) at kernel/qeventloop.cpp:149
#58 0x00007f0e413a322d in QEventLoop::exec (this=this@entry=0x7fff31b5cc00, flags=...) at kernel/qeventloop.cpp:204
#59 0x00007f0e413a8749 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#60 0x00007f0e420113fc in QApplication::exec () at kernel/qapplication.cpp:3823
#61 0x00000000004037ea in main (argc=1, argv=0x7fff31b5ce68) at /usr/src/debug/kdepim-4.12.3/kontact/src/main.cpp:219

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 19:29:00 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 21:46:16 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.