Bug 308053 - Random crash while fetching mail
Summary: Random crash while fetching mail
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.9
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-10-08 05:28 UTC by Alex Fiestas
Modified: 2018-10-27 02:00 UTC (History)
4 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 Alex Fiestas 2012-10-08 05:28:13 UTC
Application: akonadi_imap_resource (4.9)
KDE Platform Version: 4.9.2 (Compiled from sources)
Qt Version: 4.8.3
Operating System: Linux 3.6.0-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
From time to time two of my imap resources are crashing with the same backtrace (attached).

-- Backtrace:
Application: nasete.ghost@gmail.com of type IMAP E-Mail Server (akonadi_imap_resource), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6e2cbe5780 (LWP 908))]

Thread 4 (Thread 0x7f6e258b6700 (LWP 1029)):
#0  0x00007f6e3492a2cd in poll () from /usr/lib/libc.so.6
#1  0x00007f6e338c9744 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f6e338c9864 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f6e38dbf766 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f6e38d9033f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f6e38d905c8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f6e38c917c0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f6e377e83dc in KIMAP::SessionThread::run (this=0x118e880) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/kimap/sessionthread.cpp:181
#8  0x00007f6e38c9479c in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f6e38a04e0f in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f6e3493245d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f6e250b5700 (LWP 1034)):
#0  0x00007f6e38a08cc1 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f6e38c94c57 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f6e38c8846f in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f6e38c9479c in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f6e38a04e0f in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f6e3493245d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f6e1ffff700 (LWP 1039)):
#0  0x00007f6e3492a2cd in poll () from /usr/lib/libc.so.6
#1  0x00007f6e338c9744 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f6e338c9864 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f6e38dbf766 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f6e38d9033f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f6e38d905c8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f6e38c917c0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f6e377e83dc in KIMAP::SessionThread::run (this=0x113d0a0) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/kimap/sessionthread.cpp:181
#8  0x00007f6e38c9479c in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f6e38a04e0f in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f6e3493245d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f6e2cbe5780 (LWP 908)):
[KCrash Handler]
#6  0x00007f6e34880fa5 in raise () from /usr/lib/libc.so.6
#7  0x00007f6e34882428 in abort () from /usr/lib/libc.so.6
#8  0x00007f6e3487a002 in __assert_fail_base () from /usr/lib/libc.so.6
#9  0x00007f6e3487a0b2 in __assert_fail () from /usr/lib/libc.so.6
#10 0x00007f6e244a4e45 in boost::shared_ptr<KMime::Message>::operator-> (this=0x7fff0716b4c0) at /usr/include/boost/smart_ptr/shared_ptr.hpp:424
#11 0x00007f6e244a87f6 in Akonadi::SerializerPluginMail::serialize (this=<optimized out>, item=..., label=..., data=..., version=<optimized out>) at /home/afiestas/cod3s/cpp/kde/source/kdepim-runtime/plugins/akonadi_serializer_mail.cpp:169
#12 0x00007f6e3947b288 in Akonadi::ItemSerializer::serialize (item=..., label=..., data=..., version=@0x7fff0716b5ac: 1) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/itemserializer.cpp:126
#13 0x00007f6e3947b346 in Akonadi::ItemSerializer::serialize (item=..., label=..., data=..., version=@0x7fff0716b5ac: 1) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/itemserializer.cpp:116
#14 0x00007f6e39467752 in Akonadi::Item::payloadData (this=0x7fff0716b7b0) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/item.cpp:207
#15 0x00007f6e394820ab in Akonadi::ItemSync::updateItem (this=<optimized out>, storedItem=..., newItem=...) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/itemsync.cpp:243
#16 0x00007f6e394812f6 in Akonadi::ItemSync::Private::processItems (this=this@entry=0x1266250) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/itemsync.cpp:339
#17 0x00007f6e39481643 in Akonadi::ItemSync::Private::execute (this=0x1266250) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/itemsync.cpp:291
#18 0x00007f6e39481de7 in Akonadi::ItemSync::setFullSyncItems (this=0x1267490, items=...) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/itemsync.cpp:153
#19 0x000000000044b82d in RetrieveItemsTask::onHeadersReceived (this=0x120cb40, mailBox=..., uids=..., sizes=..., flags=..., messages=...) at /home/afiestas/cod3s/cpp/kde/source/kdepim-runtime/resources/imap/retrieveitemstask.cpp:387
#20 0x00007f6e38da6acf in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#21 0x00007f6e377d587e in KIMAP::FetchJob::headersReceived (this=0x1121f40, _t1=..., _t2=..., _t3=..., _t4=..., _t5=...) at /home/afiestas/cod3s/cpp/kde/build/kdepimlibs/kimap/fetchjob.moc:115
#22 0x00007f6e377d9c7d in KIMAP::FetchJobPrivate::emitPendings (this=0x11b06c0) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/kimap/fetchjob.cpp:57
#23 0x00007f6e38da6acf in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0x00007f6e38da5ddc in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#25 0x00007f6e37f2508c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007f6e37f2950a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0x00007f6e35d7b70e in KApplication::notify (this=0x7fff0716c700, receiver=0x11b0710, event=0x7fff0716c400) at /home/afiestas/cod3s/cpp/kde/source/kdelibs/kdeui/kernel/kapplication.cpp:311
#28 0x00007f6e38d915ee in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#29 0x00007f6e38dc1fb2 in ?? () from /usr/lib/libQtCore.so.4
#30 0x00007f6e38dbf0e4 in ?? () from /usr/lib/libQtCore.so.4
#31 0x00007f6e38dbf101 in ?? () from /usr/lib/libQtCore.so.4
#32 0x00007f6e338c9475 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0x00007f6e338c97a8 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0x00007f6e338c9864 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0x00007f6e38dbf746 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007f6e37fc550e in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007f6e38d9033f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0x00007f6e38d905c8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0x00007f6e38d95268 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#40 0x00007f6e3949ce75 in Akonadi::ResourceBase::init (r=0x1141a10) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/resourcebase.cpp:451
#41 0x000000000041cff8 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /home/afiestas/cod3s/cpp/kde/bin/include/akonadi/resourcebase.h:188
#42 0x00007f6e3486d725 in __libc_start_main () from /usr/lib/libc.so.6
#43 0x00000000004166a1 in _start ()

Possible duplicates by query: bug 303951.

Reported using DrKonqi
Comment 1 András Manţia 2012-10-13 23:14:26 UTC
#18 0x00007f6e39481de7 in Akonadi::ItemSync::setFullSyncItems (this=0x1267490, items=...) at /home/afiestas/cod3s/cpp/kde/source/kdepimlibs/akonadi/itemsync.cpp:153
#19 0x000000000044b82d in RetrieveItemsTask::onHeadersReceived (this=0x120cb40, mailBox=..., uids=..., sizes=..., flags=..., messages=...) at /home/afiestas/cod3s/cpp/kde/source/kdepim-runtime/resources/imap/retrieveitemstask.cpp:387


Somehow I can't fint this in the code (at least in master). There is no call to setFullSyncItems.
Comment 2 Kevin Ottens 2013-11-16 07:30:54 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 3 Christian Mollekopf 2013-11-19 16:57:51 UTC
Does this still apply to >=4.11.3?
Comment 4 Andrew Crouthamel 2018-09-25 03:51:31 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-10-27 02:00:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!