Bug 379792 - akonadi_imap_resource crashes after requesting password
Summary: akonadi_imap_resource crashes after requesting password
Status: RESOLVED WORKSFORME
Alias: None
Product: kdepim
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-13 21:58 UTC by Matthew Millar
Modified: 2022-12-06 05:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
akonadictl --verbose start (19.57 KB, text/plain)
2017-05-13 22:10 UTC, Matthew Millar
Details
kmail launch (akonadictl --verbose) (2.28 KB, text/plain)
2017-05-13 22:11 UTC, Matthew Millar
Details
kmail launch (konsole) (1.33 KB, text/plain)
2017-05-13 22:11 UTC, Matthew Millar
Details
akonadi_imap_resource dialog (akonadictl --verbose) (1.26 KB, text/plain)
2017-05-13 22:12 UTC, Matthew Millar
Details
agent_config_akonadi_imap_resource_0 (63 bytes, text/plain)
2017-05-13 22:14 UTC, Matthew Millar
Details
akonadi_imap_resource_0rc (285 bytes, text/plain)
2017-05-13 22:15 UTC, Matthew Millar
Details
akonadictl --verbose start (16.12.3) (20.18 KB, text/plain)
2017-05-15 22:54 UTC, Matthew Millar
Details
akonadictl --verbose fsck (16.12.3) (12.05 KB, text/plain)
2017-05-15 22:56 UTC, Matthew Millar
Details
kmail launch (16.12.3 - konsole) (1.86 KB, text/plain)
2017-05-15 23:01 UTC, Matthew Millar
Details
akonadi_imap_resource dialog (16.12.3 - akonadictl --verbose) (9.43 KB, text/plain)
2017-05-15 23:01 UTC, Matthew Millar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Millar 2017-05-13 21:58:06 UTC
akonadi_imap_resource is reported by akonadictl as crashing after an IMAP password is provided. The password should be obtained from the wallet, but a password dialog appears instead.

After akonadi is started, the IMAP password dialog appears 3 times, before akonadictl reports akonadi_imap_resource has failed too often and won't be restarted.

If the IMAP password dialog is cancelled, when kmail is started the IMAP password dialog re-appears and when the password is provided a backtrace appears  in akonadictl.

'valgrind akonadi_imap_resource' reports:
 ==6517== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

The fault has begun since upgrading from 16.12.3 to 17.04.0 (the issue persists in 17.04.1), though I'm not certain whether the fault occurred immediately after the upgrade.
Comment 1 Matthew Millar 2017-05-13 22:10:35 UTC
Created attachment 105513 [details]
akonadictl --verbose start
Comment 2 Matthew Millar 2017-05-13 22:11:16 UTC
Created attachment 105514 [details]
kmail launch (akonadictl --verbose)
Comment 3 Matthew Millar 2017-05-13 22:11:45 UTC
Created attachment 105515 [details]
kmail launch (konsole)
Comment 4 Matthew Millar 2017-05-13 22:12:19 UTC
Created attachment 105516 [details]
akonadi_imap_resource dialog (akonadictl --verbose)
Comment 5 Matthew Millar 2017-05-13 22:14:42 UTC
Created attachment 105517 [details]
agent_config_akonadi_imap_resource_0
Comment 6 Matthew Millar 2017-05-13 22:15:11 UTC
Created attachment 105518 [details]
akonadi_imap_resource_0rc
Comment 7 Matthew Millar 2017-05-15 22:47:34 UTC
Having re-installed the full kontact/kmail/korganizer suite to 16.12.3, kmail successfully started, but akonadi_imap_resource prompted for a password, following which a successful authentication and download was achieved. (does this mean 17.04.[01] corrupted the kwallet entries?)

