Bug 379548 - IMAP resource crashes on configure operation
Summary: IMAP resource crashes on configure operation
Status: RESOLVED DUPLICATE of bug 379155
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 5.5.1
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords:
: 380292 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-05 10:34 UTC by Stephan Diestelhorst
Modified: 2017-06-08 00:39 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
backtrace of journalctl -f (34.62 KB, text/plain)
2017-05-12 02:37 UTC, Luciano Fuentes
Details
journalctl crash log with debug symbols (8.93 KB, text/plain)
2017-05-14 15:45 UTC, Luca Giambonini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Diestelhorst 2017-05-05 10:34:16 UTC
I am on KDE Neon with recent packages (below), and whenever I want to configure an existing IMAP account, the according akonadi IMAP instance dies with back trace attached.  I have tried to start with a clean Akonadi setup, but somehow my account data lives on.  Will try with a fresh user profile in a minute.

Backtrace:
Thread 1 "akonadi_imap_re" received signal SIGSEGV, Segmentation fault.
0x00007f30e4affa41 in MailTransport::ServerTest::normalProtocols() const () from /usr/lib/x86_64-linux-gnu/libKF5MailTransport.so.5
(gdb) bt
#0  0x00007f30e4affa41 in MailTransport::ServerTest::normalProtocols() const () from /usr/lib/x86_64-linux-gnu/libKF5MailTransport.so.5
#1  0x0000000000427434 in ?? ()
#2  0x00007f30e108a1f6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f30e1be7e32 in QLineEdit::textChanged(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007f30e1bee449 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007f30e1089e89 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f30e1c76435 in QWidgetLineControl::textChanged(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007f30e1c79876 in QWidgetLineControl::finishChange(int, bool, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f30e1c79b27 in QWidgetLineControl::internalSetText(QString const&, int, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007f30e1be9be2 in QLineEdit::setText(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x0000000000426071 in ?? ()
#11 0x00000000004294e1 in ?? ()
#12 0x00000000004207fd in ?? ()
#13 0x0000000000434dcd in ?? ()
#14 0x00007f30e3acc195 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#15 0x00007f30e57a6923 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#16 0x00007f30e57aa72a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#17 0x00007f30e57ab03b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#18 0x00007f30e57ad7fe in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#19 0x00007f30e108ad99 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f30e1aabecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f30e1ab38c6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f30e105f0c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f30e106178b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f30e10b2333 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f30db32e197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f30db32e3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f30db32e49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f30e10b273f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f30e105d0ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f30e10656cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f30e3ab3fde in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#32 0x0000000000420535 in ?? ()
#33 0x00007f30e04a2830 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#34 0x00000000004203d9 in _start ()

$ apt-cache policy 'akonadi*'
akonadi-server:
  Installed: 4:17.04.0+p16.04+git20170429.0513-0
  Candidate: 4:17.04.0+p16.04+git20170429.0513-0
  Version table:
 *** 4:17.04.0+p16.04+git20170429.0513-0 500
        500 http://archive.neon.kde.org/dev/stable xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     4:15.12.3-0ubuntu6 500
        500 http://uk.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Comment 1 Stephan Diestelhorst 2017-05-05 10:56:23 UTC
Tried with a clean user profile, and it still crashes, see below.  Also pulled out newer package information and installed bebug symbols.  Will also have a look if it is related to bug #379089

libkf5mailtransportakonadi5:                                                                                                                                                                                                     
  Installed: 17.04.0+p16.04+git20170502.0236-0                                                                                                                                                                                   
  Candidate: 17.04.0+p16.04+git20170502.0236-0
  Version table:
 *** 17.04.0+p16.04+git20170502.0236-0 500
        500 http://archive.neon.kde.org/dev/stable xenial/main amd64 Packages

