Is it really the same issue? I can create an account but at one point imap crashes. Does your kmail wizard and kmail or kimap process crash when creating the account?
Here now my imap.log with web.de imap crashing all the time when I start akonadi or restart it. I still don't see much in the imap.log but you can see that it crashes: imap.log.461972.1
It seems to happen irregularly and seems to be only with certain e-mails. Very weird. Will keep an eye on it to see if I can figure out more.
Leszek Lesner (a45cb88e) at 20 May 14:44
Add checkup for older NM in ipv6setting.cpp file aswell
The #if checkup for older NM version needs to be in the cpp file aswell otherwise it ends up with undeclared options.
Leszek Lesner (4dc6e95e) at 20 May 14:31
The #if NM_CHECK_VERSION(1, 20, 0)
needs to be in the cpp file aswell. Otherwise compiling on older NM will fail due to missing or undeclared "NMQT_SETTING_IP6_CONFIG_METHOD_DISABLED"
I attached a small patch that fixes this and compiles on my older network-manager 1.14.6 (Debian Stable) networkmanager-qt-fix-ipv6-setting-older-nm.patch
Here is the log file (with my patch applied) imap.log.110116.1
And without: imap.log.114174.1
To be honest I don't see much of a difference. Worst of all it now does not crash anymore without my patch applied. So it must be some specific imap state that triggers the crash. I will keep observing and send a log as soon as I get it to crash again.
Thank you for your explanation for the tests.
Did you double check that -1 is not an error code of an underlying function?
That I did not test. That could be a possibility. I have to dig deeper in the code then. Its my first time looking at the Kimap code so I don't have much experience and just worked from the debug output I got here: https://bugs.kde.org/show_bug.cgi?id=433117
I think even when some underlying function sent this error it needs to be handled either here or where the error occured.
Leszek Lesner (c968a96d) at 28 Apr 19:15
Fix crashing for certain imap providers (e.g. web.de)
... and 2 more commits
Leszek Lesner (4d2f1036) at 28 Apr 18:51
Fix crashing for certain imap providers (e.g. web.de)
... and 5 more commits
Thanks. I found a new issue. begin at least on my web.de account is sometimes -1 which still crashes even with my patch applied. So filtering out -1 is what I do to break the for loop. In all honesty I don't know how to write a test for this. I will check the release 21.04 branch out and add my new patch to it.
Thanks for your answer.
This fixes the Web.de imap crash reported in belows bug. The Q_ASSERT line seems to be wrong. BUG: 433117
Leszek Lesner (ac445bd0) at 22 Apr 12:13
Fix Q_ASSERT in imapset crashing for certain imap providers (e.g. w...
Leszek Lesner (d7ea5cb4) at 22 Apr 12:09
Fix Q_ASSERT in imapset crashing for certain imap providers (e.g. w...