Full re-install:- gentoo emerge
=kontact-16.12.3
=korganizer-16.12.3
=kmail-16.12.3
=kmail-account-wizard-16.12.3
=kldap-16.12.3
=eventviews-16.12.3
=kcalcore-16.12.3
=akonadi-contacts-16.12.3
=kimap-16.12.3
=kmbox-16.12.3
=akonadi-search-16.12.3
=akonadi-calendar-16.12.3
=kdepim-apps-libs-16.12.3
=kdepim-runtime-16.12.3
=messagelib-16.12.3
=libkdepim-16.12.3
=eventviews-16.12.3
=calendarsupport-16.12.3
=pimcommon-16.12.3
=incidenceeditor-16.12.3
=libksieve-16.12.3
=mailcommon-16.12.3
=libgravatar-16.12.3
=kalarmcal-16.12.3
=kcontacts-16.12.3
=kontactinterface-16.12.3
=kpimtextedit-16.12.3
=grantleetheme-16.12.3
=kcalcore-16.12.3
=kidentitymanagement-16.12.3
=kcalutils-16.12.3
=libktnef-16.12.3
=libkleo-16.12.3-r1
Comment 8 Matthew Millar 2017-05-15 22:54:25 UTC
Created attachment 105571 [details]
akonadictl --verbose start (16.12.3)
Comment 9 Matthew Millar 2017-05-15 22:56:20 UTC
Created attachment 105572 [details]
akonadictl --verbose fsck (16.12.3)
Comment 10 Matthew Millar 2017-05-15 23:01:24 UTC
Created attachment 105573 [details]
kmail launch (16.12.3 - konsole)
Comment 11 Matthew Millar 2017-05-15 23:01:41 UTC
Created attachment 105574 [details]
akonadi_imap_resource dialog (16.12.3 - akonadictl --verbose)
Comment 12 Daniel Vrátil 2017-05-16 17:12:25 UTC
Any chance to get a crash backtrace from DrKonqi?
Comment 13 Allan Sandfeld 2017-06-17 08:47:44 UTC
I am seeing something similar starting today with KDE neon.

Backtrace:
Reading symbols from /usr/bin/akonadi_imap_resource...Reading symbols from /usr/lib/debug/.build-id/f0/a1a2580cdb0c1ad082f8751d53f1d876c2d7b1.debug...done.
done.

warning: core file may not match specified executable file.
[New LWP 18316]
[New LWP 18319]
[New LWP 18322]
[New LWP 18325]
[New LWP 18344]
[New LWP 18326]
[New LWP 18321]
[New LWP 18324]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/akonadi_imap_resource --identifier akonadi_imap_resource_6'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000463eb9 in RetrieveItemsTask::listFlagsForImapSet (this=this@entry=0x234b9c0, set=...)
    at /workspace/build/resources/imap/retrieveitemstask.cpp:597
597     /workspace/build/resources/imap/retrieveitemstask.cpp: No such file or directory.
[Current thread is 1 (Thread 0x7f035df81980 (LWP 18316))]
(gdb) bt
#0  0x0000000000463eb9 in RetrieveItemsTask::listFlagsForImapSet (this=this@entry=0x234b9c0, set=...)
    at /workspace/build/resources/imap/retrieveitemstask.cpp:597
#1  0x00000000004642a4 in RetrieveItemsTask::onRetrievalDone (this=0x234b9c0, job=0x2342270)
    at /workspace/build/resources/imap/retrieveitemstask.cpp:584
#2  0x00007f037c22e1f6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f037d3dd212 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#4  0x00007f037d3deb51 in KJob::finishJob(bool) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#5  0x000000000048f7bb in BatchFetcher::onHeadersFetchDone (this=0x2342270, job=0x2348810) at /workspace/build/resources/imap/batchfetcher.cpp:226
#6  0x00007f037c22e1f6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f037d3dd212 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#8  0x00007f037d3deb51 in KJob::finishJob(bool) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#9  0x00007f037ff22945 in KIMAP::Job::handleErrorReplies(KIMAP::Message const&) () from /usr/lib/x86_64-linux-gnu/libKF5IMAP.so.5
#10 0x00007f037fef8719 in KIMAP::FetchJob::handleResponse(KIMAP::Message const&) () from /usr/lib/x86_64-linux-gnu/libKF5IMAP.so.5
#11 0x00007f037ff3f4c0 in KIMAP::SessionPrivate::responseReceived(KIMAP::Message const&) () from /usr/lib/x86_64-linux-gnu/libKF5IMAP.so.5
#12 0x00007f037c22ed99 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f037cc4fecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f037cc578c6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f037c2030c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f037c20578b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f037c256333 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f03764e2197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f03764e23f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f03764e249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f037c25673f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f037c2010ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f037c2096cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f037ec5207e in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#25 0x0000000000420555 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=<optimized out>)
    at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:196
#26 0x00007f037b646830 in __libc_start_main (main=0x420390 <main(int, char**)>, argc=3, argv=0x7fffd1db9038, init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffd1db9028) at ../csu/libc-start.c:291
#27 0x00000000004203f9 in _start ()
Comment 14 Justin Zobel 2022-11-06 09:25:03 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 15 Bug Janitor Service 2022-11-21 05:13:05 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
mark the bug 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 16 Bug Janitor Service 2022-12-06 05:19:44 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!