Bug 325954 - Kontact aborted soon after showing a message about not aquiring some lock
Summary: Kontact aborted soon after showing a message about not aquiring some lock
Status: RESOLVED DUPLICATE of bug 309981
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 4.11.2
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-10-13 10:03 UTC by Dennis Schridde
Modified: 2014-02-09 17:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (10.90 KB, text/plain)
2013-10-13 10:06 UTC, Dennis Schridde
Details
New crash information added by DrKonqi (10.49 KB, text/plain)
2013-11-23 13:33 UTC, Lassi Väätämöinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2013-10-13 10:03:18 UTC
Application: kontact (4.11.2)
KDE Platform Version: 4.11.2
Qt Version: 4.8.5
Operating System: Linux 3.11.4-gentoo x86_64
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
- What I was doing when the application crashed:
I closed Kontact and started it anew - and it crashed quickly after being restarted.

- Unusual behavior I noticed:

Before I restarted Kontact:
1) Akonadi did not deliver an email from my outbox. Selecting ~"deliver outbox" from the rightclick menu of that mailbox had no effect.
2) Kontact showed "Mail Filter Agent" in the progress information in the low right corner.

After restarting:
3) Kontact showed a message similar to "there was an error in the email application, trying to aquire a lock", just before it crashed.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6aa1c95780 (LWP 24119))]

