Bug 325911

Summary: akonadi-imap-resource for certain account crashing on startup
Product: [Frameworks and Libraries] Akonadi Reporter: Juraj Variny <rini17>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED DUPLICATE    
Severity: crash CC: aaron, kdepim-bugs, mollekopf, vkrause
Priority: NOR Keywords: drkonqi
Version: 4.11   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi

Description Juraj Variny 2013-10-12 09:16:41 UTC
Application: akonadi_imap_resource (4.11)
KDE Platform Version: 4.11.2
Qt Version: 4.8.4
Operating System: Linux 3.10.7-gentoo x86_64
Distribution: "NAME=Gentoo"

-- Information about the crash:
- Distribution: Gentoo x86_64
- Custom settings of the application: The account that is crashing has unsubscribed all folders.

The crash can be reproduced every time.

-- Backtrace:
Application: IFHOHYP Admin of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa1f74a57c0 (LWP 6967))]

Thread 2 (Thread 0x7fa163fff700 (LWP 7169)):
#0  0x00000030044decb3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003006448276 in g_main_context_poll (n_fds=1, fds=0x7fa1200029c0, timeout=-1, context=0x7fa1200009a0, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=0x7fa1200009a0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3141
#3  0x000000300644838c in g_main_context_iteration (context=0x7fa1200009a0, may_block=1) at gmain.c:3207
#4  0x00000038f23aedae in QEventDispatcherGlib::processEvents (this=0x7fa1200008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00000038f237e292 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00000038f237e517 in QEventLoop::exec (this=0x7fa163ffeda0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00000038f22798df in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00000038f227c95c in QThreadPrivate::start (arg=0x16203b0) at thread/qthread_unix.cpp:338
#9  0x0000003004c080e6 in start_thread (arg=0x7fa163fff700) at pthread_create.c:305
#10 0x00000030044e798d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fa1f74a57c0 (LWP 6967)):
[KCrash Handler]
#6  QSharedDataPointer (o=..., this=0x7fff4b8215a0) at /usr/include/qt4/QtCore/qshareddata.h:93
#7  assignEntityPrivate (one=..., other=...) at /var/tmp/portage/kde-base/kdepimlibs-4.11.2-r1/work/kdepimlibs-4.11.2/akonadi/entity.cpp:49
#8  0x00007fa1fa74fdf4 in Akonadi::Entity::Entity (this=0x7fff4b821600, other=...) at /var/tmp/portage/kde-base/kdepimlibs-4.11.2-r1/work/kdepimlibs-4.11.2/akonadi/entity.cpp:55
#9  0x000000000041cefe in ImapResource::onIdleCollectionFetchDone (this=0x162ee60, job=0x14e8e90) at /var/tmp/portage/kde-base/kdepim-runtime-4.11.2/work/kdepim-runtime-4.11.2/resources/imap/imapresource.cpp:629
#10 0x000000000041dbcc in ImapResource::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-base/kdepim-runtime-4.11.2/work/kdepim-runtime-4.11.2_build/resources/imap/imapresource.moc:123
#11 0x00000038f23939a1 in QMetaObject::activate (sender=0x14e8e90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff4b821820) at kernel/qobject.cpp:3539
#12 0x00007fa1f868c3f2 in KJob::result (this=<optimized out>, _t1=0x14e8e90) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2_build/kdecore/kjob.moc:208
#13 0x00007fa1f868c430 in KJob::emitResult (this=0x14e8e90) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdecore/jobs/kjob.cpp:318
#14 0x00000038f2398b5e in QObject::event (this=0x14e8e90, e=<optimized out>) at kernel/qobject.cpp:1194
#15 0x00000038f4fc8f34 in notify_helper (e=0x1677dc0, receiver=0x14e8e90, this=0x148d610) at kernel/qapplication.cpp:4562
#16 QApplicationPrivate::notify_helper (this=0x148d610, receiver=0x14e8e90, e=0x1677dc0) at kernel/qapplication.cpp:4534
#17 0x00000038f4fcdc93 in QApplication::notify (this=0x7fff4b822220, receiver=0x14e8e90, e=0x1677dc0) at kernel/qapplication.cpp:4423
#18 0x00007fa1f8c97568 in KApplication::notify (this=0x7fff4b822220, receiver=0x14e8e90, event=0x1677dc0) at /var/tmp/portage/kde-base/kdelibs-4.11.2-r1/work/kdelibs-4.11.2/kdeui/kernel/kapplication.cpp:311
#19 0x00000038f237f7eb in QCoreApplication::notifyInternal (this=0x7fff4b822220, receiver=0x14e8e90, event=0x1677dc0) at kernel/qcoreapplication.cpp:946
#20 0x00000038f2383109 in sendEvent (event=0x1677dc0, receiver=0x14e8e90) at kernel/qcoreapplication.h:231
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x14610e0) at kernel/qcoreapplication.cpp:1570
#22 0x00000038f23ae973 in sendPostedEvents () at kernel/qcoreapplication.h:236
#23 postEventSourceDispatch (s=0x148e0e0) at kernel/qeventdispatcher_glib.cpp:279
#24 0x0000003006447f7a in g_main_dispatch (context=0x148f340) at gmain.c:2539
#25 g_main_context_dispatch (context=0x148f340) at gmain.c:3075
#26 0x00000030064482d8 in g_main_context_iterate (context=0x148f340, block=1, dispatch=1, self=<optimized out>) at gmain.c:3146
#27 0x000000300644838c in g_main_context_iteration (context=0x148f340, may_block=1) at gmain.c:3207
#28 0x00000038f23aed56 in QEventDispatcherGlib::processEvents (this=0x1462da0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#29 0x00000038f506d1e6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00000038f237e292 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#31 0x00000038f237e517 in QEventLoop::exec (this=0x7fff4b822190, flags=...) at kernel/qeventloop.cpp:204
#32 0x00000038f2383405 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#33 0x00007fa1fa834ba3 in Akonadi::ResourceBase::init (r=0x162ee60) at /var/tmp/portage/kde-base/kdepimlibs-4.11.2-r1/work/kdepimlibs-4.11.2/akonadi/resourcebase.cpp:548
#34 0x000000000041e0d6 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:192
#35 0x000000300442144d in __libc_start_main (main=0x416680 <main(int, char**)>, argc=3, ubp_av=0x7fff4b822338, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4b822328) at libc-start.c:226
#36 0x00000000004168b5 in _start ()

