Bug 271833 - Crash of IMAP resource on exit
Summary: Crash of IMAP resource on exit
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 12:36 UTC by Christian Mollekopf
Modified: 2012-02-02 11:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (10.11 KB, text/plain)
2012-02-02 11:12 UTC, Milian Wolff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Mollekopf 2011-04-27 12:36:37 UTC
Application: akonadi_imap_resource (0.1)
KDE Platform Version: 4.6.2 (4.6.2) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I waited after all IMAP accounts have finished syncing, then I closed KMail2

- Custom settings of the application:
I have the "Switch offline on kmail shutdown" option checked for all imap accounts

The crash does not seem to be reproducible.

-- Backtrace:
Application: Akonadi Resource (akonadi_imap_resource), signal: Aborted
[Current thread is 1 (Thread 0x7f16408ff760 (LWP 2245))]

Thread 5 (Thread 0x7f162e2f9700 (LWP 2294)):
#0  0x00007f163f951c24 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x00007f163a9c710e in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0x00007f163a9c7fc9 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f163a9c866d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f163fceca66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f163fcc0ca2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f163fcc0eec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f163fbd6494 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0x00007f163e750a04 in KIMAP::SessionThread::run (this=0x26d0fd0) at /home/chrigi/devel/kde/kdepimlibs/kimap/sessionthread.cpp:166
#9  0x00007f163fbd8cf5 in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f163f94fd40 in start_thread () from /lib/libpthread.so.0
#11 0x00007f163b9d0aed in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f162daf8700 (LWP 3283)):
#0  0x00007f163f953dab in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f163fbd9342 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f163fbcdd78 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007f163fbd8cf5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f163f94fd40 in start_thread () from /lib/libpthread.so.0
#5  0x00007f163b9d0aed in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f162c8f0700 (LWP 3291)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f162c8efaf0 in ?? ()
#2  0x00007fffd89516e2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7f162d0f1700 (LWP 3293)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f162d0f0af0 in ?? ()
#2  0x00007fffd89516e2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x7f16408ff760 (LWP 2245)):
[KCrash Handler]
#6  0x00007f163b933705 in raise () from /lib/libc.so.6
#7  0x00007f163b934b7b in abort () from /lib/libc.so.6
#8  0x00007f163fbcf65f in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#9  0x00007f163fbcf7ed in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f163fbcf985 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#11 0x00007f16403f59cc in Akonadi::ResourceBase::collectionsRetrieved (this=0x2639670, collections=...) at /home/chrigi/devel/kde/kdepimlibs/akonadi/resourcebase.cpp:555
#12 0x000000000042c767 in ResourceState::collectionsRetrieved (this=0x261f090, collections=...) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/resourcestate.cpp:351
#13 0x00000000004569cd in ResourceTask::collectionsRetrieved (this=0x29e4c10, collections=...) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/resourcetask.cpp:263
#14 0x000000000045e2ff in RetrieveCollectionsTask::onMailBoxesReceiveDone (this=0x29e4c10, job=0x2818f00) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/retrievecollectionstask.cpp:194
#15 0x000000000045e604 in RetrieveCollectionsTask::qt_metacall (this=0x29e4c10, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffd88eb510) at /home/chrigi/devel/kde/build/kdepim-runtime/resources/imap/retrievecollectionstask.moc:82
#16 0x00007f163fcd6e0f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0x00007f163c535042 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#18 0x00007f163c535080 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#19 0x00007f163e73592a in KIMAP::Job::handleErrorReplies (this=0x2818f00, response=...) at /home/chrigi/devel/kde/kdepimlibs/kimap/job.cpp:86
#20 0x00007f163e740d8e in KIMAP::ListJob::handleResponse (this=0x2818f00, response=...) at /home/chrigi/devel/kde/kdepimlibs/kimap/listjob.cpp:177
#21 0x00007f163e74cb79 in KIMAP::SessionPrivate::responseReceived (this=0x26e0b70, response=...) at /home/chrigi/devel/kde/kdepimlibs/kimap/session.cpp:271
#22 0x00007f163e74dd06 in KIMAP::Session::qt_metacall (this=0x28848a0, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x281a930) at /home/chrigi/devel/kde/build/kdepimlibs/kimap/session.moc:113
#23 0x00007f163fcd5c6a in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#24 0x00007f163ee696a4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007f163ee6e26a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007f163cfabd36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#27 0x00007f163fcc190c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#28 0x00007f163fcc5135 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#29 0x00007f163fcec873 in ?? () from /usr/lib/libQtCore.so.4
#30 0x00007f163a9c7bf3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#31 0x00007f163a9c83d0 in ?? () from /usr/lib/libglib-2.0.so.0
#32 0x00007f163a9c866d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#33 0x00007f163fceca0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#34 0x00007f163ef0f03e in ?? () from /usr/lib/libQtGui.so.4
#35 0x00007f163fcc0ca2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007f163fcc0eec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0x00007f163fcc53eb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#38 0x00007f16403f4363 in Akonadi::ResourceBase::init (r=0x2639670) at /home/chrigi/devel/kde/kdepimlibs/akonadi/resourcebase.cpp:392
#39 0x000000000042a169 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0x7fffd88ec3e8) at /opt/devel/KDE/include/akonadi/resourcebase.h:188
#40 0x0000000000428d33 in main (argc=3, argv=0x7fffd88ec3e8) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/imapresource.cpp:597

Possible duplicates by query: bug 250705.

Reported using DrKonqi
Comment 1 Kevin Ottens 2011-09-17 17:06:47 UTC
Is it still happening for you with 4.7.x? I've been unable to reproduce that one, it just works for me.

In case you still experience this please feel free to reopen. In such a case, we would need much more information like the actual IMAP server used, examples of the IMAP traffic causing the crash, and so on.
Comment 2 Milian Wolff 2012-02-02 11:12:21 UTC
Created attachment 68430 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.8) on KDE Platform 4.8.00 (4.8.0 using Qt 4.8.0

network connection dropped and got revived, then this crash...

-- Backtrace (Reduced):
#11 0x00007f07b91b8da8 in Akonadi::ResourceBase::collectionsRetrieved (this=0xf79620, collections=...) at /home/milian/projects/kde4/kdepimlibs/akonadi/resourcebase.cpp:578
#12 0x0000000000421657 in ResourceState::collectionsRetrieved (this=0x103d2e0, collections=...) at /home/milian/projects/kde4/kdepim-runtime/resources/imap/resourcestate.cpp:351
#13 0x000000000044d595 in ResourceTask::collectionsRetrieved (this=0x130beb0, collections=...) at /home/milian/projects/kde4/kdepim-runtime/resources/imap/resourcetask.cpp:263
#14 0x0000000000454f97 in RetrieveCollectionsTask::onMailBoxesReceiveDone (this=0x130beb0, job=0x1300640) at /home/milian/projects/kde4/kdepim-runtime/resources/imap/retrievecollectionstask.cpp:194
#15 0x000000000045521e in RetrieveCollectionsTask::qt_static_metacall (_o=0x130beb0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff86433220) at /home/milian/projects/.build/kde4/kdepim-runtime/resources/imap/retrievecollectionstask.moc:59