Bug 316105

Summary: Crash after IMAP password change
Product: [Frameworks and Libraries] Akonadi Reporter: Frederik Gladhorn <gladhorn>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED FIXED    
Severity: crash CC: kdepim-bugs, montel, vkrause
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frederik Gladhorn 2013-03-04 11:42:15 UTC
Application: akonadi_imap_resource (4.9)
KDE Platform Version: 4.9.5
Qt Version: 4.8.3
Operating System: Linux 3.5.0-25-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
After changing the user imap password on the server, KMail asks 
to change the settings. Adjusting the password in the account settings leads to the crash.
Everything works from there on.

The crash can be reproduced some of the time.

-- Backtrace:
Application: digia av type IMAP E-post-tjener (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 0x7fbda6fc8780 (LWP 3022))]

Thread 3 (Thread 0x7fbd90d94700 (LWP 3146)):
#0  0x00007fbda2085f69 in __pthread_mutex_lock (mutex=0x7fbd88000a60) at pthread_mutex_lock.c:92
#1  0x00007fbda15a2e21 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbda1565d6a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbda1565ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fbda6403c16 in QEventDispatcherGlib::processEvents (this=0x7fbd880008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fbda63d42bf in QEventLoop::processEvents (this=this@entry=0x7fbd90d93de0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fbda63d4548 in QEventLoop::exec (this=0x7fbd90d93de0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fbda62d5b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007fbda5039af7 in KIMAP::SessionThread::run (this=0xc8c260) at ../../kimap/sessionthread.cpp:182
#9  0x00007fbda62d8aec in QThreadPrivate::start (arg=0xc8c260) at thread/qthread_unix.cpp:338
#10 0x00007fbda2083e9a in start_thread (arg=0x7fbd90d94700) at pthread_create.c:308
#11 0x00007fbda2a24ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fbd93564700 (LWP 4926)):
#0  0x00007fbda2a19313 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fbda1565d84 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbda1565ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbda6403c16 in QEventDispatcherGlib::processEvents (this=0x7fbd8c202950, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fbda63d42bf in QEventLoop::processEvents (this=this@entry=0x7fbd93563dd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fbda63d4548 in QEventLoop::exec (this=0x7fbd93563dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fbda62d5b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fbda63b49af in QInotifyFileSystemWatcherEngine::run (this=0x11e4460) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fbda62d8aec in QThreadPrivate::start (arg=0x11e4460) at thread/qthread_unix.cpp:338
#9  0x00007fbda2083e9a in start_thread (arg=0x7fbd93564700) at pthread_create.c:308
#10 0x00007fbda2a24ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fbda6fc8780 (LWP 3022)):
[KCrash Handler]
#6  indexOfMethodRelative<4> (normalizeStringData=<optimized out>, method=<optimized out>, baseObject=0x7fff1ef8c5c8) at kernel/qmetaobject.cpp:530
#7  QMetaObjectPrivate::indexOfSignalRelative (baseObject=0x7fff1ef8c5c8, signal=0x12d9079 "stateChanged(KIMAP::Session::State,KIMAP::Session::State)", normalizeStringData=false) at kernel/qmetaobject.cpp:628
#8  0x00007fbda63ed710 in QObject::disconnect (sender=0xddb260, signal=0x12d9079 "stateChanged(KIMAP::Session::State,KIMAP::Session::State)", receiver=0xd2b930, method=0xc9d0c9 "onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)") at kernel/qobject.cpp:2895
#9  0x0000000000453c95 in SessionPool::killSession (this=this@entry=0xd2b930, session=session@entry=0xddb260, termination=termination@entry=SessionPool::LogoutSession) at ../../../resources/imap/sessionpool.cpp:176
#10 0x00000000004546c1 in SessionPool::cancelSessionCreation (this=this@entry=0xd2b930, session=0xddb260, errorCode=errorCode@entry=2, errorMessage=...) at ../../../resources/imap/sessionpool.cpp:233
#11 0x00000000004559a9 in SessionPool::onPasswordRequestDone (this=0xd2b930, resultType=<optimized out>, password=...) at ../../../resources/imap/sessionpool.cpp:295
#12 0x0000000000456527 in SessionPool::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./sessionpool.moc:94
#13 0x00007fbda63eaf5f in QMetaObject::activate (sender=0xd2ba90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff1ef8c9f0) at kernel/qobject.cpp:3547
#14 0x0000000000441ce1 in PasswordRequesterInterface::done (this=<optimized out>, _t1=1, _t2=...) at ./passwordrequesterinterface.moc:118
#15 0x0000000000421492 in SettingsPasswordRequester::askUserInput (this=0xd2ba90, serverError=...) at ../../../resources/imap/settingspasswordrequester.cpp:66
#16 0x00007fbda63ea43e in QObject::event (this=0xd2ba90, e=<optimized out>) at kernel/qobject.cpp:1195
#17 0x00007fbda577ce9c in QApplicationPrivate::notify_helper (this=this@entry=0xb2bcb0, receiver=receiver@entry=0xd2ba90, e=e@entry=0xdc8b30) at kernel/qapplication.cpp:4562
#18 0x00007fbda578130a in QApplication::notify (this=0x7fff1ef8d570, receiver=0xd2ba90, e=0xdc8b30) at kernel/qapplication.cpp:4423
#19 0x00007fbda38ee1f6 in KApplication::notify (this=0x7fff1ef8d570, receiver=0xd2ba90, event=0xdc8b30) at ../../kdeui/kernel/kapplication.cpp:311
#20 0x00007fbda63d556e in QCoreApplication::notifyInternal (this=0x7fff1ef8d570, receiver=receiver@entry=0xd2ba90, event=event@entry=0xdc8b30) at kernel/qcoreapplication.cpp:915
#21 0x00007fbda63d93f1 in sendEvent (event=0xdc8b30, receiver=0xd2ba90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xaf54d0) at kernel/qcoreapplication.cpp:1539
#23 0x00007fbda6403a63 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#24 postEventSourceDispatch (s=0xb1f2b0) at kernel/qeventdispatcher_glib.cpp:279
#25 0x00007fbda1565ab5 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fbda1565de8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fbda1565ea4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fbda6403bf6 in QEventDispatcherGlib::processEvents (this=0xaf6cb0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#29 0x00007fbda5821c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007fbda63d42bf in QEventLoop::processEvents (this=this@entry=0x7fff1ef8d4f0, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007fbda63d4548 in QEventLoop::exec (this=0x7fff1ef8d4f0, flags=...) at kernel/qeventloop.cpp:204
#32 0x00007fbda63d9708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#33 0x00007fbda6af4a23 in Akonadi::ResourceBase::init (r=0xd1b1c0) at ../../akonadi/resourcebase.cpp:451
#34 0x000000000041b213 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#35 0x00007fbda295276d in __libc_start_main (main=0x415600 <main(int, char**)>, argc=3, ubp_av=0x7fff1ef8d688, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff1ef8d678) at libc-start.c:226
#36 0x00000000004157b5 in _start ()

Possible duplicates by query: bug 308602, bug 307658.

Reported using DrKonqi
Comment 1 Laurent Montel 2013-03-04 12:52:41 UTC
update to 4.10.1 David fixed a lot of crash in imap
It was fixed.
Regards