Possible duplicates by query: bug 323883, bug 323115, bug 322413, bug 320611, bug 320272.

Reported using DrKonqi
Comment 1 aaron 2013-10-22 21:49:23 UTC
Created attachment 83038 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.11) on KDE Platform 4.11.2 using Qt 4.8.2

Same here, @Ubuntu 12.04lts with kubuntu ppa backports

I unsuscribed some folders from my gmail account, and then crashes when starting kde/kmail.

-- Backtrace (Reduced):
#6  QSharedDataPointer (o=..., this=0x7fffc60fa9b0) at /usr/include/qt4/QtCore/qshareddata.h:93
#7  assignEntityPrivate (one=..., other=...) at ../../akonadi/entity.cpp:49
#8  0x00007fc86288ff14 in Akonadi::Entity::Entity (this=<optimized out>, other=...) at ../../akonadi/entity.cpp:55
#9  0x000000000041ca4f in ImapResource::onIdleCollectionFetchDone (this=0x17a2a00, job=0x1861af0) at ../../../resources/imap/imapresource.cpp:629
#10 0x000000000041d74c in ImapResource::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./imapresource.moc:123
Comment 2 Kevin Ottens 2013-11-16 07:33:48 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 3 Christian Mollekopf 2013-12-04 08:29:30 UTC

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