Bug 297548

Summary: Crash at akonadi start after having added a new contact
Product: [Frameworks and Libraries] libkgapi Reporter: Frédéric COIFFIER <frederic.coiffier>
Component: contactsAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: crash CC: crglasoe, ivaylo.kabakov, rkayondo
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 0.3.1
Sentry Crash Report:

Description Frédéric COIFFIER 2012-04-05 17:44:13 UTC
Application: akonadi_googlecontacts_resource (4.8)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.11-gentoo x86_64
Distribution: "Gentoo Base System release 2.1"

-- Information about the crash:
- What I was doing when the application crashed:

I added a new contact in Kaddressbook. It made Akonadi Google Contacts crash and now, it continues to crash at each Akonadi start.

The crash can be reproduced every time.

-- Backtrace:
Application: Google Contacts of type Google Contacts (akonadi_googlecontacts_resource), signal: Segmentation fault
[KCrash Handler]
#6  QString (other=<error reading variable: Cannot access memory at address 0x8>, this=0x7fff5233cbc0) at /usr/include/qt4/QtCore/qstring.h:725
#7  KGoogle::Account::accountName (this=0x0) at /hdf/tmp/portage/kde-misc/akonadi-google-0.3/work/akonadi-google-0.3/libkgoogle/account.cpp:88
#8  0x000000000040ec16 in ContactsResource::itemAdded (this=0x109d250, item=..., collection=...) at /hdf/tmp/portage/kde-misc/akonadi-google-0.3/work/akonadi-google-0.3/contacts/contactsresource.cpp:297
#9  0x000000375cd65fea in Akonadi::ResourceBasePrivate::itemAdded (this=0x10a7090, item=..., collection=...) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2/akonadi/resourcebase.cpp:203
#10 0x000000375cd5ff0e in Akonadi::ResourceBasePrivate::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2_build/akonadi/resourcebase.moc:88
#11 0x0000003754596833 in QMetaObject::activate (sender=0x10c6650, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5233ce50) at kernel/qobject.cpp:3547
#12 0x000000375cd4aa5a in Akonadi::Monitor::itemAdded (this=<optimized out>, _t1=..., _t2=...) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2_build/akonadi/monitor.moc:203
#13 0x000000375cd4deba in Akonadi::MonitorPrivate::emitItemNotification (this=0x10c6530, msg=..., item=..., collection=..., collectionDest=...) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2/akonadi/monitor_p.cpp:520
#14 0x000000375cd50164 in Akonadi::MonitorPrivate::emitNotification (this=0x10c6530, msg=...) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2/akonadi/monitor_p.cpp:288
#15 0x000000375ccb1201 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x10c6530, msg=...) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2/akonadi/changerecorder_p.h:60
#16 0x000000375cd4eb34 in Akonadi::MonitorPrivate::flushPipeline (this=0x10c6530) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2/akonadi/monitor_p.cpp:429
#17 0x000000375cd4ebd9 in Akonadi::MonitorPrivate::dataAvailable (this=0x10c6530) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2/akonadi/monitor_p.cpp:438
#18 0x0000003754596833 in QMetaObject::activate (sender=0x10c6c30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#19 0x000000375ccb7823 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::processResult (this=0x10c6c30, job=<optimized out>) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2/akonadi/entitycache_p.h:192
#20 0x0000003754596833 in QMetaObject::activate (sender=0x112e8c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5233d650) at kernel/qobject.cpp:3547
#21 0x0000003756942012 in KJob::result (this=<optimized out>, _t1=0x112e8c0) at /hdf/tmp/portage/kde-base/kdelibs-4.8.2/work/kdelibs-4.8.2_build/kdecore/kjob.moc:208
#22 0x0000003756942050 in KJob::emitResult (this=0x112e8c0) at /hdf/tmp/portage/kde-base/kdelibs-4.8.2/work/kdelibs-4.8.2/kdecore/jobs/kjob.cpp:318
#23 0x0000003754595c76 in QObject::event (this=0x112e8c0, e=<optimized out>) at kernel/qobject.cpp:1195
#24 0x00007f5016caf404 in QApplicationPrivate::notify_helper (this=0xeff130, receiver=0x112e8c0, e=0x11d4ec0) at kernel/qapplication.cpp:4554
#25 0x00007f5016cb3fff in QApplication::notify (this=<optimized out>, receiver=0x112e8c0, e=0x11d4ec0) at kernel/qapplication.cpp:4415
#26 0x0000003757c5bb06 in KApplication::notify (this=0x7fff5233e0e0, receiver=0x112e8c0, event=0x11d4ec0) at /hdf/tmp/portage/kde-base/kdelibs-4.8.2/work/kdelibs-4.8.2/kdeui/kernel/kapplication.cpp:311
#27 0x000000375458105b in QCoreApplication::notifyInternal (this=0x7fff5233e0e0, receiver=0x112e8c0, event=0x11d4ec0) at kernel/qcoreapplication.cpp:876
#28 0x0000003754584617 in sendEvent (event=0x11d4ec0, receiver=0x112e8c0) at kernel/qcoreapplication.h:231
#29 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xed41f0) at kernel/qcoreapplication.cpp:1500
#30 0x00000037545b0003 in sendPostedEvents () at kernel/qcoreapplication.h:236
#31 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#32 0x0000003ec5c47672 in g_main_dispatch (context=0xf01dd0) at gmain.c:2441
#33 g_main_context_dispatch (context=0xf01dd0) at gmain.c:3011
#34 0x0000003ec5c47e68 in g_main_context_iterate (context=0xf01dd0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3089
#35 0x0000003ec5c48041 in g_main_context_iteration (context=0xf01dd0, may_block=1) at gmain.c:3152
#36 0x00000037545b019f in QEventDispatcherGlib::processEvents (this=0xed5ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#37 0x00007f5016d5480e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0x0000003754580082 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#39 0x0000003754580335 in QEventLoop::exec (this=0x7fff5233e050, flags=...) at kernel/qeventloop.cpp:204
#40 0x0000003754584abb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#41 0x000000375cd607c6 in Akonadi::ResourceBase::init (r=0x109d250) at /hdf/tmp/portage/kde-base/kdepimlibs-4.8.2/work/kdepimlibs-4.8.2/akonadi/resourcebase.cpp:412
#42 0x000000000040db38 in init<ContactsResource> (argv=<optimized out>, argc=<optimized out>) at /usr/include/KDE/Akonadi/../../akonadi/resourcebase.h:188
#43 main (argc=<optimized out>, argv=<optimized out>) at /hdf/tmp/portage/kde-misc/akonadi-google-0.3/work/akonadi-google-0.3/contacts/contactsresource.cpp:645

Reported using DrKonqi
Comment 1 Daniel Vrátil 2012-04-06 15:04:41 UTC
Thank you for reporting the issue.

Removing the resource from Akonadi (via Akonadi Console for example) and adding a new contacts resource again should solve the crash-on-start issue for you.

Fixed in master by 1bfc3bea17df395348dd1eab00a4225a76b65283.
Comment 2 Daniel Vrátil 2012-04-12 20:16:05 UTC
*** Bug 297906 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Vrátil 2012-04-13 09:51:59 UTC
*** Bug 298037 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Vrátil 2012-05-04 06:55:12 UTC
*** Bug 299097 has been marked as a duplicate of this bug. ***