Backtrace
(gdb) bt
#0  MailTransport::ServerTest::secureProtocols (this=0x0) at /workspace/build/src/kmailtransport/servertest.cpp:608
#1  0x00000000004274b7 in SetupServer::slotSafetyChanged (this=0x27fa080) at /workspace/build/resources/imap/setupserver.cpp:619
#2  0x00007fa759d9a1f6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fa75a8a2aa2 in QAbstractButton::toggled(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007fa75a8a2e95 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007fa75a8a4ecc in QAbstractButton::setChecked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007fa75a8a4eb1 in QAbstractButton::setChecked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x000000000042618e in SetupServer::readSettings (this=this@entry=0x27fa080) at /workspace/build/resources/imap/setupserver.cpp:394
#8  0x00000000004294e1 in SetupServer::SetupServer (this=0x27fa080, parentResource=<optimized out>, parent=<optimized out>)
    at /workspace/build/resources/imap/setupserver.cpp:190
#9  0x00000000004207fd in ImapResource::createConfigureDialog (this=0x2743410, windowId=100663358)
    at /workspace/build/resources/imap/imapresource.cpp:75
#10 0x0000000000434dcd in ImapResourceBase::configure (this=0x2743410, windowId=<optimized out>)
    at /workspace/build/resources/imap/imapresourcebase.cpp:223
#11 0x00007fa75c7dc195 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#12 0x00007fa75e4b6923 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#13 0x00007fa75e4ba72a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#14 0x00007fa75e4bb03b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#15 0x00007fa75e4bd7fe in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#16 0x00007fa759d9ad99 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fa75a7bbecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fa75a7c38c6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fa759d6f0c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5                                                                                                 
#20 0x00007fa759d7178b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()                                                                                                                              
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5                                                                                                                                                                                
#21 0x00007fa759dc2333 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5                                                                                                                                                   
#22 0x00007fa75403e197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0                                                                                                                                 
#23 0x00007fa75403e3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0                                                                                                                                                      
#24 0x00007fa75403e49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0                                                                                                                                
#25 0x00007fa759dc273f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()                                                                                                                          
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5                                                                                                                                                                                
#26 0x00007fa759d6d0ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5                                                                                              
#27 0x00007fa759d756cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5                                                                                                                             
#28 0x00007fa75c7c3fde in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) ()                                                                                                                                                 
   from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5                                                                                                                                                                    
#29 0x0000000000420535 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=<optimized out>)                                                                                                                               
    at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:196                                                                                                                                                                      
#30 0x00007fa7591b2830 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6                                                                                                                                              
#31 0x00000000004203d9 in _start ()                                                                                                                                                                                              
(gdb)
Comment 2 Stephan Diestelhorst 2017-05-05 11:01:11 UTC
After installing sasl2-bin and checking that the symlinks are correct, I still get the same / similar error (now with my old profile):

(gdb) bt                                                                                                                       
#0  MailTransport::ServerTest::normalProtocols (this=0x0) at /workspace/build/src/kmailtransport/servertest.cpp:593            
#1  0x0000000000427434 in SetupServer::slotSafetyChanged (this=0x1520ff0)                                                      
    at /workspace/build/resources/imap/setupserver.cpp:616                                                                     
#2  0x00007f33317611f6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5  
#3  0x00007f33322bee32 in QLineEdit::textChanged(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5          
#4  0x00007f33322c5449 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5                                              
#5  0x00007f3331760e89 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5  
#6  0x00007f333234d435 in QWidgetLineControl::textChanged(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 
#7  0x00007f3332350876 in QWidgetLineControl::finishChange(int, bool, bool) ()                                                 
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5                                                                           
#8  0x00007f3332350b27 in QWidgetLineControl::internalSetText(QString const&, int, bool) ()                                    
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5                                                                           
#9  0x00007f33322c0be2 in QLineEdit::setText(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5              
#10 0x0000000000426071 in SetupServer::readSettings (this=this@entry=0x1520ff0)                                                
    at /workspace/build/resources/imap/setupserver.cpp:374                                                                     
#11 0x00000000004294e1 in SetupServer::SetupServer (this=0x1520ff0, parentResource=<optimised out>, parent=<optimised out>)    
    at /workspace/build/resources/imap/setupserver.cpp:190                                                                     
