Bug 196667

Summary: Kontact crashed after adding a new akonadi ressource (vcard file)
Product: [Frameworks and Libraries] Akonadi Reporter: Thomas Thym <ungethym>
Component: KResource compat bridgesAssignee: Kevin Krammer <krammer>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, christophe, vkrause
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Thym 2009-06-15 22:14:20 UTC
Application that crashed: kontact
Version of the application: 4.3.0 pre
KDE Version: 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2)) "release 139"
Qt Version: 4.5.1
Operating System: Linux 2.6.27.23-0.1-pae i686

What I was doing when the application crashed:
Added a new adressbook (akonadi ressource, vcard file) thru Kontact. After that the entries appeared twice. I found my old "Akonadi Compatibility Resource" and a new "akonadi Adressbuch". As I deactivated the second ressource Kontact crashed. 

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#6  KConfigGroup::deleteEntry (this=0x9f0636c, key=0xa085fa8 "CollectionUrl", flags={i = -1077323720}) at /usr/include/QtCore/qshareddata.h:187
#7  0xb68a228c in KConfigGroup::deleteEntry (this=0x9f0636c, key=@0xbfc95970, flags={i = -1077323412}) at /usr/src/debug/kdelibs-4.2.90/kdecore/config/kconfiggroup.cpp:1198
#8  0xae928e7a in ?? () from /usr/lib/kde4/kabc_akonadi.so
#9  0xae929269 in ?? () from /usr/lib/kde4/kabc_akonadi.so
#10 0xae903340 in ?? () from /usr/lib/kde4/kabc_akonadi.so
#11 0xb7237007 in KRES::Resource::close() () from /usr/lib/libkresources.so.4
#12 0xad6928ad in ?? () from /usr/lib/kde4/kaddrbk_resourceselection.so
#13 0xad694064 in ?? () from /usr/lib/kde4/kaddrbk_resourceselection.so
#14 0xb66d7dc8 in QMetaObject::activate (sender=0x9af9210, from_signal_index=96, to_signal_index=96, argv=0xbfc95ba8) at kernel/qobject.cpp:3120
#15 0xb66d9552 in QMetaObject::activate (sender=0x9af9210, m=0xb63f5bf0, local_signal_index=1, argv=0xbfc95ba8) at kernel/qobject.cpp:3194
#16 0xb61418b9 in QTreeWidget::itemClicked (this=0x9af9210, _t1=0x9bca998, _t2=0) at .moc/release-shared/moc_qtreewidget.cpp:201
#17 0xb6145c15 in QTreeWidgetPrivate::_q_emitItemClicked (this=0x9e56b20, index=@0xa098810) at itemviews/qtreewidget.cpp:2228
#18 0xb614efa1 in QTreeWidget::qt_metacall (this=0x9af9210, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbfc95cdc) at .moc/release-shared/moc_qtreewidget.cpp:144
#19 0xb66d7dc8 in QMetaObject::activate (sender=0x9af9210, from_signal_index=32, to_signal_index=32, argv=0xbfc95cdc) at kernel/qobject.cpp:3120
#20 0xb66d9552 in QMetaObject::activate (sender=0x9af9210, m=0xb63f4b44, local_signal_index=1, argv=0xbfc95cdc) at kernel/qobject.cpp:3194
#21 0xb60c3653 in QAbstractItemView::clicked (this=0x9af9210, _t1=@0xa098810) at .moc/release-shared/moc_qabstractitemview.cpp:321
#22 0xb60d0f45 in QAbstractItemView::mouseReleaseEvent (this=0x9af9210, event=0xbfc965f8) at itemviews/qabstractitemview.cpp:1655
#23 0xb61136cc in QTreeView::mouseReleaseEvent (this=0x9af9210, event=0xbfc965f8) at itemviews/qtreeview.cpp:1794
#24 0xb5bc3323 in QWidget::event (this=0x9af9210, event=0xbfc965f8) at kernel/qwidget.cpp:7521
#25 0xb5f81c13 in QFrame::event (this=0x9af9210, e=0xbfc965f8) at widgets/qframe.cpp:559
#26 0xb6021def in QAbstractScrollArea::viewportEvent (this=0x9af9210, e=0xa085f01) at widgets/qabstractscrollarea.cpp:962
#27 0xb60d3bd7 in QAbstractItemView::viewportEvent (this=0x9af9210, event=0xbfc965f8) at itemviews/qabstractitemview.cpp:1471
#28 0xb610de96 in QTreeView::viewportEvent (this=0x9af9210, event=0xbfc965f8) at itemviews/qtreeview.cpp:1264
#29 0xb60243f5 in QAbstractScrollAreaFilter::eventFilter (this=0x8c4b530, o=0xa00c780, e=0xbfc965f8) at widgets/qabstractscrollarea_p.h:100
#30 0xb66c0cea in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8082138, receiver=0xa00c780, event=0xbfc965f8) at kernel/qcoreapplication.cpp:726
#31 0xb5b6c67a in QApplicationPrivate::notify_helper (this=0x8082138, receiver=0xa00c780, e=0xbfc965f8) at kernel/qapplication.cpp:4053
#32 0xb5b75311 in QApplication::notify (this=0xbfc97f78, receiver=0xa00c780, e=0xbfc965f8) at kernel/qapplication.cpp:3759
#33 0xb6ca7b9d in KApplication::notify (this=0xbfc97f78, receiver=0xa00c780, event=0xbfc965f8) at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kapplication.cpp:302
#34 0xb66c1adb in QCoreApplication::notifyInternal (this=0xbfc97f78, receiver=0xa00c780, event=0xbfc965f8) at kernel/qcoreapplication.cpp:610
#35 0xb5b7437e in QApplicationPrivate::sendMouseEvent (receiver=0xa00c780, event=0xbfc965f8, alienWidget=0xa00c780, nativeWidget=0x9e91d90, buttonDown=0xb6401a40, lastMouseReceiver=@0xb6401a44)
    at ../../src/corelib/kernel/qcoreapplication.h:216
