Bug 306819

Summary: Akonadi agent crashed when network connection disconnected
Product: [Frameworks and Libraries] Akonadi Reporter: Emil Sedgh <emilsedgh>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Emil Sedgh 2012-09-15 07:06:16 UTC
Application: akonadi_imap_resource (4.9)
KDE Platform Version: 4.9.80 (Compiled from sources)
Qt Version: 4.8.2
Operating System: Linux 3.2.0-2-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
- What I was doing when the application crashed:
I just restarted my WiFi router, which means my network connection got disconnected.

The crash can be reproduced some of the time.

-- Backtrace:
Application: GMail of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5b8d3a6760 (LWP 14958))]

Thread 3 (Thread 0x7f5b79edf700 (LWP 15029)):
#0  0x00007f5b883b7a93 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5b873664d4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5b873665f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5b8c7ab2a6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f5b8c77b8cf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f5b8c77bb58 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f5b8c67ed70 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f5b8b1b7609 in KIMAP::SessionThread::run (this=0x25131a0) at /home/emilsedgh/kde/sc/kdepimlibs/kimap/sessionthread.cpp:181
#8  0x00007f5b8c681d0b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f5b8c3eab50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#10 0x00007f5b883c26dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5b78cd7700 (LWP 17060)):
#0  0x00007f5b883b7a93 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5b873664d4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5b873665f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5b8c7ab2a6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f5b8c77b8cf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f5b8c77bb58 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f5b8c67ed70 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f5b8b1b7609 in KIMAP::SessionThread::run (this=0x270e270) at /home/emilsedgh/kde/sc/kdepimlibs/kimap/sessionthread.cpp:181
#8  0x00007f5b8c681d0b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f5b8c3eab50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#10 0x00007f5b883c26dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5b8d3a6760 (LWP 14958)):
[KCrash Handler]
#6  0x00007f5b8c794cef in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00000000004577a5 in SessionPool::killSession (this=0x2475400, session=0x245e350, termination=SessionPool::LogoutSession) at /home/emilsedgh/kde/sc/kdepim-runtime/resources/imap/sessionpool.cpp:176
#8  0x0000000000457b5d in SessionPool::disconnect (this=0x2475400, termination=SessionPool::LogoutSession) at /home/emilsedgh/kde/sc/kdepim-runtime/resources/imap/sessionpool.cpp:117
#9  0x0000000000419c7b in ImapResource::doSetOnline (this=0x242efa0, online=false) at /home/emilsedgh/kde/sc/kdepim-runtime/resources/imap/imapresource.cpp:477
#10 0x00007f5b8cde4a58 in Akonadi::AgentBase::setOnline (this=0x242efa0, state=false) at /home/emilsedgh/kde/sc/kdepimlibs/akonadi/agentbase.cpp:642
#11 0x00007f5b8cde5d1f in Akonadi::AgentBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/emilsedgh/kde/build/sc/kdepimlibs/akonadi/agentbase.moc:102
#12 0x00007f5b8c79256f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007f5b8a0a706e in Solid::Networking::Notifier::statusChanged (this=<optimized out>, _t1=Solid::Networking::Unconnected) at /home/emilsedgh/kde/build/sc/kdelibs/solid/solid/networking.moc:104
#14 0x00007f5b8c79256f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007f5b8a10be7e in OrgKdeSolidNetworkingClientInterface::statusChanged (this=<optimized out>, _t1=1) at /home/emilsedgh/kde/build/sc/kdelibs/solid/solid/org_kde_solid_networking_client.moc:132
#16 0x00007f5b8a10bece in OrgKdeSolidNetworkingClientInterface::qt_static_metacall (_o=0x246c020, _c=<optimized out>, _id=<optimized out>, _a=0x7fff76f7f220) at /home/emilsedgh/kde/build/sc/kdelibs/solid/solid/org_kde_solid_networking_client.moc:58
#17 0x00007f5b8a10c34f in OrgKdeSolidNetworkingClientInterface::qt_metacall (this=0x246c020, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff76f7f220) at /home/emilsedgh/kde/build/sc/kdelibs/solid/solid/org_kde_solid_networking_client.moc:99
#18 0x00007f5b8caf8c13 in ?? () from /usr/lib/x86_64-linux-gnu/libQtDBus.so.4
#19 0x00007f5b8c791a4e in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007f5b8b90a70c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x00007f5b8b90eb8a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007f5b897c0ef6 in KApplication::notify (this=0x7fff76f7fc20, receiver=0x246c020, event=0x262f300) at /home/emilsedgh/kde/sc/kdelibs/kdeui/kernel/kapplication.cpp:311
#23 0x00007f5b8c77cb7e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#24 0x00007f5b8c780a01 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007f5b8c7ab0f3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#26 0x00007f5b87366205 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f5b87366538 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f5b873665f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f5b8c7ab286 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#30 0x00007f5b8b9ab81e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#31 0x00007f5b8c77b8cf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x00007f5b8c77bb58 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007f5b8c780d18 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007f5b8cebb876 in Akonadi::ResourceBase::init (r=0x242efa0) at /home/emilsedgh/kde/sc/kdepimlibs/akonadi/resourcebase.cpp:451
#35 0x000000000041d4a6 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /home/emilsedgh/kde/installed/include/akonadi/resourcebase.h:188
#36 0x00007f5b88308ead in __libc_start_main (main=<optimized out>, argc=<optimized out>, ubp_av=<optimized out>, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff76f7fd28) at libc-start.c:228
#37 0x0000000000416b65 in _start ()

This bug may be a duplicate of or related to bug 288268.

Possible duplicates by query: bug 306040, bug 306024, bug 305936, bug 303381, bug 296519.

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-09-15 07:19:45 UTC

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