Bug 310930

Summary: IMAP crashes when updating folder list via "Serverside Subsciptions"
Product: [Frameworks and Libraries] Akonadi Reporter: Torsten Eichstädt <walter.von.entferndt>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED WAITINGFORINFO    
Severity: crash CC: hemathor, kdepim-bugs, mollekopf, montel, vkrause
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace of additional crash afterwards, see short description

Description Torsten Eichstädt 2012-11-30 14:41:31 UTC
Application: akonadi_imap_resource (4.9)
KDE Platform Version: 4.9.3
Qt Version: 4.8.2
Operating System: Linux 3.2.28 x86_64
Distribution: Ubuntu 12.04.1 LTS

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

Deselected all folders to reset the IMAP account settings - reason was to get a newly created folder in Kontact/KMail (last bug I sent - can't look up the # w/o KMail, it does not get my mail after this crash... web interface hangs in rekonq... baaaahhh!)
Then tried to get them all back in w/ "Serverside Subscriptions" (because there the new folder was shown, see last bug) then the IMAP process crashed.

-- Backtrace:
Application: WEB.DE Freemail vom Typ 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 0x7fdf154f7780 (LWP 29789))]

Thread 5 (Thread 0x7fdef99ca700 (LWP 6174)):
#0  0x00007fff93ec28de in ?? ()
#1  0x00007fdf0fc8915d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:116
#2  0x00007fdf14837c64 in do_gettime (frac=0x7fdef99c9b98, sec=0x7fdef99c9b90) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007fdf1491006d in QTimerInfoList::updateCurrentTime (this=0x7fdeec002660) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007fdf149103a3 in QTimerInfoList::timerWait (this=0x7fdeec002660, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007fdf1490ee5c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7fdef99c9c6c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007fdf1490ef05 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007fdf0f9d7846 in g_main_context_prepare (context=0x7fdeec0009a0, priority=0x7fdef99c9cb8) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2836
#9  0x00007fdf0f9d7f5b in g_main_context_iterate (dispatch=1, block=1, context=0x7fdeec0009a0, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3126
#10 g_main_context_iterate (context=0x7fdeec0009a0, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#11 0x00007fdf0f9d8164 in g_main_context_iteration (context=0x7fdeec0009a0, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#12 0x00007fdf1490f906 in QEventDispatcherGlib::processEvents (this=0x7fdeec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#13 0x00007fdf148dee42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#14 0x00007fdf148df097 in QEventLoop::exec (this=0x7fdef99c9dd0, flags=...) at kernel/qeventloop.cpp:204
#15 0x00007fdf147de057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#16 0x00007fdf148beb4f in QInotifyFileSystemWatcherEngine::run (this=0x25efaf0) at io/qfilesystemwatcher_inotify.cpp:248
#17 0x00007fdf147e107b in QThreadPrivate::start (arg=0x25efaf0) at thread/qthread_unix.cpp:307
#18 0x00007fdf104f3e9a in start_thread (arg=0x7fdef99ca700) at pthread_create.c:308
#19 0x00007fdf10e98cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#20 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fdefa855700 (LWP 20490)):
#0  __libc_disable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:91
#1  0x00007fdf10e8b8c9 in read () at ../sysdeps/unix/syscall-template.S:82
#2  0x00007fdf0fa128cf in read (__nbytes=16, __buf=0x7fdefa854c60, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:45
#3  g_wakeup_acknowledge (wakeup=0x7fdef4001d90) at /build/buildd/glib2.0-2.32.3/./glib/gwakeup.c:212
#4  0x00007fdf0f9d7ba4 in g_main_context_check (context=0x7fdee8002520, max_priority=2147483647, fds=0x7fdee80064f0, n_fds=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2980
#5  0x00007fdf0f9d7fd6 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x7fdee8002520, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3143
#6  g_main_context_iterate (context=0x7fdee8002520, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#7  0x00007fdf0f9d8164 in g_main_context_iteration (context=0x7fdee8002520, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#8  0x00007fdf1490f906 in QEventDispatcherGlib::processEvents (this=0x7fdee8002400, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#9  0x00007fdf148dee42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#10 0x00007fdf148df097 in QEventLoop::exec (this=0x7fdefa854de0, flags=...) at kernel/qeventloop.cpp:204
#11 0x00007fdf147de057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#12 0x00007fdf13512c39 in KIMAP::SessionThread::run (this=0x24a4140) at ../../kimap/sessionthread.cpp:181
#13 0x00007fdf147e107b in QThreadPrivate::start (arg=0x24a4140) at thread/qthread_unix.cpp:307
#14 0x00007fdf104f3e9a in start_thread (arg=0x7fdefa855700) at pthread_create.c:308
#15 0x00007fdf10e98cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#16 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fdefb265700 (LWP 32400)):
#0  0x00007fdf1490ee37 in timerSourcePrepareHelper (src=0x7fdef0001530, timeout=0x7fdefb264c7c) at kernel/qeventdispatcher_glib.cpp:135
#1  0x00007fdf1490ef05 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#2  0x00007fdf0f9d7846 in g_main_context_prepare (context=0x7fdef0001220, priority=0x7fdefb264cc8) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2836
#3  0x00007fdf0f9d7f5b in g_main_context_iterate (dispatch=1, block=1, context=0x7fdef0001220, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3126
#4  g_main_context_iterate (context=0x7fdef0001220, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#5  0x00007fdf0f9d8164 in g_main_context_iteration (context=0x7fdef0001220, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#6  0x00007fdf1490f906 in QEventDispatcherGlib::processEvents (this=0x7fdef0001e80, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007fdf148dee42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007fdf148df097 in QEventLoop::exec (this=0x7fdefb264de0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007fdf147de057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007fdf13512c39 in KIMAP::SessionThread::run (this=0x2714250) at ../../kimap/sessionthread.cpp:181
#11 0x00007fdf147e107b in QThreadPrivate::start (arg=0x2714250) at thread/qthread_unix.cpp:307
#12 0x00007fdf104f3e9a in start_thread (arg=0x7fdefb265700) at pthread_create.c:308
#13 0x00007fdf10e98cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fdee7997700 (LWP 1378)):
#0  0x00007fff93ec28de in ?? ()
#1  0x00007fdf0fc8915d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:116
#2  0x00007fdf14837c64 in do_gettime (frac=0x7fdee7996ba8, sec=0x7fdee7996ba0) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007fdf1491006d in QTimerInfoList::updateCurrentTime (this=0x7fdee00074e0) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007fdf149103a3 in QTimerInfoList::timerWait (this=0x7fdee00074e0, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007fdf1490ee5c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7fdee7996c7c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007fdf1490ef05 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007fdf0f9d7846 in g_main_context_prepare (context=0x7fdee0007770, priority=0x7fdee7996cc8) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2836
#9  0x00007fdf0f9d7f5b in g_main_context_iterate (dispatch=1, block=1, context=0x7fdee0007770, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3126
#10 g_main_context_iterate (context=0x7fdee0007770, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#11 0x00007fdf0f9d8164 in g_main_context_iteration (context=0x7fdee0007770, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#12 0x00007fdf1490f906 in QEventDispatcherGlib::processEvents (this=0x7fdee0008070, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#13 0x00007fdf148dee42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#14 0x00007fdf148df097 in QEventLoop::exec (this=0x7fdee7996de0, flags=...) at kernel/qeventloop.cpp:204
#15 0x00007fdf147de057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#16 0x00007fdf13512c39 in KIMAP::SessionThread::run (this=0x277ef00) at ../../kimap/sessionthread.cpp:181
#17 0x00007fdf147e107b in QThreadPrivate::start (arg=0x277ef00) at thread/qthread_unix.cpp:307
#18 0x00007fdf104f3e9a in start_thread (arg=0x7fdee7997700) at pthread_create.c:308
#19 0x00007fdf10e98cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#20 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fdf154f7780 (LWP 29789)):
[KCrash Handler]
#6  QSharedDataPointer (o=..., this=0x7fff93dff720) at /usr/include/qt4/QtCore/qshareddata.h:93
#7  assignEntityPrivate (one=..., other=...) at ../../akonadi/entity.cpp:49
#8  0x00007fdf14f2e5e4 in Akonadi::Entity::Entity (this=<optimized out>, other=...) at ../../akonadi/entity.cpp:56
#9  0x000000000041a31f in ImapResource::onIdleCollectionFetchDone (this=0x241e0f0, job=0x24a4750) at ../../../resources/imap/imapresource.cpp:545
#10 0x000000000041af8c in ImapResource::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./imapresource.moc:116
#11 0x00007fdf148f4761 in QMetaObject::activate (sender=0x24a4750, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff93dff990) at kernel/qobject.cpp:3547
#12 0x00007fdf117ad482 in KJob::result (this=<optimized out>, _t1=0x24a4750) at ./kjob.moc:208
#13 0x00007fdf117ad4c0 in KJob::emitResult (this=0x24a4750) at ../../kdecore/jobs/kjob.cpp:318
#14 0x00007fdf148f9926 in QObject::event (this=0x24a4750, e=<optimized out>) at kernel/qobject.cpp:1195
#15 0x00007fdf13c617b4 in notify_helper (e=0x25bd420, receiver=0x24a4750, this=0x22bce50) at kernel/qapplication.cpp:4556
#16 QApplicationPrivate::notify_helper (this=0x22bce50, receiver=0x24a4750, e=0x25bd420) at kernel/qapplication.cpp:4528
#17 0x00007fdf13c66583 in QApplication::notify (this=0x7fff93e011f0, receiver=0x24a4750, e=0x25bd420) at kernel/qapplication.cpp:4417
#18 0x00007fdf11d88786 in KApplication::notify (this=0x7fff93e011f0, receiver=0x24a4750, event=0x25bd420) at ../../kdeui/kernel/kapplication.cpp:311
#19 0x00007fdf148e030c in QCoreApplication::notifyInternal (this=0x7fff93e011f0, receiver=0x24a4750, event=0x25bd420) at kernel/qcoreapplication.cpp:915
#20 0x00007fdf148e40ea in sendEvent (event=0x25bd420, receiver=0x24a4750) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x22904d0) at kernel/qcoreapplication.cpp:1539
#22 0x00007fdf1490f473 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#23 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#24 0x00007fdf0f9d7d53 in g_main_dispatch (context=0x22be300) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2539
#25 g_main_context_dispatch (context=0x22be300) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3075
#26 0x00007fdf0f9d80a0 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x22be300, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3146
#27 g_main_context_iterate (context=0x22be300, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#28 0x00007fdf0f9d8164 in g_main_context_iteration (context=0x22be300, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#29 0x00007fdf1490f89f in QEventDispatcherGlib::processEvents (this=0x2291cb0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x00007fdf13d09cde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007fdf148dee42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007fdf148df097 in QEventLoop::exec (this=0x7fff93e002b0, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007fdf14131f86 in QDialog::exec (this=0x2889b60) at dialogs/qdialog.cpp:554
#34 0x00000000004174eb in ImapResource::configureSubscription (this=0x241e0f0) at ../../../resources/imap/imapresource.cpp:237
#35 0x000000000043160e in qt_static_metacall (_a=<optimized out>, _o=<optimized out>, _c=<optimized out>, _id=<optimized out>) at resourceadaptor.moc:70
#36 ResourceAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at resourceadaptor.moc:64
#37 0x000000000043168b in ResourceAdaptor::qt_metacall (this=0x24998e0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff93e00570) at resourceadaptor.moc:114
#38 0x00007fdf14c5b37b in QDBusConnectionPrivate::deliverCall (this=0x231e690, object=0x24998e0, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:947
#39 0x00007fdf14c5c4dd in QDBusConnectionPrivate::activateCall (this=0x231e690, object=0x24998e0, flags=273, msg=...) at qdbusintegrator.cpp:857
#40 0x00007fdf14c5ce3b in QDBusConnectionPrivate::activateObject (this=0x231e690, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1423
#41 0x00007fdf14c5cf2b in QDBusActivateObjectEvent::placeMetaCall (this=0x2792f20) at qdbusintegrator.cpp:1537
#42 0x00007fdf148f9926 in QObject::event (this=0x241e0f0, e=<optimized out>) at kernel/qobject.cpp:1195
#43 0x00007fdf13c617b4 in notify_helper (e=0x2792f20, receiver=0x241e0f0, this=0x22bce50) at kernel/qapplication.cpp:4556
#44 QApplicationPrivate::notify_helper (this=0x22bce50, receiver=0x241e0f0, e=0x2792f20) at kernel/qapplication.cpp:4528
#45 0x00007fdf13c66583 in QApplication::notify (this=0x7fff93e011f0, receiver=0x241e0f0, e=0x2792f20) at kernel/qapplication.cpp:4417
#46 0x00007fdf11d88786 in KApplication::notify (this=0x7fff93e011f0, receiver=0x241e0f0, event=0x2792f20) at ../../kdeui/kernel/kapplication.cpp:311
#47 0x00007fdf148e030c in QCoreApplication::notifyInternal (this=0x7fff93e011f0, receiver=0x241e0f0, event=0x2792f20) at kernel/qcoreapplication.cpp:915
#48 0x00007fdf148e40ea in sendEvent (event=0x2792f20, receiver=0x241e0f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#49 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x22904d0) at kernel/qcoreapplication.cpp:1539
#50 0x00007fdf1490f473 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#51 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#52 0x00007fdf0f9d7d53 in g_main_dispatch (context=0x22be300) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2539
#53 g_main_context_dispatch (context=0x22be300) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3075
#54 0x00007fdf0f9d80a0 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x22be300, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3146
#55 g_main_context_iterate (context=0x22be300, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#56 0x00007fdf0f9d8164 in g_main_context_iteration (context=0x22be300, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#57 0x00007fdf1490f89f in QEventDispatcherGlib::processEvents (this=0x2291cb0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#58 0x00007fdf13d09cde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#59 0x00007fdf148dee42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#60 0x00007fdf148df097 in QEventLoop::exec (this=0x7fff93e01170, flags=...) at kernel/qeventloop.cpp:204
#61 0x00007fdf148e43e7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#62 0x00007fdf1500e796 in Akonadi::ResourceBase::init (r=0x241e0f0) at ../../akonadi/resourcebase.cpp:451
#63 0x000000000041b4f6 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#64 0x00007fdf10dc676d in __libc_start_main (main=0x415610 <main(int, char**)>, argc=3, ubp_av=0x7fff93e01308, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff93e012f8) at libc-start.c:226
#65 0x00000000004157c5 in _start ()

Possible duplicates by query: bug 309728, bug 308691, bug 308070, bug 306740, bug 301647.

Reported using DrKonqi
Comment 1 Torsten Eichstädt 2012-11-30 14:52:21 UTC
Created attachment 75547 [details]
backtrace of additional crash afterwards, see short description

crash after quiting & restarting Akonadi Control Panel App & Kontact and trying to access the IMAP resource.
Comment 2 Jekyll Wu 2013-02-26 04:50:55 UTC
*** Bug 311398 has been marked as a duplicate of this bug. ***
Comment 3 Laurent Montel 2013-06-08 11:57:52 UTC
Able to reproduce in last version ?
Comment 4 Kevin Ottens 2013-11-16 07:33:55 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 5 Christian Mollekopf 2013-11-20 12:16:12 UTC
Crash backtraces of pre 4.11.3 versions are no longer useful. Please reopen if you can reproduce the issue with >= 4.11.3.