Bug 347050 - KIMAP/KF5 crashes during fetching mails
Summary: KIMAP/KF5 crashes during fetching mails
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: drkonqi
Depends on:
Blocks: kdepim-15.08
  Show dependency treegraph
 
Reported: 2015-05-02 11:09 UTC by Andreas Cord-Landwehr
Modified: 2017-01-07 21:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Cord-Landwehr 2015-05-02 11:09:47 UTC
Application: akonadi_kolab_resource (4.82.0)
 (Compiled from sources)
Qt Version: 5.4.2
Operating System: Linux 3.16.0-4-amd64 x86_64
Distribution: Debian GNU/Linux 8.0 (jessie)

-- Information about the crash:
During the regular fetching mail (set via interval fetching in KMail), the resource crashes.
In particular, KMail ran into background and I did not do anything.

The crash can be reproduced every time.

-- Backtrace:
Application: Akonadi Resource (akonadi_kolab_resource), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbf72d64800 (LWP 23690))]

Thread 3 (Thread 0x7fbf6daec700 (LWP 23693)):
#0  0x00007fbf78ac03d9 in g_mutex_lock (mutex=0x7fbf60000990) at /tmp/buildd/glib2.0-2.42.1/./glib/gthread-posix.c:1337
#1  0x00007fbf78a7bddd in g_main_context_iterate (context=context@entry=0x7fbf60000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3748
#2  0x00007fbf78a7bffc in g_main_context_iteration (context=0x7fbf60000990, may_block=1) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3842
#3  0x00007fbf818a1fbb in QEventDispatcherGlib::processEvents (this=0x7fbf600008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007fbf81825962 in QEventLoop::processEvents (this=0x7fbf6daebd60, flags=...) at kernel/qeventloop.cpp:128
#5  0x00007fbf81825c3b in QEventLoop::exec (this=0x7fbf6daebd60, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fbf815a980e in QThread::exec (this=0x107e680) at thread/qthread.cpp:503
#7  0x00007fbf815a99b0 in QThread::run (this=0x107e680) at thread/qthread.cpp:570
#8  0x00007fbf815b0d39 in QThreadPrivate::start (arg=0x107e680) at thread/qthread_unix.cpp:337
#9  0x00007fbf887ce0a4 in start_thread (arg=0x7fbf6daec700) at pthread_create.c:309
#10 0x00007fbf80a1504d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fbf5f215700 (LWP 23695)):
#0  0x00007fbf80a0c50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fbf78a7bee4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7fbf58002c20, timeout=-1, context=0x7fbf58000990) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:4076
#2  g_main_context_iterate (context=context@entry=0x7fbf58000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3776
#3  0x00007fbf78a7bffc in g_main_context_iteration (context=0x7fbf58000990, may_block=1) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3842
#4  0x00007fbf818a1fbb in QEventDispatcherGlib::processEvents (this=0x7fbf580008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#5  0x00007fbf81825962 in QEventLoop::processEvents (this=0x7fbf5f214d60, flags=...) at kernel/qeventloop.cpp:128
#6  0x00007fbf81825c3b in QEventLoop::exec (this=0x7fbf5f214d60, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fbf815a980e in QThread::exec (this=0x10af410) at thread/qthread.cpp:503
#8  0x00007fbf815a99b0 in QThread::run (this=0x10af410) at thread/qthread.cpp:570
#9  0x00007fbf815b0d39 in QThreadPrivate::start (arg=0x10af410) at thread/qthread_unix.cpp:337
#10 0x00007fbf887ce0a4 in start_thread (arg=0x7fbf5f215700) at pthread_create.c:309
#11 0x00007fbf80a1504d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fbf72d64800 (LWP 23690)):
[KCrash Handler]
#6  0x00007fbf80964107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007fbf809654e8 in __GI_abort () at abort.c:89
#8  0x00007fbf809a2204 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7fbf80a94fe0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#9  0x00007fbf809a79de in malloc_printerr (action=1, str=0x7fbf80a951a0 "free(): invalid next size (fast)", ptr=<optimized out>) at malloc.c:4996
#10 0x00007fbf809a86e6 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#11 0x00000000004bfd1c in Akonadi::ImapAclAttribute::~ImapAclAttribute (this=0x10c1d00, __in_chrg=<optimized out>) at /opt/kde/src/kde/kdepim-runtime/resources/shared/singlefileresource/imapaclattribute.h:33
#12 0x00007fbf8bb18d55 in qDeleteAll<QHash<QByteArray, Akonadi::Attribute*>::const_iterator> (begin=..., end=...) at /opt/qt5/qtbase/src/corelib/tools/qalgorithms.h:315
#13 0x00007fbf8bb184b1 in qDeleteAll<QHash<QByteArray, Akonadi::Attribute*> > (c=...) at /opt/qt5/qtbase/src/corelib/tools/qalgorithms.h:323
#14 0x00007fbf8bb308fd in Akonadi::EntityPrivate::~EntityPrivate (this=0x10c7bc0, __in_chrg=<optimized out>) at /opt/kde/src/kde/kdepimlibs/akonadi/src/core/entity_p.h:56
#15 0x00007fbf8bb31150 in Akonadi::CollectionPrivate::~CollectionPrivate (this=0x10c7bc0, __in_chrg=<optimized out>) at /opt/kde/src/kde/kdepimlibs/akonadi/src/core/collection_p.h:77
#16 0x00007fbf8bb31180 in Akonadi::CollectionPrivate::~CollectionPrivate (this=0x10c7bc0, __in_chrg=<optimized out>) at /opt/kde/src/kde/kdepimlibs/akonadi/src/core/collection_p.h:78
#17 0x00007fbf8bb434d7 in QSharedDataPointer<Akonadi::EntityPrivate>::~QSharedDataPointer (this=0x10be3c8, __in_chrg=<optimized out>) at /opt/qt5/qtbase/src/corelib/tools/qshareddata.h:80
#18 0x00007fbf8bb42a9a in Akonadi::Entity::~Entity (this=0x10be3c8, __in_chrg=<optimized out>) at /opt/kde/src/kde/kdepimlibs/akonadi/src/core/entity.cpp:61
#19 0x00007fbf8bb2f46c in Akonadi::Collection::~Collection (this=0x10be3c8, __in_chrg=<optimized out>) at /opt/kde/src/kde/kdepimlibs/akonadi/src/core/collection.cpp:76
#20 0x00000000004d7e2e in RetrieveCollectionMetadataTask::~RetrieveCollectionMetadataTask (this=0x10be380, __in_chrg=<optimized out>) at /opt/kde/src/kde/kdepim-runtime/resources/imap/retrievecollectionmetadatatask.cpp:51
#21 0x00000000004d7e6a in RetrieveCollectionMetadataTask::~RetrieveCollectionMetadataTask (this=0x10be380, __in_chrg=<optimized out>) at /opt/kde/src/kde/kdepim-runtime/resources/imap/retrievecollectionmetadatatask.cpp:53
#22 0x00007fbf8186dc54 in qDeleteInEventHandler (o=0x10be380) at kernel/qobject.cpp:4391
#23 0x00007fbf81865670 in QObject::event (this=0x10be380, e=0x10c9a60) at kernel/qobject.cpp:1236
#24 0x00007fbf8237068c in QApplicationPrivate::notify_helper (this=0xf5ab80, receiver=0x10be380, e=0x10c9a60) at kernel/qapplication.cpp:3720
#25 0x00007fbf8236de08 in QApplication::notify (this=0x7ffc00b5c770, receiver=0x10be380, e=0x10c9a60) at kernel/qapplication.cpp:3164
#26 0x00007fbf81828cbe in QCoreApplication::notifyInternal (this=0x7ffc00b5c770, receiver=0x10be380, event=0x10c9a60) at kernel/qcoreapplication.cpp:935
#27 0x00007fbf8182c91f in QCoreApplication::sendEvent (receiver=0x10be380, event=0x10c9a60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#28 0x00007fbf81829ff7 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xf2d4b0) at kernel/qcoreapplication.cpp:1552
#29 0x00007fbf818299a6 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1410
#30 0x00007fbf818a17e0 in postEventSourceDispatch (s=0xf99c60) at kernel/qeventdispatcher_glib.cpp:271
#31 0x00007fbf78a7bc5d in g_main_dispatch (context=0x7fbf68002450) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3111
#32 g_main_context_dispatch (context=context@entry=0x7fbf68002450) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3710
#33 0x00007fbf78a7bf48 in g_main_context_iterate (context=context@entry=0x7fbf68002450, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3781
#34 0x00007fbf78a7bffc in g_main_context_iteration (context=0x7fbf68002450, may_block=1) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3842
#35 0x00007fbf818a1f9b in QEventDispatcherGlib::processEvents (this=0xf9e4e0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#36 0x00007fbf72b463ce in QPAEventDispatcherGlib::processEvents (this=0xf9e4e0, flags=...) at eventdispatchers/qeventdispatcher_glib.cpp:115
#37 0x00007fbf81825962 in QEventLoop::processEvents (this=0x7ffc00b5c680, flags=...) at kernel/qeventloop.cpp:128
#38 0x00007fbf81825c3b in QEventLoop::exec (this=0x7ffc00b5c680, flags=...) at kernel/qeventloop.cpp:204
#39 0x00007fbf81829398 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#40 0x00007fbf81c2bdb0 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1507
#41 0x00007fbf8236d635 in QApplication::exec () at kernel/qapplication.cpp:2956
#42 0x00007fbf877c596a in Akonadi::ResourceBase::init (r=0x103f7c0) at /opt/kde/src/kde/kdepimlibs/akonadi/src/agentbase/resourcebase.cpp:589
#43 0x00000000004ac4ac in Akonadi::ResourceBase::init<KolabResource> (argc=3, argv=0x7ffc00b5c8c8) at /opt/kde/install/kf5/include/KF5/AkonadiAgentBase/resourcebase.h:192
#44 0x00000000004ab49b in main (argc=3, argv=0x7ffc00b5c8c8) at /opt/kde/src/kde/kdepim-runtime/resources/kolab/kolabresource.cpp:181

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 20:41:51 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 2 Denis Kurz 2017-01-07 21:47:04 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.