#36 0xb5be4506 in QETWidget::translateMouseEvent (this=0x9e91d90, event=0xbfc97c8c) at kernel/qapplication_x11.cpp:4446
#37 0xb5be38dd in QApplication::x11ProcessEvent (this=0xbfc97f78, event=0xbfc97c8c) at kernel/qapplication_x11.cpp:3442
#38 0xb5c0d27a in x11EventSourceDispatch (s=0x8073b00, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0xb4e329c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0xb4e36083 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0xb4e36241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0xb66ed558 in QEventDispatcherGlib::processEvents (this=0x8071710, flags={i = -1077313976}) at kernel/qeventdispatcher_glib.cpp:324
#43 0xb5c0c975 in QGuiEventDispatcherGlib::processEvents (this=0x8071710, flags={i = -1077313928}) at kernel/qguieventdispatcher_glib.cpp:202
#44 0xb66c00fa in QEventLoop::processEvents (this=0xbfc97ef0, flags={i = -1077313864}) at kernel/qeventloop.cpp:149
#45 0xb66c053a in QEventLoop::exec (this=0xbfc97ef0, flags={i = -1077313800}) at kernel/qeventloop.cpp:200
#46 0xb66c29e9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#47 0xb5b6c517 in QApplication::exec () at kernel/qapplication.cpp:3526
#48 0x0804c04f in _start ()