#12 0x00000000004207fd in ImapResource::createConfigureDialog (this=0x1413110, windowId=71303178)                              
    at /workspace/build/resources/imap/imapresource.cpp:75                                                                     
#13 0x0000000000434dcd in ImapResourceBase::configure (this=0x1413110, windowId=<optimised out>)                               
    at /workspace/build/resources/imap/imapresourcebase.cpp:223                                                                
#14 0x00007f33341a3195 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5                                     
#15 0x00007f3335e7d923 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5                                                 
#16 0x00007f3335e8172a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5                                                 
#17 0x00007f3335e8203b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5                                                 
#18 0x00007f3335e847fe in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5                                                 
#19 0x00007f3331761d99 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5                            
#20 0x00007f3332182ecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()                                             
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5                                                                           
#21 0x00007f333218a8c6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5         
#22 0x00007f33317360c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f333173878b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f3331789333 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f332ba05197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f332ba053f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f332ba0549c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f333178973f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f33317340ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f333173c6cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f333418afde in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) ()
   from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#32 0x0000000000420535 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=<optimised out>)
    at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:196
#33 0x00007f3330b79830 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#34 0x00000000004203d9 in _start ()
Comment 3 Christophe Marin 2017-05-05 15:19:15 UTC
This happens with a GMail account, right ?
Comment 4 Stephan Diestelhorst 2017-05-07 22:38:36 UTC
This is a little more complex than necessary.

The back traces ending in ServerTest::normalProtocols() are for my Office 365 work email account, but I have a separate GMail account in Akonadi.  The crashing imap agents are the O365 (non-GMail) ones, though.

The back trace ending in MailTransport::ServerTest::secureProtocols is one of an empty IMAP resource that I created after a half configured GMail account (which I deleted).  That empty IMAP resource I simply added in KMail and it would crash whenever I tried to configure it.

In both cases, the back traces are from an non-GMail resource, but there was a parallel (lingering) GMail account in both.

I will retry with a truly empty non-GMail account and not go through the wizard.
Comment 5 Stephan Diestelhorst 2017-05-07 22:53:27 UTC
Okay, here is what I did:
* started with a fresh user account
* started KMail
* manually enter bogus account credentials for bogus server into wizard
* wizard complains (might not have a proper connection, please configure manually)
* attaching GDB (to the single imap agent)
* clicking configure
* crash -> backtrace
* closing KMail
* akonadictl restart
* and I get an _empty_ account (no server configured in akonadiconsole) and pretty much config file in ~/.config/../agent*imap*

Backtrace:
#0  MailTransport::ServerTest::secureProtocols (this=0x0) at /workspace/build/src/kmailtransport/servertest.cpp:608
#1  0x00000000004274b7 in SetupServer::slotSafetyChanged (this=0x9d3560) at /workspace/build/resources/imap/setupserver.cpp:619
#2  0x00007fd99a0341f6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fd99ab3caa2 in QAbstractButton::toggled(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007fd99ab3ce95 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007fd99ab3eecc in QAbstractButton::setChecked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007fd99ab3eeb1 in QAbstractButton::setChecked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x000000000042618e in SetupServer::readSettings (this=this@entry=0x9d3560) at /workspace/build/resources/imap/setupserver.cpp:394
#8  0x00000000004294e1 in SetupServer::SetupServer (this=0x9d3560, parentResource=<optimized out>, parent=<optimized out>)
    at /workspace/build/resources/imap/setupserver.cpp:190
#9  0x00000000004207fd in ImapResource::createConfigureDialog (this=0x985970, windowId=65011774)
    at /workspace/build/resources/imap/imapresource.cpp:75
#10 0x0000000000434dcd in ImapResourceBase::configure (this=0x985970, windowId=<optimized out>)
    at /workspace/build/resources/imap/imapresourcebase.cpp:223
