Bug 340740 - IMAP resource sometimes crashes after reconnecting to Internet
Summary: IMAP resource sometimes crashes after reconnecting to Internet
Status: RESOLVED DUPLICATE of bug 319776
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-11-07 20:20 UTC by Scott Garrett
Modified: 2017-01-07 12:50 UTC (History)
3 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 Scott Garrett 2014-11-07 20:20:27 UTC
Application: akonadi_imap_resource (4.14)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.17.1-1.g5c4d099-desktop x86_64
Distribution: "openSUSE 20141102 (Harlequin) (x86_64)"

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

On log-in or when reconnecting to the Internet,  the IMAP resource sometimes segfaults. 
This is happening on both of the computers I use KDE on.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Exovenom Mail of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0350e38780 (LWP 1872))]

Thread 4 (Thread 0x7f033d213700 (LWP 4312)):
#0  0x00007f034c7a24ad in poll () at /lib64/libc.so.6
#1  0x00007f034b72bbe4 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f034b72bcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f03504770de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f0330003160, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f0350448e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f033d212e60, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f0350449165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f033d212e60, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f03503460bf in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f035034879f in QThreadPrivate::start(void*) (arg=0x1107c60) at thread/qthread_unix.cpp:349
#8  0x00007f034be103a4 in start_thread (arg=0x7f033d213700) at pthread_create.c:310
#9  0x00007f034c7aaa4d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f03364de700 (LWP 2908)):
#0  0x00007f034c79e57d in read () at /lib64/libc.so.6
#1  0x00007f034b76c750 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f034b72b714 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f034b72bb7b in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f034b72bcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f03504770de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f032c009e10, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#6  0x00007f0350448e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f03364dde60, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f0350449165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f03364dde60, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f03503460bf in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:538
#9  0x00007f035034879f in QThreadPrivate::start(void*) (arg=0x10fbd40) at thread/qthread_unix.cpp:349
#10 0x00007f034be103a4 in start_thread (arg=0x7f03364de700) at pthread_create.c:310
#11 0x00007f034c7aaa4d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f033da14700 (LWP 4318)):
#0  0x00007fffe4f68b26 in clock_gettime ()
#1  0x00007f034c7b746d in clock_gettime () at /lib64/libc.so.6
#2  0x00007f035039cd47 in qt_gettime() (frac=0x7f033da13bf0, sec=0x7f033da13be8) at tools/qelapsedtimer_unix.cpp:127
#3  0x00007f035039cd47 in qt_gettime() () at tools/qelapsedtimer_unix.cpp:144
#4  0x00007f0350478875 in QTimerInfoList::timerWait(timeval&) (this=0x7f0338011f80) at kernel/qeventdispatcher_unix.cpp:354
#5  0x00007f0350478875 in QTimerInfoList::timerWait(timeval&) (this=0x7f0338011f80, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0x00007f0350476f8c in timerSourcePrepareHelper(GTimerSource*, gint*) (src=<optimized out>, timeout=0x7f033da13ca4) at kernel/qeventdispatcher_glib.cpp:143
#7  0x00007f0350477035 in timerSourcePrepare(GSource*, gint*) (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:176
#8  0x00007f034b72b28d in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#9  0x00007f034b72bb03 in  () at /usr/lib64/libglib-2.0.so.0
#10 0x00007f034b72bcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#11 0x00007f03504770de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f03380144a0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#12 0x00007f0350448e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f033da13e60, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f0350449165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f033da13e60, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f03503460bf in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:538
#15 0x00007f035034879f in QThreadPrivate::start(void*) (arg=0x1036350) at thread/qthread_unix.cpp:349
#16 0x00007f034be103a4 in start_thread (arg=0x7f033da14700) at pthread_create.c:310
#17 0x00007f034c7aaa4d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f0350e38780 (LWP 1872)):
[KCrash Handler]
#5  0x00000000010d57b8 in  ()
#6  0x00007f035045d319 in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) (sender=0x10f8ed0, signal=0x119ec99 "stateChanged(KIMAP::Session::State,KIMAP::Session::State)", signal@entry=0x47cf88 "2stateChanged(KIMAP::Session::State,KIMAP::Session::State)", receiver=receiver@entry=0x10d3000, method=0x109de39 "onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)", method@entry=0x47cf40 "1onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)") at kernel/qobject.cpp:2920
#7  0x0000000000451355 in SessionPool::killSession(KIMAP::Session*, SessionPool::SessionTermination) (this=this@entry=0x10d3000, session=0x10f8ed0, termination=termination@entry=SessionPool::LogoutSession) at /usr/src/debug/kdepim-runtime-4.14.2/resources/imap/sessionpool.cpp:182
#8  0x00000000004516f5 in SessionPool::disconnect(SessionPool::SessionTermination) (this=0x10d3000, termination=termination@entry=SessionPool::LogoutSession) at /usr/src/debug/kdepim-runtime-4.14.2/resources/imap/sessionpool.cpp:115
#9  0x0000000000429c6b in ImapResourceBase::startConnect(QVariant const&) (this=0x1083ac0) at /usr/src/debug/kdepim-runtime-4.14.2/resources/imap/imapresourcebase.cpp:246
#10 0x0000000000465cc1 in ImapResourceBase::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x10f8ed0, _o@entry=0x1083ac0, _c=3840228816, _c@entry=QMetaObject::InvokeMetaMethod, _id=1, _id@entry=14, _a=0x0, _a@entry=0x7fffe4e540c0) at /usr/src/debug/kdepim-runtime-4.14.2/build/resources/imap/moc_imapresourcebase.cpp:122
#11 0x00007f0350452348 in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const (this=this@entry=0x7fffe4e542b0, object=object@entry=0x1083ac0, connectionType=Qt::DirectConnection, connectionType@entry=Qt::AutoConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1664
#12 0x00007f0350454802 in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) (obj=0x1083ac0, member=<optimized out>, type=type@entry=Qt::AutoConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1179
#13 0x00007f0350943a1f in Akonadi::ResourceScheduler::executeNext() (val9=..., val8=..., val7=..., val6=..., val5=..., val4=..., val3=..., val2=..., val1=..., val0=..., member=<optimized out>, obj=<optimized out>) at /usr/include/QtCore/qobjectdefs.h:434
#14 0x00007f0350943a1f in Akonadi::ResourceScheduler::executeNext() (this=0x1089950) at /usr/src/debug/kdepimlibs-4.14.2/akonadi/resourcescheduler.cpp:348
#15 0x00007f03509445ad in Akonadi::ResourceScheduler::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x10f8ed0, _c=3840228816, _id=1, _a=0x0) at /usr/src/debug/kdepimlibs-4.14.2/build/akonadi/moc_resourcescheduler_p.cpp:101
#16 0x00007f035046259e in QObject::event(QEvent*) (this=0x1089950, e=<optimized out>) at kernel/qobject.cpp:1231
#17 0x00007f034f7e376c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#18 0x00007f034f7e9cad in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#19 0x00007f034d8fcbda in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#20 0x00007f035044a2ad in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7fffe4e54e60, receiver=receiver@entry=0x1089950, event=event@entry=0x1105450) at kernel/qcoreapplication.cpp:953
#21 0x00007f035044d57d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x1105450, receiver=0x1089950) at kernel/qcoreapplication.h:231
#22 0x00007f035044d57d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xe9d520) at kernel/qcoreapplication.cpp:1577
#23 0x00007f035044da23 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#24 0x00007f03504778fe in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) () at kernel/qcoreapplication.h:236
#25 0x00007f03504778fe in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0xedfa70) at kernel/qeventdispatcher_glib.cpp:300
#26 0x00007f034b72ba04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#27 0x00007f034b72bc48 in  () at /usr/lib64/libglib-2.0.so.0
#28 0x00007f034b72bcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#29 0x00007f03504770be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0xea29a0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#30 0x00007f034f880676 in  () at /usr/lib64/libQtGui.so.4
#31 0x00007f0350448e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffe4e54dd0, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f0350449165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffe4e54dd0, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007f035044e5b9 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1225
#34 0x00007f0350933433 in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) (r=r@entry=0x1083ac0) at /usr/src/debug/kdepimlibs-4.14.2/akonadi/resourcebase.cpp:579
#35 0x000000000041a013 in Akonadi::ResourceBase::init<ImapResource>(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:193
#36 0x00007f034c6e7b45 in __libc_start_main () at /lib64/libc.so.6
#37 0x0000000000419ed4 in _start () at ../sysdeps/x86_64/start.S:122

Reported using DrKonqi
Comment 1 Daniel Vrátil 2017-01-07 12:50:39 UTC

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