Thread 3 (Thread 0x7f6a9ca94700 (LWP 24120)):
#0  0x0000003a0480b8b4 in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00000036aad39b42 in ?? () from /usr/lib64/qt4/libQtWebKit.so.4
#2  0x00000036aad39b79 in ?? () from /usr/lib64/qt4/libQtWebKit.so.4
#3  0x0000003a04807dff in start_thread () from /lib64/libpthread.so.0
#4  0x0000003a040e701d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f6a9c193700 (LWP 24121)):
#0  0x00007fff881ff7ff in clock_gettime ()
#1  0x0000003a040f889d in clock_gettime () from /lib64/libc.so.6
#2  0x00000032894d1457 in do_gettime (frac=0x7f6a9c192be0, sec=0x7f6a9c192bd8) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0x00000032895ab9c5 in updateCurrentTime (this=0x7f6a94002860) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x7f6a94002860, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0x00000032895aa10c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f6a9c192c94) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00000032895aa1ad in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x0000003f7a048083 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x0000003f7a0488e3 in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x0000003f7a048ad4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00000032895aa2ce in QEventDispatcherGlib::processEvents (this=0x7f6a940008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#12 0x000000328957badf in QEventLoop::processEvents (this=this@entry=0x7f6a9c192e60, flags=...) at kernel/qeventloop.cpp:149
#13 0x000000328957bdcd in QEventLoop::exec (this=this@entry=0x7f6a9c192e60, flags=...) at kernel/qeventloop.cpp:204
#14 0x0000003289479860 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#15 0x000000328947c0ff in QThreadPrivate::start (arg=0x142c3c0) at thread/qthread_unix.cpp:338
#16 0x0000003a04807dff in start_thread () from /lib64/libpthread.so.0
#17 0x0000003a040e701d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f6aa1c95780 (LWP 24119)):
[KCrash Handler]
#6  0x0000003a04035065 in raise () from /lib64/libc.so.6
#7  0x0000003a04036377 in abort () from /lib64/libc.so.6
#8  0x000000328947167c in qt_message_output (msgType=<optimized out>, msgType@entry=QtFatalMsg, buf=<optimized out>) at global/qglobal.cpp:2323
#9  0x000000328947180d in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x7f6a53db5d10 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d", ap=ap@entry=0x7fff8817aff8) at global/qglobal.cpp:2369
#10 0x0000003289472084 in qFatal (msg=msg@entry=0x7f6a53db5d10 "Fatal Error: Accessed global static '%s *%s()' after destruction. Defined at %s:%d") at global/qglobal.cpp:2552
#11 0x00007f6a53d699cf in operator-> (this=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/kernel/mailkernel.cpp:57
#12 MailCommon::Kernel::self () at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/kernel/mailkernel.cpp:73
#13 0x00007f6a53d59ec0 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x1e04520) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/folder/foldercollection.cpp:218
#14 0x00007f6a53d5a73a in MailCommon::FolderCollection::~FolderCollection (this=0x1e04520, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/folder/foldercollection.cpp:84
#15 0x00007f6a53d5a7b9 in MailCommon::FolderCollection::~FolderCollection (this=0x1e04520, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/folder/foldercollection.cpp:86
#16 0x00007f6a53d58f2c in deref (value=0x1e04520, d=0x20b3c60) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:342
#17 deref (this=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:336
#18 ~ExternalRefCount (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:401
#19 ~QSharedPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:466
#20 QMap<long long, QSharedPointer<MailCommon::FolderCollection> >::freeData (x=0x1d3b7c0, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:652
#21 0x0000003a040379e9 in __run_exit_handlers () from /lib64/libc.so.6
#22 0x0000003a04037a65 in exit () from /lib64/libc.so.6
#23 0x00007f6a53d6a0c8 in MailCommon::Kernel::emergencyExit (this=this@entry=0x18831d0, reason=...) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/kernel/mailkernel.cpp:228
#24 0x00007f6a53d6a675 in MailCommon::Kernel::createDefaultCollectionDone (this=0x18831d0, job=0x17f7440) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/kernel/mailkernel.cpp:182
#25 0x0000003289590f38 in QMetaObject::activate (sender=sender@entry=0x17f7440, m=m@entry=0x39230bc4a0 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff8817b5f0) at kernel/qobject.cpp:3547
#26 0x0000003922d32d32 in KJob::result (this=this@entry=0x17f7440, _t1=_t1@entry=0x17f7440) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2_build/kdecore/kjob.moc:207
#27 0x0000003922d32d70 in KJob::emitResult (this=0x17f7440) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdecore/jobs/kjob.cpp:318
#28 0x00007f6aa36b0ca0 in Akonadi::SpecialCollectionsRequestJobPrivate::lockResult (this=0x18bf810, job=0x1dcd110) at /var/tmp/portage/kde-base/kdepimlibs-4.11.2-r1/work/kdepimlibs-4.11.2/akonadi/specialcollectionsrequestjob.cpp:121
#29 0x0000003289590f38 in QMetaObject::activate (sender=sender@entry=0x1dcd110, m=m@entry=0x39230bc4a0 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff8817b7c0) at kernel/qobject.cpp:3547
#30 0x0000003922d32d32 in KJob::result (this=this@entry=0x1dcd110, _t1=_t1@entry=0x1dcd110) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2_build/kdecore/kjob.moc:207
#31 0x0000003922d32d70 in KJob::emitResult (this=0x1dcd110) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdecore/jobs/kjob.cpp:318
#32 0x00007f6aa36aa402 in Akonadi::GetLockJob::Private::timeout (this=0x1bc5d90) at /var/tmp/portage/kde-base/kdepimlibs-4.11.2-r1/work/kdepimlibs-4.11.2/akonadi/specialcollectionshelperjobs.cpp:613
#33 0x0000003289590f38 in QMetaObject::activate (sender=0x1dcfc70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#34 0x00000032895951d9 in QObject::event (this=0x1dcfc70, e=<optimized out>) at kernel/qobject.cpp:1156
#35 0x00000036a8bcb05c in QApplicationPrivate::notify_helper (this=this@entry=0x12388f0, receiver=receiver@entry=0x1dcfc70, e=e@entry=0x7fff8817bd00) at kernel/qapplication.cpp:4562
#36 0x00000036a8bd16d8 in QApplication::notify (this=this@entry=0x7fff8817cee0, receiver=receiver@entry=0x1dcfc70, e=e@entry=0x7fff8817bd00) at kernel/qapplication.cpp:4348
#37 0x00000036a6c406fb in KApplication::notify (this=0x7fff8817cee0, receiver=0x1dcfc70, event=0x7fff8817bd00) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdeui/kernel/kapplication.cpp:311
#38 0x000000328957cecc in QCoreApplication::notifyInternal (this=0x7fff8817cee0, receiver=0x1dcfc70, event=0x7fff8817bd00) at kernel/qcoreapplication.cpp:949
#39 0x00000032895acdcb in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#40 QTimerInfoList::activateTimers (this=0x12372d0) at kernel/qeventdispatcher_unix.cpp:621
#41 0x00000032895aa0b9 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#42 idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:233
#43 0x0000003f7a0486d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#44 0x0000003f7a048a28 in ?? () from /usr/lib64/libglib-2.0.so.0
#45 0x0000003f7a048ad4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#46 0x00000032895aa2b3 in QEventDispatcherGlib::processEvents (this=0x11fbb00, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#47 0x00000036a8c6a20e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#48 0x000000328957badf in QEventLoop::processEvents (this=this@entry=0x7fff8817bfb0, flags=...) at kernel/qeventloop.cpp:149
#49 0x000000328957bdcd in QEventLoop::exec (this=this@entry=0x7fff8817bfb0, flags=...) at kernel/qeventloop.cpp:204
#50 0x00000036a9000e0a in QMenu::exec (this=0x1ba08b0, p=..., action=action@entry=0x0) at widgets/qmenu.cpp:2125
#51 0x00007f6aa3633796 in Akonadi::EntityTreeView::contextMenuEvent (this=<optimized out>, event=0x7fff8817c710) at /var/tmp/portage/kde-base/kdepimlibs-4.11.2-r1/work/kdepimlibs-4.11.2/akonadi/entitytreeview.cpp:281
#52 0x00000036a8c1ccc0 in QWidget::event (this=this@entry=0x18c4ff0, event=event@entry=0x7fff8817c710) at kernel/qwidget.cpp:8554
#53 0x00000036a8fc0076 in QFrame::event (this=0x18c4ff0, e=0x7fff8817c710) at widgets/qframe.cpp:557
#54 0x00000036a90d6273 in QAbstractItemView::viewportEvent (this=this@entry=0x18c4ff0, event=event@entry=0x7fff8817c710) at itemviews/qabstractitemview.cpp:1644
#55 0x00000036a9116684 in QTreeView::viewportEvent (this=0x18c4ff0, event=0x7fff8817c710) at itemviews/qtreeview.cpp:1252
#56 0x000000328957d035 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x12388f0, receiver=receiver@entry=0x18c56f0, event=event@entry=0x7fff8817c710) at kernel/qcoreapplication.cpp:1059
#57 0x00000036a8bcb02c in QApplicationPrivate::notify_helper (this=this@entry=0x12388f0, receiver=receiver@entry=0x18c56f0, e=e@entry=0x7fff8817c710) at kernel/qapplication.cpp:4558
#58 0x00000036a8bd2428 in QApplication::notify (this=this@entry=0x7fff8817cee0, receiver=receiver@entry=0x18c56f0, e=e@entry=0x7fff8817c710) at kernel/qapplication.cpp:4184
#59 0x00000036a6c406fb in KApplication::notify (this=0x7fff8817cee0, receiver=0x18c56f0, event=0x7fff8817c710) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdeui/kernel/kapplication.cpp:311
#60 0x000000328957cecc in QCoreApplication::notifyInternal (this=0x7fff8817cee0, receiver=receiver@entry=0x18c56f0, event=event@entry=0x7fff8817c710) at kernel/qcoreapplication.cpp:949
#61 0x00000036a8c451c7 in sendSpontaneousEvent (event=0x7fff8817c710, receiver=0x18c56f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#62 QETWidget::translateMouseEvent (this=this@entry=0x18b60a0, event=event@entry=0x7fff8817ca00) at kernel/qapplication_x11.cpp:4522
#63 0x00000036a8c43521 in QApplication::x11ProcessEvent (this=0x7fff8817cee0, event=event@entry=0x7fff8817ca00) at kernel/qapplication_x11.cpp:3640
#64 0x00000036a8c6a172 in x11EventSourceDispatch (s=0x1238d60, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#65 0x0000003f7a0486d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#66 0x0000003f7a048a28 in ?? () from /usr/lib64/libglib-2.0.so.0
#67 0x0000003f7a048ad4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#68 0x00000032895aa2b3 in QEventDispatcherGlib::processEvents (this=0x11fbb00, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#69 0x00000036a8c6a20e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#70 0x000000328957badf in QEventLoop::processEvents (this=this@entry=0x7fff8817cde0, flags=...) at kernel/qeventloop.cpp:149
#71 0x000000328957bdcd in QEventLoop::exec (this=this@entry=0x7fff8817cde0, flags=...) at kernel/qeventloop.cpp:204
#72 0x0000003289581009 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#73 0x00000036a8bc960c in QApplication::exec () at kernel/qapplication.cpp:3823
#74 0x0000000000403740 in main (argc=1, argv=0x7fff8817d028) at /var/tmp/portage/kde-base/kontact-4.11.2/work/kontact-4.11.2/kontact/src/main.cpp:219

