Bug 178869 - kontact crashes on exit
Summary: kontact crashes on exit
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: KResource compat bridges (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Krammer
URL:
Keywords:
: 181266 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-27 10:49 UTC by Cyrill Helg
Modified: 2009-02-08 14:40 UTC (History)
3 users (show)

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 Cyrill Helg 2008-12-27 10:49:22 UTC
Version:           unknown (using 4.1.86 (KDE 4.1.86 (KDE 4.2 >= 20081221)), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.28-rc9-zen1-IBM-T43

Happens a lot. Also when logging out.

Application: Kontact (kontact), signal SIGSEGV
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 0 (LWP 5101)]

Thread 2 (Thread 0xafb93b90 (LWP 14097)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb57734e1 in select () from /lib/libc.so.6
#2  0xb5a69e67 in ?? () from /usr/lib/qt4/libQtCore.so.4
#3  0xb599befa in ?? () from /usr/lib/qt4/libQtCore.so.4
#4  0xb591745f in start_thread () from /lib/libpthread.so.0

Thread 1 (Thread 0xb4aaa700 (LWP 5101)):
[KCrash Handler]
#6  0xb100d746 in Akonadi::Entity::operator= () from /usr/kde/svn/lib/libakonadi-kde.so.4
#7  0xb10495b6 in Akonadi::ItemCreateJob::ItemCreateJob () from /usr/kde/svn/lib/libakonadi-kde.so.4
#8  0xb006982d in KABC::ResourceAkonadi::Private::createSaveSequence () from /usr/kde/svn/lib/kde4/kabc_akonadi.so
#9  0xb0069c9b in KABC::ResourceAkonadi::save () from /usr/kde/svn/lib/kde4/kabc_akonadi.so
#10 0xb6f08dac in KABC::AddressBook::save () from /usr/kde/svn/lib/libkabc.so.4
#11 0xb1b838f5 in KABCore::save () from /usr/kde/svn/lib/libkaddressbookprivate.so.4
#12 0xb0be6e1d in KAddressbookPart::~KAddressbookPart () from /usr/kde/svn/lib/kde4/kaddressbookpart.so
#13 0xb77d6dc9 in Kontact::Plugin::~Plugin () from /usr/kde/svn/lib/libkontactinterfaces.so.4
#14 0xb31a96c2 in KAddressbookPlugin::~KAddressbookPlugin () from /usr/kde/svn/lib/kde4/kontact_kaddressbookplugin.so
#15 0xb77f66ce in Kontact::MainWindow::~MainWindow () from /usr/kde/svn/lib/libkontactprivate.so.4
#16 0xb5a97cbc in qDeleteInEventHandler () from /usr/lib/qt4/libQtCore.so.4
#17 0xb5a99ad3 in QObject::event () from /usr/lib/qt4/libQtCore.so.4
#18 0xb5f72972 in QWidget::event () from /usr/lib/qt4/libQtGui.so.4
#19 0xb62c3f7f in QMainWindow::event () from /usr/lib/qt4/libQtGui.so.4
#20 0xb6af2b2f in KMainWindow::event () from /usr/kde/svn/lib/libkdeui.so.5
#21 0xb6b35b4c in KXmlGuiWindow::event () from /usr/kde/svn/lib/libkdeui.so.5
#22 0xb5f1aaef in QApplicationPrivate::notify_helper () from /usr/lib/qt4/libQtGui.so.4
#23 0xb5f1f58c in QApplication::notify () from /usr/lib/qt4/libQtGui.so.4
#24 0xb6a1301a in KApplication::notify () from /usr/kde/svn/lib/libkdeui.so.5
#25 0xb5a89327 in QCoreApplication::notifyInternal () from /usr/lib/qt4/libQtCore.so.4
#26 0xb5a8a37d in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/qt4/libQtCore.so.4
#27 0xb5a8a61d in QCoreApplication::sendPostedEvents () from /usr/lib/qt4/libQtCore.so.4
#28 0xb5ab42fd in ?? () from /usr/lib/qt4/libQtCore.so.4
#29 0xb51d5daf in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
Comment 1 Cyrill Helg 2009-01-06 23:24:47 UTC
I think thats the same issue: 

Application: Kontact (kontact), signal SIGSEGV
Using host libthread_db library "/lib/libthread_db.so.1".

Thread 1 (Thread 0xb4a34700 (LWP 2597)):
[KCrash Handler]
#6  0xb1161976 in Akonadi::Entity::operator= () from /usr/kde/svn/lib/libakonadi-kde.so.4
#7  0xb119d986 in Akonadi::ItemCreateJob::ItemCreateJob () from /usr/kde/svn/lib/libakonadi-kde.so.4
#8  0xb01a09bd in KABC::ResourceAkonadi::Private::createSaveSequence () from /usr/kde/svn/lib/kde4/kabc_akonadi.so
#9  0xb01a0e2b in KABC::ResourceAkonadi::save () from /usr/kde/svn/lib/kde4/kabc_akonadi.so
#10 0xb6e6fe6c in KABC::AddressBook::save () from /usr/kde/svn/lib/libkabc.so.4
#11 0xb6e9d350 in KABC::StdAddressBook::Private::saveAll () from /usr/kde/svn/lib/libkabc.so.4
#12 0xb6e9d58e in KABC::StdAddressBook::~StdAddressBook () from /usr/kde/svn/lib/libkabc.so.4
#13 0xb6e9c4a4 in deleteGlobalStdAddressBook () from /usr/kde/svn/lib/libkabc.so.4
#14 0xb5a1baf2 in qt_call_post_routines () from /usr/lib/qt4/libQtCore.so.4
#15 0xb5e8a5e9 in QApplication::~QApplication () from /usr/lib/qt4/libQtGui.so.4
#16 0xb698322d in ~KApplication (this=0xbfcac824) at /tmp/PALUDIS/var_tmp/kde-base-kdelibs-scm/work/kdelibs-scm/kdeui/kernel/kapplication.cpp:928
#17 0xb698b3a8 in ~KUniqueApplication (this=0xbfcac824) at /tmp/PALUDIS/var_tmp/kde-base-kdelibs-scm/work/kdelibs-scm/kdeui/kernel/kuniqueapplication.cpp:372
#18 0x0804b9af in main ()

Comment 2 Dario Andres 2009-01-19 12:17:25 UTC
*** Bug 181266 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2009-01-19 12:17:50 UTC
Look at bug 181266 for more information and steps
Comment 4 Kevin Krammer 2009-02-08 14:40:59 UTC
SVN commit 923208 by krake:

Using nested event loops to achieve synchronous call behavior while doing Akonadi jobs has created way to many issues due to unexpected re-entrancy.

This is basically backport of a series of changes in trunk which replace this form of blocking with real blocking of the caller and delegating the Akonadi job execution to a worker thread.

This should fix all the bugs this is sent to. If they remain with 4.2.1 once it is released, please re-open.

Darío, in case I missed some of the eventloop related bugs, please feel free to close them as well.

BUG: 177294
BUG: 158129
BUG: 182475
BUG: 178869
BUG: 179577
BUG: 179838
BUG: 180384
BUG: 181153
BUG: 181966
BUG: 182833
BUG: 182956
BUG: 183187


 M  +210 -55   kabc/resourceakonadi.cpp  
 M  +202 -54   kcal/resourceakonadi.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=923208