#11 0x00007fd99ca76195 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#12 0x00007fd99e750923 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#13 0x00007fd99e75472a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#14 0x00007fd99e75503b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#15 0x00007fd99e7577fe in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#16 0x00007fd99a034d99 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fd99aa55ecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fd99aa5d8c6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fd99a0090c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fd99a00b78b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007fd99a05c333 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007fd9942d8197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007fd9942d83f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fd9942d849c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fd99a05c73f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007fd99a0070ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007fd99a00f6cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007fd99ca5dfde in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) ()
   from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#29 0x0000000000420535 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=<optimized out>)
    at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:196
#30 0x00007fd99944c830 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#31 0x00000000004203d9 in _start ()
Comment 6 Luciano Fuentes 2017-05-12 02:37:09 UTC
Created attachment 105466 [details]
backtrace of journalctl -f

I am on Archlinux , and I have the same issue, I can't add any IMAP account. 
I attach the backtrace of journalctl -f.
Comment 7 Luca Giambonini 2017-05-14 15:45:27 UTC
Created attachment 105532 [details]
journalctl crash log with debug symbols

backstrace journal -f with debug symbols
Comment 8 Sebastian 2017-05-14 16:00:26 UTC
I am on openSUSE Tumbleweed (latest update), with KDE applications 17.04. I am facing the same issue. Once generated an IMAP resource in KDE's Kontact it can't be configured properly. The same happens using aconadiconsole (Agents --> IMAP resource --> Configure --> Configure Natively) - no window opens for configuration. The IMAP resource; however, is a standard Google mail account.
Comment 10 Gioacchino Mazzurco 2017-05-22 16:40:19 UTC
I experience similar crash on Gentoo with kmail 5.5.1, on dmesg i have found this.

[Mon May 22 15:05:39 2017] akonadi_imap_re[6140]: segfault at 10 ip 00007ff60959a8d1 sp 00007ffd231df2a0 error 4 in libKF5MailTransport.so.5.5.1[7ff609570000+4d000]
[Mon May 22 15:05:41 2017] akonadi_imap_re[6152]: segfault at 10 ip 00007f831c6a18d1 sp 00007fff978704a0 error 4 in libKF5MailTransport.so.5.5.1[7f831c677000+4d000]
[Mon May 22 15:05:47 2017] akonadi_imap_re[6158]: segfault at 10 ip 00007f48003218d1 sp 00007ffc4c519300 error 4 in libKF5MailTransport.so.5.5.1[7f48002f7000+4d000]
[Mon May 22 15:06:15 2017] akonadi_imap_re[6181]: segfault at 10 ip 00007efbfa20f8d1 sp 00007fff63019490 error 4 in libKF5MailTransport.so.5.5.1[7efbfa1e5000+4d000]
[Mon May 22 15:06:17 2017] akonadi_imap_re[6187]: segfault at 10 ip 00007fbfa8d5e8d1 sp 00007ffe384652e0 error 4 in libKF5MailTransport.so.5.5.1[7fbfa8d34000+4d000]
[Mon May 22 15:06:18 2017] akonadi_imap_re[6193]: segfault at 10 ip 00007f941be818d1 sp 00007ffce89f3370 error 4 in libKF5MailTransport.so.5.5.1[7f941be57000+4d000]
Comment 11 Gioacchino Mazzurco 2017-05-22 17:33:13 UTC
Trying to configure it from akonadiconsole i get this message in the terminal

org.kde.pim.akonadicontrol: ProcessControl: Application "/usr/bin/akonadi_imap_resource" stopped unexpectedly ( "Process crashed" )
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_imap_resource' crashed! 0 restarts left.
Comment 12 Gioacchino Mazzurco 2017-05-23 08:37:31 UTC
Seems solved in development version, but we need a backport that make it into linux distributions fast
Comment 13 Wolfgang Bauer 2017-05-24 08:56:51 UTC
(In reply to Gioacchino Mazzurco from comment #12)
> Seems solved in development version, but we need a backport that make it
> into linux distributions fast

It has been backported and should be fixed in 17.04.2, see bug#379155.
Comment 14 Daniel Vrátil 2017-06-02 19:55:47 UTC
*** Bug 380292 has been marked as a duplicate of this bug. ***
Comment 15 Daniel Vrátil 2017-06-02 19:58:04 UTC

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