Possible duplicates by query: bug 324949, bug 322594, bug 321981, bug 321414, bug 321168.

Reported using DrKonqi
Comment 1 Dennis Schridde 2013-10-13 10:06:30 UTC
Created attachment 82821 [details]
New crash information added by DrKonqi

kontact (4.11.2) on KDE Platform 4.11.2 using Qt 4.8.5

- What I was doing when the application crashed:
It just happened again, right after starting Kontact.


- Unusual behavior I noticed:

The message box about the failed lock, which I mentioned earlier, was:
---
Im E-Mail-Programm ist ein schwerwiegender Fehler aufgetreten. Das Programm wird beendet.
Die Fehlermeldung lautet:
Zeitüberschreitung beim Erhalten der Sperre.
---

Rough translation:
Serious error in the email program. It will be closed. The error message was: Timeout while aquiring the lock.

-- Backtrace (Reduced):
#11 0x00007f8a52ee99cf in operator-> (this=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/kernel/mailkernel.cpp:57
#12 MailCommon::Kernel::self () at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/kernel/mailkernel.cpp:73
#13 0x00007f8a52ed9ec0 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x1df6d50) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/folder/foldercollection.cpp:218
#14 0x00007f8a52eda73a in MailCommon::FolderCollection::~FolderCollection (this=0x1df6d50, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/folder/foldercollection.cpp:84
#15 0x00007f8a52eda7b9 in MailCommon::FolderCollection::~FolderCollection (this=0x1df6d50, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.11.2/work/kmail-4.11.2/mailcommon/folder/foldercollection.cpp:86
Comment 2 Dennis Schridde 2013-10-13 10:19:18 UTC
Possibly related bugs:
* bug #325955: Same message just before the crash
* bug # - b.k.o search times out, and Kontact is not operational anymore, thus I cannot give you the exact number: Kontact leaves a process behind after being closed and thus cannot be opened again - maybe that is related to some locking mechanism?
Comment 3 Dennis Schridde 2013-10-13 10:28:02 UTC
(In reply to comment #0)
> Before I restarted Kontact:
> 1) Akonadi did not deliver an email from my outbox. Selecting ~"deliver
> outbox" from the rightclick menu of that mailbox had no effect.

