Bug 296620 - Kmail crash after updating IMAP Server configuration and entering password
Summary: Kmail crash after updating IMAP Server configuration and entering password
Status: RESOLVED DUPLICATE of bug 293633
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 4.8
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-23 12:34 UTC by Björn Toschi
Modified: 2012-03-30 16:19 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 Björn Toschi 2012-03-23 12:34:58 UTC
Application: akonadi_imap_resource (4.8)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.2.0-18-generic x86_64
Distribution: Ubuntu precise (development branch)

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

Notice that I've recently (2 weeks ago) upgraded my system from Kubuntu 8.04 to 10.04 and 12.04 beta. System was updated and has been restarted some minutes before this crash happened.

Starting KMail first time on 12.04, it asked me to migrate old (KMail/8.04) data, I agreed but it wasn't successful (possibly thats simply due the fact that I'm using only IMAP ?).

I had to re-enter my account settings, and I typed in a wrong server at first (imap.strato-mail.net instead of imap.strato.de), which led to various pop-ups requesting permission to store password,  next one complaining about bad reply, and some more. Accepted password storage request and access of KWallet, closed error messages.

The account did not show up in KMail (only Local Folder), so I've entered the configure page, where my "IMAP Account 1" showed up as "No server vonfigured yet".

I checked the FAQ of my provider and it seems that imap.strato.de is the correct server now, so I have updated it, clicking okay, and then this crash occured.

I'm not too sure whether I had to re-type my password right before the crash or not, and there may be a hidden password window floating around (the popups before). I'm sure that I had given my credentials (and saved them in KWallet) initially when these popups came, but since the server name changed I don't now if that information is reused, or not.
Lets say I'm 90% sure that I did NOT re-type my password, but since I've checked the server resolving issue (see below) in between, I just have to say I'm not 100% sure about that.

Possibly of interest is that right now there are two windows (Local Folders - KMail and Configure - KMail) visible  while typing this report in the Crash reporting assistant. 

A note about the cause of having to update the server name:
Both imap.strato.de and imap.strato-mail.net seem to resolve to IP 81.169.145.103 (used dig --trace), anyway the latter one is strange (seems that only three nameservers of hsd.de knows about this address, which seems to be have valid some years ago, at least google knows about this setup for strato ;) )
Not sure if this is related to this bug, but oddities are always good to know :P

-- Backtrace:
Application: IMAP Account 1 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 0x7f85d5a1a780 (LWP 10132))]

