Bug 287800 - imap handler crashed after resuming from sleep where the imap server wasn't available
Summary: imap handler crashed after resuming from sleep where the imap server wasn't a...
Status: RESOLVED DUPLICATE of bug 286393
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.7
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-29 01:58 UTC by Ryan Nowakowski
Modified: 2011-12-02 23:34 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 Ryan Nowakowski 2011-11-29 01:58:27 UTC
Application: akonadi_imap_resource (4.7)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:  I put the laptop to sleep at work where I have access to my imap server.  I resumed at home where the imap server is unavailabled.  The imap handler crashed.  Instead of crashing the imap handler should fail gracefully.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Work of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f8ff62a9780 (LWP 21605))]

Thread 3 (Thread 0x7f8fe4825700 (LWP 21650)):
#0  0x00007f8ff158d1fd in __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0xf27c28) at pthread_mutex_unlock.c:290
#2  0x00007f8ff061ffe4 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8ff0620dfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f8ff0621429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f8ff5714f3e in QEventDispatcherGlib::processEvents (this=0xf20290, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007f8ff56e8cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f8ff56e8ef7 in QEventLoop::exec (this=0x7f8fe4824de0, flags=...) at kernel/qeventloop.cpp:201
#8  0x00007f8ff560027f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#9  0x00007f8ff4328c13 in ?? () from /usr/lib/libkimap.so.4
#10 0x00007f8ff5602d05 in QThreadPrivate::start (arg=0xf4ace0) at thread/qthread_unix.cpp:331
#11 0x00007f8ff1589efc in start_thread (arg=0x7f8fe4825700) at pthread_create.c:304
#12 0x00007f8ff1cda89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8fde034700 (LWP 25972)):
#0  0x00007f8ff1cce773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8ff0620f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8ff0621429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8ff5714f3e in QEventDispatcherGlib::processEvents (this=0x114aed0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f8ff56e8cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8ff56e8ef7 in QEventLoop::exec (this=0x7f8fde033de0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f8ff560027f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f8ff4328c13 in ?? () from /usr/lib/libkimap.so.4
#8  0x00007f8ff5602d05 in QThreadPrivate::start (arg=0x1333de0) at thread/qthread_unix.cpp:331
#9  0x00007f8ff1589efc in start_thread (arg=0x7f8fde034700) at pthread_create.c:304
#10 0x00007f8ff1cda89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8ff62a9780 (LWP 21605)):
[KCrash Handler]
#6  __memmove_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1556
#7  0x00007f8ff56208b9 in QListData::remove (this=0xefb1a8, i=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string3.h:58
#8  0x00007f8ff5620b9b in QListData::erase (this=0xefb1a8, xi=<optimized out>) at tools/qlist.cpp:412
#9  0x0000000000454595 in erase (it=<optimized out>, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:453
#10 removeFirst (this=0xefb1a8) at /usr/include/qt4/QtCore/qlist.h:273
#11 takeFirst (this=0xefb1a8) at /usr/include/qt4/QtCore/qlist.h:477
#12 SessionPool::declareSessionReady (this=0xefb160, session=0x116ba40) at ../../../resources/imap/sessionpool.cpp:207
#13 0x0000000000455d10 in SessionPool::onLoginDone (this=0xefb160, job=0x1127320) at ../../../resources/imap/sessionpool.cpp:348
#14 0x000000000045622f in SessionPool::qt_metacall (this=0xefb160, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fff2e7cd8f0) at ./sessionpool.moc:118
#15 0x00007f8ff56fceba in QMetaObject::activate (sender=0x1127320, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2e7cd8f0) at kernel/qobject.cpp:3278
#16 0x00007f8ff25e65b2 in KJob::result (this=<optimized out>, _t1=0x1127320) at ./kjob.moc:194
#17 0x00007f8ff25e65f0 in KJob::emitResult (this=0x1127320) at ../../kdecore/jobs/kjob.cpp:312
#18 0x00007f8ff4326bad in KIMAP::SessionPrivate::clearJobQueue() () from /usr/lib/libkimap.so.4
#19 0x00007f8ff4327ead in KIMAP::Session::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkimap.so.4
#20 0x00007f8ff5700a5e in QObject::event (this=0x116ba40, e=<optimized out>) at kernel/qobject.cpp:1217
#21 0x00007f8ff4a9a424 in notify_helper (e=0xf61ed0, receiver=0x116ba40, this=0xd82780) at kernel/qapplication.cpp:4486
#22 QApplicationPrivate::notify_helper (this=0xd82780, receiver=0x116ba40, e=0xf61ed0) at kernel/qapplication.cpp:4458
#23 0x00007f8ff4a9f291 in QApplication::notify (this=0x7fff2e7ce170, receiver=0x116ba40, e=0xf61ed0) at kernel/qapplication.cpp:4365
#24 0x00007f8ff2bb6126 in KApplication::notify (this=0x7fff2e7ce170, receiver=0x116ba40, event=0xf61ed0) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007f8ff56e9afc in QCoreApplication::notifyInternal (this=0x7fff2e7ce170, receiver=0x116ba40, event=0xf61ed0) at kernel/qcoreapplication.cpp:787
#26 0x00007f8ff56ed51f in sendEvent (event=0xf61ed0, receiver=0x116ba40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xd59800) at kernel/qcoreapplication.cpp:1428
#28 0x00007f8ff5714a73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#29 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#30 0x00007f8ff0620a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f8ff0621258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f8ff0621429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f8ff5714ed6 in QEventDispatcherGlib::processEvents (this=0xd5b210, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#34 0x00007f8ff4b4207e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f8ff56e8cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f8ff56e8ef7 in QEventLoop::exec (this=0x7fff2e7ce0f0, flags=...) at kernel/qeventloop.cpp:201
#37 0x00007f8ff56ed789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#38 0x00007f8ff5ddd546 in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib/libakonadi-kde.so.4
#39 0x000000000041a716 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#40 0x00007f8ff1c1a30d in __libc_start_main (main=0x415050 <main(int, char**)>, argc=3, ubp_av=0x7fff2e7ce288, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff2e7ce278) at libc-start.c:226
#41 0x0000000000415205 in _start ()

Possible duplicates by query: bug 287077, bug 282076.

Reported using DrKonqi
Comment 1 Bogdan Udrescu 2011-11-29 14:14:10 UTC
duplicate of Bug 286393
Comment 2 Myriam Schweingruber 2011-12-02 23:34:43 UTC
Thanks for triaging :)

*** This bug has been marked as a duplicate of bug 286393 ***