Bug 328508

Summary: Akonadi resource crashes right after login
Product: [Frameworks and Libraries] Akonadi Reporter: Frank Sagurna <fgunni>
Component: Facebook ResourceAssignee: Martin Klapetek <mklapetek>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: fgunni, kdepim-bugs
Priority: NOR Keywords: drkonqi
Version: 4.11   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Frank Sagurna 2013-12-07 11:18:31 UTC
Application: akonadi_facebook_resource (4.11)
KDE Platform Version: 4.11.97
Qt Version: 4.8.4
Operating System: Linux 3.11.0-14-generic x86_64
Distribution: Ubuntu 13.10

-- Information about the crash:
- What I was doing when the application crashed:
logged into kde, and three akonadi resources crash when desktop appears

The crash can be reproduced every time.

-- Backtrace:
Application: Facebook vom Typ Facebook (akonadi_facebook_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  QString (other=<error reading variable: Cannot access memory at address 0x41>, this=0x7fff3fb01f80, this@entry=0x7fff3fb01f78) at /usr/include/qt4/QtCore/qstring.h:725
#7  Akonadi::Entity::remoteId (this=this@entry=0x41) at ../../akonadi/entity.cpp:84
#8  0x00007f756bba5d26 in Akonadi::ResourceBasePrivate::itemRemoved (this=0x2559aa0, item=...) at ../../akonadi/resourcebase.cpp:280
#9  0x00007f756bb9ea2d in Akonadi::ResourceBasePrivate::qt_static_metacall (_o=0x2559aa0, _c=65, _id=-582688, _a=0x7fff3fb021b0) at ./resourcebase.moc:96
#10 0x00007f756b456a58 in QMetaObject::activate (sender=0x25e75a0, m=m@entry=0x7f756bea6740 <Akonadi::Monitor::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff3fb021b0) at kernel/qobject.cpp:3539
#11 0x00007f756bb810f5 in Akonadi::Monitor::itemRemoved (this=<optimized out>, _t1=...) at ./moc_monitor.cpp:244
#12 0x00007f756bb88ca8 in Akonadi::MonitorPrivate::emitItemsNotification (this=this@entry=0x254bec0, msg=..., items=..., collection=..., collectionDest=...) at ../../akonadi/monitor_p.cpp:755
#13 0x00007f756bb89e0c in Akonadi::MonitorPrivate::emitNotification (this=this@entry=0x254bec0, msg=...) at ../../akonadi/monitor_p.cpp:421
#14 0x00007f756baebce1 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x254bec0, msg=...) at ../../akonadi/changerecorder_p.cpp:60
#15 0x00007f756bb85ae1 in Akonadi::MonitorPrivate::flushPipeline (this=this@entry=0x254bec0) at ../../akonadi/monitor_p.cpp:619
#16 0x00007f756bb85cb9 in Akonadi::MonitorPrivate::dataAvailable (this=0x254bec0) at ../../akonadi/monitor_p.cpp:628
#17 0x00007f756b456a58 in QMetaObject::activate (sender=sender@entry=0x2549d30, m=m@entry=0x7f756bea44a0 <Akonadi::EntityCacheBase::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#18 0x00007f756bb33980 in Akonadi::EntityCacheBase::dataAvailable (this=this@entry=0x2549d30) at ./moc_entitycache_p.cpp:102
#19 0x00007f756baf49fc in Akonadi::EntityCache<Akonadi::Collection, Akonadi::CollectionFetchJob, Akonadi::CollectionFetchScope>::processResult (this=0x2549d30, job=<optimized out>) at ../../akonadi/entitycache_p.h:200
#20 0x00007f756b456a58 in QMetaObject::activate (sender=sender@entry=0x2618570, m=m@entry=0x7f756a381600 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff3fb02870) at kernel/qobject.cpp:3539
#21 0x00007f7569ff21f2 in KJob::result (this=this@entry=0x2618570, _t1=_t1@entry=0x2618570) at ./kjob.moc:208
#22 0x00007f7569ff2230 in KJob::emitResult (this=this@entry=0x2618570) at ../../kdecore/jobs/kjob.cpp:318
#23 0x00007f756bb7d1c1 in Akonadi::JobPrivate::handleResponse (this=<optimized out>, tag=..., data=...) at ../../akonadi/job.cpp:66
#24 0x00007f756bbbde39 in Akonadi::SessionPrivate::dataReceived (this=0x25e7270) at ../../akonadi/session.cpp:231
#25 0x00007f756b456a58 in QMetaObject::activate (sender=0x2556a20, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#26 0x00007f756b456a58 in QMetaObject::activate (sender=sender@entry=0x254b728, m=m@entry=0x7f756b7a4540 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#27 0x00007f756b49f780 in QIODevice::readyRead (this=this@entry=0x254b728) at .moc/release-shared/moc_qiodevice.cpp:105
#28 0x00007f7567f1bb3d in QAbstractSocketPrivate::canReadNotification (this=0x255c0d0) at socket/qabstractsocket.cpp:654
#29 0x00007f7567f24b8d in QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1151
#30 0x00007f756a7d9dfc in QApplicationPrivate::notify_helper (this=this@entry=0x23d39c0, receiver=receiver@entry=0x2534730, e=e@entry=0x7fff3fb02e20) at kernel/qapplication.cpp:4567
#31 0x00007f756a7e0470 in QApplication::notify (this=this@entry=0x7fff3fb03100, receiver=receiver@entry=0x2534730, e=e@entry=0x7fff3fb02e20) at kernel/qapplication.cpp:4353
#32 0x00007f75695b9d9a in KApplication::notify (this=0x7fff3fb03100, receiver=0x2534730, event=0x7fff3fb02e20) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007f756b4428bd in QCoreApplication::notifyInternal (this=0x7fff3fb03100, receiver=0x2534730, event=event@entry=0x7fff3fb02e20) at kernel/qcoreapplication.cpp:946
#34 0x00007f756b470590 in sendEvent (event=0x7fff3fb02e20, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#35 socketNotifierSourceDispatch (source=0x23d3c50) at kernel/qeventdispatcher_glib.cpp:110
#36 0x00007f7566bc03a6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f7566bc06f8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f7566bc079c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f756b46fa76 in QEventDispatcherGlib::processEvents (this=0x235aad0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#40 0x00007f756a87b9d6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x00007f756b4415ef in QEventLoop::processEvents (this=this@entry=0x7fff3fb03070, flags=...) at kernel/qeventloop.cpp:149
#42 0x00007f756b4418e5 in QEventLoop::exec (this=this@entry=0x7fff3fb03070, flags=...) at kernel/qeventloop.cpp:204
#43 0x00007f756b446e5b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#44 0x00007f756a7d834c in QApplication::exec () at kernel/qapplication.cpp:3828
#45 0x00007f756bb9ee33 in Akonadi::ResourceBase::init (r=r@entry=0x2557d40) at ../../akonadi/resourcebase.cpp:504
#46 0x0000000000413733 in Akonadi::ResourceBase::init<FacebookResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KDE/Akonadi/../../akonadi/resourcebase.h:192
#47 0x00007f7568ad1de5 in __libc_start_main (main=0x40d400 <main(int, char**)>, argc=3, ubp_av=0x7fff3fb03218, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff3fb03208) at libc-start.c:260
#48 0x000000000040d64c in _start ()

Reported using DrKonqi
Comment 1 Frank Sagurna 2013-12-07 11:21:19 UTC
Created attachment 83969 [details]
New crash information added by DrKonqi

akonadi_davgroupware_resource (4.11) on KDE Platform 4.11.97 using Qt 4.8.4

- What I was doing when the application crashed:
logged into kde, and three akonadi resources crash when desktop appears
the three resources crash aroud three times each

-- Backtrace (Reduced):
#6  QString (other=<error reading variable: Cannot access memory at address 0x61>, this=0x7fffae9cf5b0, this@entry=0x7fffae9cf5a8) at /usr/include/qt4/QtCore/qstring.h:725
#7  Akonadi::Entity::remoteId (this=this@entry=0x61) at ../../akonadi/entity.cpp:84
#8  0x00007f63595b5d26 in Akonadi::ResourceBasePrivate::itemRemoved (this=0x1d829b0, item=...) at ../../akonadi/resourcebase.cpp:280
#9  0x00007f63595aea2d in Akonadi::ResourceBasePrivate::qt_static_metacall (_o=0x1d829b0, _c=97, _id=-582688, _a=0x7fffae9cf7e0) at ./resourcebase.moc:96
[...]
#11 0x00007f63595910f5 in Akonadi::Monitor::itemRemoved (this=<optimized out>, _t1=...) at ./moc_monitor.cpp:244
Comment 2 Frank Sagurna 2013-12-07 11:22:26 UTC
Created attachment 83970 [details]
New crash information added by DrKonqi

akonadi_birthdays_resource (4.11) on KDE Platform 4.11.97 using Qt 4.8.4

- What I was doing when the application crashed:
logged into kde, and three akonadi resources crash when desktop appears

-- Backtrace (Reduced):
#6  QString (other=<error reading variable: Cannot access memory at address 0x31>, this=0x7fff821e5a20, this@entry=0x7fff821e5a18) at /usr/include/qt4/QtCore/qstring.h:725
#7  Akonadi::Entity::remoteId (this=this@entry=0x31) at ../../akonadi/entity.cpp:84
#8  0x00007f0a0fca5d26 in Akonadi::ResourceBasePrivate::itemRemoved (this=0x16918e0, item=...) at ../../akonadi/resourcebase.cpp:280
#9  0x00007f0a0fc9ea2d in Akonadi::ResourceBasePrivate::qt_static_metacall (_o=0x16918e0, _c=49, _id=-582688, _a=0x7fff821e5c50) at ./resourcebase.moc:96
[...]
#11 0x00007f0a0fc810f5 in Akonadi::Monitor::itemRemoved (this=<optimized out>, _t1=...) at ./moc_monitor.cpp:244
Comment 3 Denis Kurz 2016-09-24 20:37:30 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 4 Denis Kurz 2017-01-07 21:44:47 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.