Thread 2 (Thread 0x7f85bbfff700 (LWP 10139)):
#0  0x00007f85d13cb0bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f85cff52bbf in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f85cff17bad in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f85cff18086 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f85cff18214 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f85d4e3fa96 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f85d4e0f2f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f85d4e0f547 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f85d4d0ef97 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f85d4def06f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f85d4d11fbb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007f85d0a33e9a in start_thread (arg=0x7f85bbfff700) at pthread_create.c:308
#12 0x00007f85d13d84bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f85d5a1a780 (LWP 10132)):
[KCrash Handler]
#6  0x0000000000000030 in ?? ()
#7  0x00007f85d4e260e8 in QObject::connect(QObject const*, char const*, QObject const*, char const*, Qt::ConnectionType) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x0000000000454f3b in SessionPool::onPasswordRequestDone (this=0x1d42e70, resultType=<optimized out>, password=...) at ../../../resources/imap/sessionpool.cpp:335
#9  0x0000000000456cd7 in SessionPool::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./sessionpool.moc:94
#10 0x00007f85d4e248f1 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00000000004421c1 in PasswordRequesterInterface::done (this=<optimized out>, _t1=0, _t2=...) at ./passwordrequesterinterface.moc:118
#12 0x00000000004211b3 in SettingsPasswordRequester::onPasswordRequestCompleted (this=0x1d39e20, password=..., userRejected=false) at ../../../resources/imap/settingspasswordrequester.cpp:89
#13 0x00007f85d4e248f1 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x000000000041faf1 in Settings::passwordRequestCompleted (this=<optimized out>, _t1=..., _t2=false) at ./settings.moc:124
#15 0x000000000041fb2b in Settings::requestPassword (this=0x1d01130) at ../../../resources/imap/settings.cpp:114
#16 0x0000000000453df3 in SessionPool::connect (this=0x1d42e70, account=<optimized out>) at ../../../resources/imap/sessionpool.cpp:102
#17 0x000000000041688c in ImapResource::startConnect (this=0x1e83210) at ../../../resources/imap/imapresource.cpp:216
#18 0x00007f85d4e18571 in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007f85d4e1a880 in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007f85d554bac0 in ?? () from /usr/lib/libakonadi-kde.so.4
#21 0x00007f85d554cde5 in ?? () from /usr/lib/libakonadi-kde.so.4
#22 0x00007f85d4e29ab6 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007f85d41936b4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#24 0x00007f85d4198533 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007f85d22c1906 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#26 0x00007f85d4e1050c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007f85d4e142da in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007f85d4e3f603 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007f85cff17d8a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f85cff18150 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f85cff18214 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f85d4e3fa2f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007f85d423bb1e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#34 0x00007f85d4e0f2f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#35 0x00007f85d4e0f547 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#36 0x00007f85d4664236 in QDialog::exec() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#37 0x0000000000416750 in ImapResource::configureDialog (this=0x1e83210, windowId=0) at ../../../resources/imap/imapresource.cpp:175
#38 0x0000000000420e85 in SettingsPasswordRequester::askUserInput (this=0x1d39e20, serverError=...) at ../../../resources/imap/settingspasswordrequester.cpp:64
#39 0x00007f85d4e29ab6 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#40 0x00007f85d41936b4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#41 0x00007f85d4198533 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#42 0x00007f85d22c1906 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#43 0x00007f85d4e1050c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#44 0x00007f85d4e142da in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#45 0x00007f85d4e3f603 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#46 0x00007f85cff17d8a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f85cff18150 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f85cff18214 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f85d4e3fa2f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#50 0x00007f85d423bb1e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#51 0x00007f85d4e0f2f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#52 0x00007f85d4e0f547 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#53 0x00007f85d4e145d7 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#54 0x00007f85d553ebf6 in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib/libakonadi-kde.so.4
#55 0x000000000041a996 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#56 0x00007f85d130776d in __libc_start_main (main=0x4151c0 <main(int, char**)>, argc=3, ubp_av=0x7fff25c7daa8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff25c7da98) at libc-start.c:226
#57 0x0000000000415375 in _start ()

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

Possible duplicates by query: bug 293633, bug 293426, bug 287938, bug 285151.

Reported using DrKonqi
Comment 1 Björn Toschi 2012-03-23 12:47:20 UTC
After restarting KMail, some more issues showed up.

Whenever I change the server, a message box with title "Could not authenticate" is showing up.
It says StartTls failed, server replied: A000001 BAD command unrecognized: STARTTLLS [ CLIENTBUG ]
Whenever I say "try again", it re-requests my password, but still I come here again.
Changing to SSH/TLS did not work.

The Configure page itself displayed that the account could not be used due to KWallet access being rejected by user.

Auto-detecting connection settings led to Encryption: None, which seems to work (I see correct folder names being synced). Setting manually to SSL/TLS sometimes works, sometimes this changes it to be "offline".

I did not manage to actually see the folders in KMail itself. Seems there is something _really_ broken.
Comment 2 lhugsereg 2012-03-26 15:36:55 UTC
I can confirm the connection issues with SSH/TLS and STARTTLS using Strato IMAP-Server. Ports and everything are correct, however, KMail says that these authentication methods are not available and even if setting them does not connect and download emails.

This started after Kubuntu 12.04 upgraded from KDE 4.8 to 4.8.1 on my machine at the beginning of March (interestingly, KMail says its 4.8. Packaging bug?
Comment 3 Christophe Marin 2012-03-30 16:19:45 UTC

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