Reported using DrKonqi
Comment 1 Christophe Marin 2009-06-15 22:17:15 UTC
Your backtrace is missing the interesting bits. Please install the debug package for kdepim and kdepimlibs and try to reproduce.
Comment 2 Dario Andres 2009-06-15 22:23:43 UTC
Could be related to bug 193733
Comment 3 Thomas Thym 2009-06-15 22:29:17 UTC
I reproduced it twice. (I installed some debug packages but there is still some
information missing in the new reports.)
Every time I add a new akonadi vcard ressource one akonadi-ressource adressbook
in Kontact is added. (The same happens if I delete one vcard akonadi
ressource).
Comment 4 Thomas Thym 2009-06-15 22:42:55 UTC
Here comes the new backtrace with the kdepim debug packages:

Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#6  KConfigGroup::deleteEntry (this=0x8e95014, key=0x924b260 "CollectionUrl", flags={i = -1074590152}) at /usr/include/QtCore/qshareddata.h:187
#7  0xb673e28c in KConfigGroup::deleteEntry (this=0x8e95014, key=@0xbff30f70, flags={i = -1074589844}) at /usr/src/debug/kdelibs-4.2.90/kdecore/config/kconfiggroup.cpp:1198
#8  0xaf1abe7a in ResourcePrivateBase::writeConfig (this=0x8e95008, config=@0x8e95014) at /usr/src/debug/kdepim-4.2.90/kresources/akonadi/shared/resourceprivatebase.cpp:227
#9  0xaf1ac269 in ResourcePrivateBase::doClose (this=0x8e95008) at /usr/src/debug/kdepim-4.2.90/kresources/akonadi/shared/resourceprivatebase.cpp:109
#10 0xaf186340 in KABC::ResourceAkonadi::doClose (this=0x9148360) at /usr/src/debug/kdepim-4.2.90/kresources/akonadi/kabc/resourceakonadi.cpp:67
#11 0xb70d3007 in KRES::Resource::close (this=0x9148360) at /usr/src/debug/kdepimlibs-4.2.90/kresources/resource.cpp:141
#12 0xae75b8ad in ResourceSelection::currentChanged (this=0x913cad8, item=0x9296860) at /usr/src/debug/kdepim-4.2.90/kaddressbook/features/resourceselection.cpp:270
#13 0xae75d064 in ResourceSelection::qt_metacall (this=0x913cad8, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbff311a8)
    at /usr/src/debug/kdepim-4.2.90/build/kaddressbook/features/resourceselection.moc:84
