Bug 250863

Summary: IMAP resource crashed immediately after adding it
Product: [Frameworks and Libraries] Akonadi Reporter: Alex Merry <alex.merry>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED WORKSFORME    
Severity: crash CC: kdepim-bugs, vkrause
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alex Merry 2010-09-11 12:46:17 UTC
Application: akonadi_imap_resource (0.1)
KDE Platform Version: 4.5.67 (4.6 >= 20100901) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:

I added the IMAP resource, and once I clicked OK, it crashed.

I had previous added 4 IMAP resources without a problem.  The main differences with this one were that I enabled server-side subscriptions, and auto-detect encryption selected SSL rather than TLS.

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

Thread 3 (Thread 0x7f82ea7a3710 (LWP 9022)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f82ea7a2b00 in ?? ()
#2  0x00007ffff479a6e2 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7f82e471b710 (LWP 9033)):
#0  0x00007f82fd0ac72e in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0x00007f82f7fe3e7d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#2  0x00007f82f7fe45ad in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f82fd4458d6 in QEventDispatcherGlib::processEvents (this=0x1f3b4f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f82fd41c172 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f82fd41c3ac in QEventLoop::exec (this=0x7f82e471ade0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f82fd333c3f in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f82fbedfcd2 in KIMAP::SessionThread::run (this=0x1ffdf20) at /home/kde-devel/src/KDE/kdepimlibs/kimap/sessionthread.cpp:166
#8  0x00007f82fd3364d5 in QThreadPrivate::start (arg=0x1ffdf20) at thread/qthread_unix.cpp:248
#9  0x00007f82fd0a8cb0 in start_thread () from /lib/libpthread.so.0
#10 0x00007f82f8fe37ad in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f82fdff2760 (LWP 9020)):
[KCrash Handler]
#6  0x00007f82f8f47565 in raise () from /lib/libc.so.6
#7  0x00007f82f8f489e6 in abort () from /lib/libc.so.6
#8  0x00007f82fd32e3af in qt_message_output (msgType=<value optimized out>, buf=<value optimized out>) at global/qglobal.cpp:2266
#9  0x00007f82fd32e53d in qt_message (msgType=QtFatalMsg, msg=0x7f82fd478f38 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7ffff478f790) at global/qglobal.cpp:2312
#10 0x00007f82fd32e6d5 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2495
#11 0x00007f82fdb0ef47 in Akonadi::ResourceBase::itemsRetrieved (this=0x196b9b0, items=...) at /home/kde-devel/src/KDE/kdepimlibs/akonadi/resourcebase.cpp:660
#12 0x000000000041c11f in ResourceState::itemsRetrieved (this=0x212cba0, items=...) at /home/kde-devel/src/KDE/kdepim/runtime/resources/imap/resourcestate.cpp:323
#13 0x000000000044343b in ResourceTask::itemsRetrieved (this=0x20ed360, items=...) at /home/kde-devel/src/KDE/kdepim/runtime/resources/imap/resourcetask.cpp:234
#14 0x000000000044e413 in RetrieveItemsTask::onHeadersReceived (this=0x20ed360, mailBox=..., uids=..., sizes=..., flags=..., messages=...)
    at /home/kde-devel/src/KDE/kdepim/runtime/resources/imap/retrieveitemstask.cpp:311
#15 0x000000000044ec26 in RetrieveItemsTask::qt_metacall (this=0x20ed360, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7ffff478fba0)
    at /home/kde-devel/build/KDE/kdepim/runtime/resources/imap/retrieveitemstask.moc:90
#16 0x00007f82fd430def in QMetaObject::activate (sender=0x1feb9d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7ffff478fba0) at kernel/qobject.cpp:3287
#17 0x00007f82fbeccbbe in KIMAP::FetchJob::headersReceived (this=0x1feb9d0, _t1=..., _t2=..., _t3=..., _t4=..., _t5=...) at /home/kde-devel/build/KDE/kdepimlibs/kimap/fetchjob.moc:101
#18 0x00007f82fbecd79b in KIMAP::FetchJobPrivate::emitPendings (this=0x21fa300) at /home/kde-devel/src/KDE/kdepimlibs/kimap/fetchjob.cpp:57
#19 0x00007f82fbecacdb in KIMAP::FetchJob::handleResponse (this=0x1feb9d0, response=...) at /home/kde-devel/src/KDE/kdepimlibs/kimap/fetchjob.cpp:223
#20 0x00007f82fbedc446 in KIMAP::SessionPrivate::responseReceived (this=0x2005ad0, response=...) at /home/kde-devel/src/KDE/kdepimlibs/kimap/session.cpp:258
#21 0x00007f82fbedd395 in KIMAP::Session::qt_metacall (this=0x2002590, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x228c920) at /home/kde-devel/build/KDE/kdepimlibs/kimap/session.moc:106
#22 0x00007f82fd42e689 in QObject::event (this=0x2002590, e=0x2288200) at kernel/qobject.cpp:1240
#23 0x00007f82fc5f2ae4 in QApplicationPrivate::notify_helper (this=0x180bac0, receiver=0x2002590, e=0x2288200) at kernel/qapplication.cpp:4302
#24 0x00007f82fc5f6bca in QApplication::notify (this=<value optimized out>, receiver=0x2002590, e=0x2288200) at kernel/qapplication.cpp:4185
#25 0x00007f82fa63b459 in KApplication::notify (this=0x7ffff47909b0, receiver=0x2002590, event=0x2288200) at /home/kde-devel/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:310
#26 0x00007f82fd41cd8c in QCoreApplication::notifyInternal (this=0x7ffff47909b0, receiver=0x2002590, event=0x2288200) at kernel/qcoreapplication.cpp:726
#27 0x00007f82fd4204ea in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x17cb6d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x17cb6d0) at kernel/qcoreapplication.cpp:1367
#29 0x00007f82fd445373 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#30 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#31 0x00007f82f7fe3b33 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0x00007f82f7fe4310 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#33 0x00007f82f7fe45ad in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#34 0x00007f82fd44587f in QEventDispatcherGlib::processEvents (this=0x17cad80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#35 0x00007f82fc69260e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f82fd41c172 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007f82fd41c3ac in QEventLoop::exec (this=0x7ffff4790920, flags=...) at kernel/qeventloop.cpp:201
#38 0x00007f82fd4207bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#39 0x00007f82fdb0c21e in Akonadi::ResourceBase::init (r=0x196b9b0) at /home/kde-devel/src/KDE/kdepimlibs/akonadi/resourcebase.cpp:247
#40 0x000000000041a063 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0x7ffff4790b08) at /home/kde-devel/kde/include/akonadi/resourcebase.h:187
#41 0x0000000000418db1 in main (argc=3, argv=0x7ffff4790b08) at /home/kde-devel/src/KDE/kdepim/runtime/resources/imap/imapresource.cpp:490

Reported using DrKonqi
Comment 1 Kevin Ottens 2011-09-17 16:36:18 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, and idea of the IMAP traffic which caused the crash and so on.