Bug 303523 - imap resource agent crashing on login failure
Summary: imap resource agent crashing on login failure
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.8
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-07-14 13:39 UTC by Stefan Schwarzer
Modified: 2018-09-28 17:02 UTC (History)
5 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 Stefan Schwarzer 2012-07-14 13:39:26 UTC
Application: akonadi_imap_resource (4.8)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.2
Operating System: Linux 3.2.0-2-amd64 x86_64
Distribution (Platform): Debian testing

-- Information about the crash:
- What I was doing when the application crashed:
agent brought online using akonadiconsole, prompts for login information (use wallet, single, cancel). No matter what I select, the agent crashes, trying to login again, prompting, etc. until it goes offline.

- Custom settings of the application:
imap server is on a private network and cannot be reached (other issues if it is in fact reachable). A second, reachable account exists on a pop3 server. I checked server side subscriptions, but the issue is most likely unrelated to that.

The crash can be reproduced every time.

-- Backtrace:
Application: exchange/schwarzer 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 0x7fb22aaa4760 (LWP 30814))]

Thread 2 (Thread 0x7fb215cce700 (LWP 6567)):
#0  0x00007fb226681a93 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fb2251e74d4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb2251e75f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb229ecc306 in QEventDispatcherGlib::processEvents (this=0xda7ec0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fb229e9c92f in QEventLoop::processEvents (this=this@entry=0x7fb215ccde20, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fb229e9cbb8 in QEventLoop::exec (this=0x7fb215ccde20, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fb229d9fd70 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fb228af38a9 in KIMAP::SessionThread::run (this=0xd55330) at ../../kimap/sessionthread.cpp:181
#8  0x00007fb229da2d0b in QThreadPrivate::start (arg=0xd55330) at thread/qthread_unix.cpp:307
#9  0x00007fb225d03b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#10 0x00007fb22668c6dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb22aaa4760 (LWP 30814)):
[KCrash Handler]
#6  KIMAP::Job::start (this=0xd98b00) at ../../kimap/job.cpp:56
#7  0x000000000041e68f in ImapResource::onConnectError (this=0xceca40, session=<optimized out>, code=<optimized out>, message=...) at ../../../resources/imap/imapresource.cpp:1347
#8  0x00007fb229eb35cf in QMetaObject::activate (sender=0x10384a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2f9ce3b0) at kernel/qobject.cpp:3547
#9  0x0000000000417c43 in ImapAccount::error (this=this@entry=0x10384a0, _t1=0xda9140, _t2=_t2@entry=1, _t3=...) at ./imapaccount.moc:133
#10 0x0000000000419285 in ImapAccount::onLoginDone (this=0x10384a0, job=0xe09da0) at ../../../resources/imap/imapaccount.cpp:270
#11 0x00007fb229eb35cf in QMetaObject::activate (sender=0xe09da0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2f9ce570) at kernel/qobject.cpp:3547
#12 0x00007fb226f95a22 in KJob::result (this=this@entry=0xe09da0, _t1=_t1@entry=0xe09da0) at ./kjob.moc:208
#13 0x00007fb226f95a60 in KJob::emitResult (this=0xe09da0) at ../../kdecore/jobs/kjob.cpp:318
#14 0x00007fb228ae2ffc in KIMAP::LoginJob::connectionLost (this=0xe09da0) at ../../kimap/loginjob.cpp:556
#15 0x00007fb228aef265 in KIMAP::SessionPrivate::clearJobQueue (this=0xbc1620) at ../../kimap/session.cpp:398
#16 0x00007fb229eb2aae in QObject::event (this=0xda9140, e=<optimized out>) at kernel/qobject.cpp:1195
#17 0x00007fb22924770c in QApplicationPrivate::notify_helper (this=this@entry=0xb3ac00, receiver=receiver@entry=0xda9140, e=e@entry=0x7fb208005dd0) at kernel/qapplication.cpp:4556
#18 0x00007fb22924bb8a in QApplication::notify (this=0x7fff2f9d0260, receiver=0xda9140, e=0x7fb208005dd0) at kernel/qapplication.cpp:4417
#19 0x00007fb22758c8a6 in KApplication::notify (this=0x7fff2f9d0260, receiver=0xda9140, event=0x7fb208005dd0) at ../../kdeui/kernel/kapplication.cpp:311
#20 0x00007fb229e9dbde in QCoreApplication::notifyInternal (this=0x7fff2f9d0260, receiver=receiver@entry=0xda9140, event=event@entry=0x7fb208005dd0) at kernel/qcoreapplication.cpp:915
#21 0x00007fb229ea1a61 in sendEvent (event=0x7fb208005dd0, receiver=0xda9140) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xb10380) at kernel/qcoreapplication.cpp:1539
#23 0x00007fb229ecc153 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#24 postEventSourceDispatch (s=0xb3bb80) at kernel/qeventdispatcher_glib.cpp:279
#25 0x00007fb2251e7205 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fb2251e7538 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fb2251e75f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fb229ecc2e6 in QEventDispatcherGlib::processEvents (this=0xb11840, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#29 0x00007fb2292e896e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007fb229e9c92f in QEventLoop::processEvents (this=this@entry=0x7fff2f9ceef0, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007fb229e9cbb8 in QEventLoop::exec (this=0x7fff2f9ceef0, flags=...) at kernel/qeventloop.cpp:204
#32 0x00007fb2296fb6d8 in QDialog::exec (this=0xe02f10) at dialogs/qdialog.cpp:554
#33 0x00007fb2274fe5ca in KMessageBox::createKMessageBox (dialog=dialog@entry=0xe02f10, icon=..., text=..., strlist=..., ask=..., checkboxReturn=checkboxReturn@entry=0x7fff2f9cf31f, options=..., details=..., notifyType=notifyType@entry=QMessageBox::Information) at ../../kdeui/dialogs/kmessagebox.cpp:344
#34 0x00007fb2274feb7a in KMessageBox::createKMessageBox (dialog=dialog@entry=0xe02f10, icon=icon@entry=QMessageBox::Information, text=..., strlist=..., ask=..., checkboxReturn=checkboxReturn@entry=0x7fff2f9cf31f, options=..., details=...) at ../../kdeui/dialogs/kmessagebox.cpp:159
#35 0x00007fb227500d45 in KMessageBox::questionYesNoCancelWId (parent_id=<optimized out>, text=..., caption=..., buttonYes_=..., buttonNo_=..., buttonCancel_=..., dontAskAgainName=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:548
#36 0x000000000041e53b in ImapResource::onConnectError (this=0xceca40, session=<optimized out>, code=<optimized out>, message=...) at ../../../resources/imap/imapresource.cpp:1338
#37 0x00007fb229eb35cf in QMetaObject::activate (sender=0xf0b460, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2f9cf6b0) at kernel/qobject.cpp:3547
#38 0x0000000000417c43 in ImapAccount::error (this=this@entry=0xf0b460, _t1=0xd22340, _t2=_t2@entry=1, _t3=...) at ./imapaccount.moc:133
#39 0x0000000000419285 in ImapAccount::onLoginDone (this=0xf0b460, job=0xecb4a0) at ../../../resources/imap/imapaccount.cpp:270
#40 0x00007fb229eb35cf in QMetaObject::activate (sender=0xecb4a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2f9cf870) at kernel/qobject.cpp:3547
#41 0x00007fb226f95a22 in KJob::result (this=this@entry=0xecb4a0, _t1=_t1@entry=0xecb4a0) at ./kjob.moc:208
#42 0x00007fb226f95a60 in KJob::emitResult (this=0xecb4a0) at ../../kdecore/jobs/kjob.cpp:318
#43 0x00007fb228ae2ffc in KIMAP::LoginJob::connectionLost (this=0xecb4a0) at ../../kimap/loginjob.cpp:556
#44 0x00007fb228aef265 in KIMAP::SessionPrivate::clearJobQueue (this=0x10a3170) at ../../kimap/session.cpp:398
#45 0x00007fb229eb2aae in QObject::event (this=0xd22340, e=<optimized out>) at kernel/qobject.cpp:1195
#46 0x00007fb22924770c in QApplicationPrivate::notify_helper (this=this@entry=0xb3ac00, receiver=receiver@entry=0xd22340, e=e@entry=0x1069960) at kernel/qapplication.cpp:4556
#47 0x00007fb22924bb8a in QApplication::notify (this=0x7fff2f9d0260, receiver=0xd22340, e=0x1069960) at kernel/qapplication.cpp:4417
#48 0x00007fb22758c8a6 in KApplication::notify (this=0x7fff2f9d0260, receiver=0xd22340, event=0x1069960) at ../../kdeui/kernel/kapplication.cpp:311
#49 0x00007fb229e9dbde in QCoreApplication::notifyInternal (this=0x7fff2f9d0260, receiver=receiver@entry=0xd22340, event=event@entry=0x1069960) at kernel/qcoreapplication.cpp:915
#50 0x00007fb229ea1a61 in sendEvent (event=0x1069960, receiver=0xd22340) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#51 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xb10380) at kernel/qcoreapplication.cpp:1539
#52 0x00007fb229ecc153 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#53 postEventSourceDispatch (s=0xb3bb80) at kernel/qeventdispatcher_glib.cpp:279
#54 0x00007fb2251e7205 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#55 0x00007fb2251e7538 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#56 0x00007fb2251e75f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007fb229ecc2e6 in QEventDispatcherGlib::processEvents (this=0xb11840, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#58 0x00007fb2292e896e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#59 0x00007fb229e9c92f in QEventLoop::processEvents (this=this@entry=0x7fff2f9d01e0, flags=...) at kernel/qeventloop.cpp:149
#60 0x00007fb229e9cbb8 in QEventLoop::exec (this=0x7fff2f9d01e0, flags=...) at kernel/qeventloop.cpp:204
#61 0x00007fb229ea1d78 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#62 0x00007fb22a5cc003 in Akonadi::ResourceBase::init (r=0xceca40) at ../../akonadi/resourcebase.cpp:412
#63 0x000000000042ea93 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#64 0x00007fb2265d2ead 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=0x7fff2f9d0368) at libc-start.c:228
#65 0x0000000000412425 in _start ()

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

Possible duplicates by query: bug 218662.

Reported using DrKonqi
Comment 1 Kevin Ottens 2013-11-16 07:30:35 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 2 Christian Mollekopf 2013-11-19 16:49:08 UTC
Does this still apply to >=4.11.3?
Comment 3 Stefan Schwarzer 2013-11-23 15:07:14 UTC
I did not use kmail until 4.10.x, but since then haven't seen the behvior described in the bug report. I am at 4.11.3 now. I guess this can be closed
Comment 4 Andrew Crouthamel 2018-09-25 03:37:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 stefan.schwarzer 2018-09-28 07:16:56 UTC
This is too old for me to provide any more information. As mentioned in my last comments, the bug can be closed which I will do now.
Comment 6 Andrew Crouthamel 2018-09-28 17:02:03 UTC
Thanks for the update!