#14 0xb6573dc8 in QMetaObject::activate (sender=0x9135550, from_signal_index=96, to_signal_index=96, argv=0xbff311a8) at kernel/qobject.cpp:3120
#15 0xb6575552 in QMetaObject::activate (sender=0x9135550, m=0xb6291bf0, local_signal_index=1, argv=0xbff311a8) at kernel/qobject.cpp:3194
#16 0xb5fdd8b9 in QTreeWidget::itemClicked (this=0x9135550, _t1=0x9296860, _t2=0) at .moc/release-shared/moc_qtreewidget.cpp:201
#17 0xb5fe1c15 in QTreeWidgetPrivate::_q_emitItemClicked (this=0x91356e0, index=@0x92cd708) at itemviews/qtreewidget.cpp:2228
#18 0xb5feafa1 in QTreeWidget::qt_metacall (this=0x9135550, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbff312dc) at .moc/release-shared/moc_qtreewidget.cpp:144
#19 0xb6573dc8 in QMetaObject::activate (sender=0x9135550, from_signal_index=32, to_signal_index=32, argv=0xbff312dc) at kernel/qobject.cpp:3120
#20 0xb6575552 in QMetaObject::activate (sender=0x9135550, m=0xb6290b44, local_signal_index=1, argv=0xbff312dc) at kernel/qobject.cpp:3194
#21 0xb5f5f653 in QAbstractItemView::clicked (this=0x9135550, _t1=@0x92cd708) at .moc/release-shared/moc_qabstractitemview.cpp:321
#22 0xb5f6cf45 in QAbstractItemView::mouseReleaseEvent (this=0x9135550, event=0xbff31bf8) at itemviews/qabstractitemview.cpp:1655
#23 0xb5faf6cc in QTreeView::mouseReleaseEvent (this=0x9135550, event=0xbff31bf8) at itemviews/qtreeview.cpp:1794
#24 0xb5a5f323 in QWidget::event (this=0x9135550, event=0xbff31bf8) at kernel/qwidget.cpp:7521
#25 0xb5e1dc13 in QFrame::event (this=0x9135550, e=0xbff31bf8) at widgets/qframe.cpp:559
#26 0xb5ebddef in QAbstractScrollArea::viewportEvent (this=0x9135550, e=0x924b201) at widgets/qabstractscrollarea.cpp:962
#27 0xb5f6fbd7 in QAbstractItemView::viewportEvent (this=0x9135550, event=0xbff31bf8) at itemviews/qabstractitemview.cpp:1471
#28 0xb5fa9e96 in QTreeView::viewportEvent (this=0x9135550, event=0xbff31bf8) at itemviews/qtreeview.cpp:1264
#29 0xb5ec03f5 in QAbstractScrollAreaFilter::eventFilter (this=0x9136c60, o=0x9135ad8, e=0xbff31bf8) at widgets/qabstractscrollarea_p.h:100
#30 0xb655ccea in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8081e68, receiver=0x9135ad8, event=0xbff31bf8) at kernel/qcoreapplication.cpp:726
#31 0xb5a0867a in QApplicationPrivate::notify_helper (this=0x8081e68, receiver=0x9135ad8, e=0xbff31bf8) at kernel/qapplication.cpp:4053
#32 0xb5a11311 in QApplication::notify (this=0xbff33578, receiver=0x9135ad8, e=0xbff31bf8) at kernel/qapplication.cpp:3759
#33 0xb6b43b9d in KApplication::notify (this=0xbff33578, receiver=0x9135ad8, event=0xbff31bf8) at /usr/src/debug/kdelibs-4.2.90/kdeui/kernel/kapplication.cpp:302
#34 0xb655dadb in QCoreApplication::notifyInternal (this=0xbff33578, receiver=0x9135ad8, event=0xbff31bf8) at kernel/qcoreapplication.cpp:610
#35 0xb5a1037e in QApplicationPrivate::sendMouseEvent (receiver=0x9135ad8, event=0xbff31bf8, alienWidget=0x9135ad8, nativeWidget=0x8077288, buttonDown=0xb629da40, lastMouseReceiver=@0xb629da44)
    at ../../src/corelib/kernel/qcoreapplication.h:216
#36 0xb5a80506 in QETWidget::translateMouseEvent (this=0x8077288, event=0xbff3328c) at kernel/qapplication_x11.cpp:4446
#37 0xb5a7f8dd in QApplication::x11ProcessEvent (this=0xbff33578, event=0xbff3328c) at kernel/qapplication_x11.cpp:3442
#38 0xb5aa927a in x11EventSourceDispatch (s=0x8077a68, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0xb4cce9c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0xb4cd2083 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0xb4cd2241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0xb6589558 in QEventDispatcherGlib::processEvents (this=0x8081e58, flags={i = -1074580408}) at kernel/qeventdispatcher_glib.cpp:324
#43 0xb5aa8975 in QGuiEventDispatcherGlib::processEvents (this=0x8081e58, flags={i = -1074580360}) at kernel/qguieventdispatcher_glib.cpp:202
#44 0xb655c0fa in QEventLoop::processEvents (this=0xbff334f0, flags={i = -1074580296}) at kernel/qeventloop.cpp:149
#45 0xb655c53a in QEventLoop::exec (this=0xbff334f0, flags={i = -1074580232}) at kernel/qeventloop.cpp:200
#46 0xb655e9e9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#47 0xb5a08517 in QApplication::exec () at kernel/qapplication.cpp:3526
#48 0x0804c04f in main (argc=1, argv=0xbff33874) at /usr/src/debug/kdepim-4.2.90/kontact/src/main.cpp:218
Comment 5 Christophe Marin 2009-06-16 00:05:27 UTC

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