> After restarting:
> 3) Kontact showed a message similar to "there was an error in the email
> application, trying to aquire a lock", just before it crashed.

Both issues were "fixed" by restarting Akonadi (akonadictl restart).
Comment 4 Dennis Schridde 2013-10-13 10:29:05 UTC
(In reply to comment #2)
> Possibly related bugs:
> * bug #325955: Same message just before the crash
> * bug # - b.k.o search times out, and Kontact is not operational anymore,
> thus I cannot give you the exact number: Kontact leaves a process behind
> after being closed and thus cannot be opened again - maybe that is related
> to some locking mechanism?

That was bug #227636.
Comment 5 Lassi Väätämöinen 2013-11-23 13:33:54 UTC
Created attachment 83717 [details]
New crash information added by DrKonqi

kontact (4.11.2) on KDE Platform 4.11.2 using Qt 4.8.5

Mail message was composed and sent. Kontact crashed right after the composed window closed.

-- Backtrace (Reduced):
#11 0x00007f7ddacb65e4 in operator-> (this=<optimized out>) at /usr/src/debug/kdepim-4.11.2/mailcommon/kernel/mailkernel.cpp:57
#12 MailCommon::Kernel::self () at /usr/src/debug/kdepim-4.11.2/mailcommon/kernel/mailkernel.cpp:73
#13 0x00007f7ddaca73c0 in MailCommon::FolderCollection::writeConfig (this=this@entry=0x83d25e0) at /usr/src/debug/kdepim-4.11.2/mailcommon/folder/foldercollection.cpp:218
#14 0x00007f7ddaca7c32 in MailCommon::FolderCollection::~FolderCollection (this=0x83d25e0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.11.2/mailcommon/folder/foldercollection.cpp:84
#15 0x00007f7ddaca7ca9 in MailCommon::FolderCollection::~FolderCollection (this=0x83d25e0, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.11.2/mailcommon/folder/foldercollection.cpp:86
Comment 6 Jekyll Wu 2014-02-09 17:47:05 UTC

*** This bug has been marked as a duplicate of bug 309981 ***