Bug 193733 - crash while adding and removing an akonadi resource in Kontact address book
Summary: crash while adding and removing an akonadi resource in Kontact address book
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: KResource compat bridges (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Krammer
URL:
Keywords:
: 196667 196769 197428 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-23 09:00 UTC by Frank Niethardt
Modified: 2009-06-23 13:47 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Niethardt 2009-05-23 09:00:51 UTC
Application that crashed: kontact
Version of the application: 4.3.0 pre
KDE Version: 4.2.87 (KDE 4.2.87 (KDE 4.3 >= 20090519))
Qt Version: 4.5.1
Operating System: Linux 2.6.29-ARCH i686

What I was doing when the application crashed:
I tried to add an akonadi resource to the resources in address book, using the kontact application. There was already the "akonadi compatibility resource" using std.vcf.
As I thought it was something different, I addes the resource, leaving defaults (std.vcf).

After that I recognized it is the same as the compatibility one and removed it. Crash happened as I clicked on remove.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#6  0xb6727851 in KConfigGroup::deleteEntry () from /usr/lib/libkdecore.so.5
#7  0xb672797c in KConfigGroup::deleteEntry () from /usr/lib/libkdecore.so.5
#8  0xb002825a in ResourcePrivateBase::writeConfig () from /usr/lib/kde4/kabc_akonadi.so
#9  0xb00286b9 in ResourcePrivateBase::doClose () from /usr/lib/kde4/kabc_akonadi.so
#10 0xb0002200 in KABC::ResourceAkonadi::doClose () from /usr/lib/kde4/kabc_akonadi.so
#11 0xb70ec6cf in KRES::Resource::close () from /usr/lib/libkresources.so.4
#12 0xb7130ba2 in KABC::AddressBook::removeResource () from /usr/lib/libkabc.so.4
#13 0xadfd3cae in ResourceSelection::remove () from /usr/lib/kde4/kaddrbk_resourceselection.so
#14 0xadfd534e in ResourceSelection::qt_metacall () from /usr/lib/kde4/kaddrbk_resourceselection.so
#15 0xb6559339 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb6559750 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#17 0xb6077951 in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
#18 0xb5da30a9 in ?? () from /usr/lib/libQtGui.so.4
#19 0xb5da4d14 in ?? () from /usr/lib/libQtGui.so.4
#20 0xb5da4fa6 in QAbstractButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#21 0xb5e8bc2c in QToolButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#22 0xb5a1db83 in QWidget::event () from /usr/lib/libQtGui.so.4
#23 0xb5da2f4e in QAbstractButton::event () from /usr/lib/libQtGui.so.4
#24 0xb5e8e64a in QToolButton::event () from /usr/lib/libQtGui.so.4
#25 0xb59c76ec in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#26 0xb59d02bf in QApplication::notify () from /usr/lib/libQtGui.so.4
#27 0xb6b45bfa in KApplication::notify () from /usr/lib/libkdeui.so.5
#28 0xb654324b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#29 0xb59cf3b3 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#30 0xb5a3e423 in ?? () from /usr/lib/libQtGui.so.4
#31 0xb5a3d906 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#32 0xb5a66b62 in ?? () from /usr/lib/libQtGui.so.4
#33 0xb4b22718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0xb4b25c7b in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#35 0xb4b25df8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0xb656e978 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#37 0xb5a662a5 in ?? () from /usr/lib/libQtGui.so.4
#38 0xb654187a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#39 0xb6541cba in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#40 0xb6544149 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#41 0xb59c7567 in QApplication::exec () from /usr/lib/libQtGui.so.4
#42 0x0804b63a in _start ()
Comment 1 Christophe Marin 2009-06-16 00:05:27 UTC
*** Bug 196667 has been marked as a duplicate of this bug. ***
Comment 2 Christophe Marin 2009-06-16 00:05:58 UTC
Backtrace from bug 196667:

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 3 Dario Andres 2009-06-16 20:22:28 UTC
*** Bug 196769 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-06-21 22:43:49 UTC
*** Bug 197428 has been marked as a duplicate of this bug. ***
Comment 5 Kevin Krammer 2009-06-23 13:47:47 UTC
SVN commit 985668 by krake:

Only attempt to write current resource config if config is actually valid.

BUG: 193733


 M  +3 -1      resourceprivatebase.cpp  


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