Bug 258684 - Crash after converting to Akonadi based KMail and trying to open a folder
Summary: Crash after converting to Akonadi based KMail and trying to open a folder
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mixed Maildir resource (show other bugs)
Version: 4.6
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Krammer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-03 14:59 UTC by Jure Repinc
Modified: 2011-10-13 12:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
akonadi.out (242.38 KB, text/plain)
2010-12-20 00:25 UTC, Jure Repinc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2010-12-03 14:59:54 UTC
Application: akonadi_mixedmaildir_resource (0.1)
KDE Platform Version: 4.5.82 (4.6 >=20101201) (Compiled from sources)
Qt Version: 4.7.1
Operating System: Linux 2.6.36-gentoo-r3 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
I updated KDE software from 4.5.3 to 4.6 from trunk. When i started KMail it started converting the mail to Akonadi which took a very long time. After that i've closed KMail and then I reopened it and clicked on a mail folder from GMail and then also on a mail folder from local mail downloaded from POP3 server. The process akonadi_mixedmaildir_resource started using huge amount of memory (1 323 256K according to memory column in KSysGuard). After some time I got the crash dialog.

-- Backtrace:
Application: Akonadi Resource (akonadi_mixedmaildir_resource), signal: Segmentation fault
[KCrash Handler]
#6  QSharedDataPointer (one=..., other=...) at /usr/include/qt4/QtCore/qshareddata.h:93
#7  assignEntityPrivate (one=..., other=...) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/entity.cpp:49
#8  0x0000003b9f27c154 in Akonadi::Entity::Entity (this=0x7fff196fa0b0, other=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/entity.cpp:56
#9  0x000000000041bb64 in MixedMaildirResource::tagFetchJobResult (this=0x18fab20, job=0x25273860) at /var/tmp/portage/kde-base/kdepim-runtime-9999/work/kdepim-runtime-9999/runtime/resources/mixedmaildir/mixedmaildirresource.cpp:817
#10 0x000000000042054c in MixedMaildirResource::qt_metacall (this=0x18fab20, _c=QMetaObject::InvokeMetaMethod, _id=21, _a=0x7fff196fa220) at /var/tmp/portage/kde-base/kdepim-runtime-9999/work/kdepim-runtime-9999_build/runtime/resources/mixedmaildir/mixedmaildirresource.moc:136
#11 0x0000003d6f575a5f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#12 0x0000003b9953d012 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#13 0x0000003b9953d050 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#14 0x0000003b9f330d05 in Akonadi::Job::qt_metacall (this=0x25273860, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x2bdb9bc0) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/job.moc:91
#15 0x0000003b9f31f877 in Akonadi::ItemFetchJob::qt_metacall (this=0x25273860, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x2bdb9bc0) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/itemfetchjob.moc:73
#16 0x0000003d6f575522 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#17 0x00000034579c805c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#18 0x00000034579ccb1a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#19 0x0000003b99c472c8 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#20 0x0000003d6f5611ab in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#21 0x0000003d6f5649c4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x0000003d6f58c113 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#23 0x0000003d6ec4423a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x0000003d6ec44a18 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x0000003d6ec44c7f in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x0000003d6f58c27a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#27 0x0000003457a6d506 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#28 0x0000003d6f5604f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#29 0x0000003d6f560774 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#30 0x0000003d6f564c5b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#31 0x0000003b9f34d899 in Akonadi::ResourceBase::init (r=0x18fab20) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999/akonadi/resourcebase.cpp:283
#32 0x000000000041a6dd in init<MixedMaildirResource> (argc=<value optimized out>, argv=<value optimized out>) at /usr/include/akonadi/resourcebase.h:188
#33 main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kdepim-runtime-9999/work/kdepim-runtime-9999/runtime/resources/mixedmaildir/mixedmaildirresource.cpp:838

Possible duplicates by query: bug 258430, bug 253031, bug 250078.

Reported using DrKonqi
Comment 1 Kevin Krammer 2010-12-03 15:18:18 UTC
From the description of things I can imagine that the resource got killed by the system's out of memory killer.

Can you give me any details on that folder? E.g. if it is mbox or maildir, how many messages it has, etc.

In case you can easily trigger this, could you try to get some of the debug log output?
I.e. enable the resource's debug areas, restarting Akonadi in a Konsole window (probably with increased or unlimited history) by running akonadictl restart

Thank!
Comment 2 Jure Repinc 2010-12-20 00:23:31 UTC
I can't get the crash anymore with KDE SC compiled from trunk on 2010-12-18. If I check the Inbox folder properties it says that it KMail Maildir with 34132 messages in 194 MiB. I'll attach the Konsole output just in case.
Comment 3 Jure Repinc 2010-12-20 00:25:18 UTC
Created attachment 55087 [details]
akonadi.out