Bug 315042

Summary: 2nd modication of imap account causes crash
Product: [Frameworks and Libraries] Akonadi Reporter: stringchopper
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description stringchopper 2013-02-13 08:55:52 UTC
Application: akonadi_imap_resource (4.9)
KDE Platform Version: 4.9.4
Qt Version: 4.8.3
Operating System: Linux 3.5.0-23-generic i686
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed: I set up a new imap account, clicked ok, but the main Accounts window showed a red X and "No server configured yet", so I clicked Modify.  I did not notice until later that there was a popup window in the background stating that the new Account couldn't connect to the server, and asking if I wanted to try again or modify settings - so this popup box was ignored when I clicked Modify from the main accounts window.  
When modifying the account again, the only thing I did was auto-check the security settings for the imap server.  The defaults came back for TLS with a certain port number (forget which number), but I wanted to use SSL and 993, so I changed that and hit ok, and that's when I got the crash notice.

-- Backtrace:
Application: ARCO_imap of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb497c740 (LWP 2433))]

Thread 2 (Thread 0xb21ffb40 (LWP 2436)):
#0  __pthread_mutex_lock (mutex=0xb1800550) at pthread_mutex_lock.c:51
#1  0xb56f5864 in pthread_mutex_lock (mutex=0xb1800550) at forward.c:182
#2  0xb545fed0 in g_mutex_lock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb541e8be in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb541ed80 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb541ee61 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0xb72bb99f in QEventDispatcherGlib::processEvents (this=0xb1800468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0xb728826c in QEventLoop::processEvents (this=this@entry=0xb21ff228, flags=...) at kernel/qeventloop.cpp:149
#8  0xb7288561 in QEventLoop::exec (this=0xb21ff228, flags=...) at kernel/qeventloop.cpp:204
#9  0xb717366c in QThread::exec (this=0x8fe38b0) at thread/qthread.cpp:501
#10 0xb72667bd in QInotifyFileSystemWatcherEngine::run (this=0x8fe38b0) at io/qfilesystemwatcher_inotify.cpp:248
#11 0xb7176a58 in QThreadPrivate::start (arg=0x8fe38b0) at thread/qthread_unix.cpp:338
#12 0xb554cd4c in start_thread (arg=0xb21ffb40) at pthread_create.c:308
#13 0xb56e7d3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb497c740 (LWP 2433)):
[KCrash Handler]
#6  0xb72a49c8 in QObject::connect (sender=0x92ad588, signal=0x80ac6c4 "2stateChanged(KIMAP::Session::State,KIMAP::Session::State)", receiver=0x8fca2f8, method=0x80ac680 "1onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)", type=Qt::AutoConnection) at kernel/qobject.cpp:2551
#7  0x0809c178 in SessionPool::onPasswordRequestDone (this=this@entry=0x8fca2f8, resultType=0, password=...) at ../../../resources/imap/sessionpool.cpp:335
#8  0x0809cbdc in SessionPool::qt_static_metacall (_o=0x8fca2f8, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfa497e4) at ./sessionpool.moc:94
#9  0xb72a1ed6 in QMetaObject::activate (sender=0x8ffa110, m=0x80aa160 <PasswordRequesterInterface::staticMetaObject>, local_signal_index=0, argv=0xbfa497e4) at kernel/qobject.cpp:3547
#10 0x0808753f in PasswordRequesterInterface::done (this=0x8ffa110, _t1=0, _t2=...) at ./passwordrequesterinterface.moc:118
#11 0x0806541f in SettingsPasswordRequester::onPasswordRequestCompleted (this=0x8ffa110, password=..., userRejected=false) at ../../../resources/imap/settingspasswordrequester.cpp:89
#12 0xb72a1ed6 in QMetaObject::activate (sender=0x8fc4548, m=0x80a36c0 <Settings::staticMetaObject>, local_signal_index=0, argv=0xbfa49914) at kernel/qobject.cpp:3547
#13 0x08063f37 in Settings::passwordRequestCompleted (this=this@entry=0x8fc4548, _t1=..., _t2=_t2@entry=false) at ./settings.moc:124
#14 0x08063f83 in Settings::requestPassword (this=0x8fc4548) at ../../../resources/imap/settings.cpp:114
#15 0x08099d34 in SessionPool::connect (this=0x8fca2f8, account=0x90959b8) at ../../../resources/imap/sessionpool.cpp:102
#16 0x0805a399 in ImapResource::startConnect (this=this@entry=0x8fe1368) at ../../../resources/imap/imapresource.cpp:218
#17 0x0805e767 in ImapResource::qt_static_metacall (_o=0x8fe1368, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfa49b84) at ./imapresource.moc:113
#18 0xb729260d in QMetaMethod::invoke (this=0xbfa49cb4, object=0x8fe1368, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1664
#19 0xb7294c89 in QMetaObject::invokeMethod (obj=0x8fe1368, member=0x92919f0 "startConnect", type=Qt::AutoConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1179
#20 0xb75be4f3 in ?? () from /usr/lib/libakonadi-kde.so.4
#21 0xb75beedc in ?? () from /usr/lib/libakonadi-kde.so.4
#22 0xb729b9aa in QMetaCallEvent::placeMetaCall (this=0x90a4810, object=0x8ffecb8) at kernel/qobject.cpp:525
#23 0xb729feeb in QObject::event (this=0x8ffecb8, e=0x90a4810) at kernel/qobject.cpp:1195
#24 0xb677a39c in QApplicationPrivate::notify_helper (this=0x8e9cbb0, receiver=0x8ffecb8, e=0x90a4810) at kernel/qapplication.cpp:4562
#25 0xb677edaf in QApplication::notify (this=0x90a4810, receiver=0x8ffecb8, e=0x90a4810) at kernel/qapplication.cpp:3944
#26 0xb5d52e91 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#27 0xb728978e in QCoreApplication::notifyInternal (this=0xbfa4b344, receiver=0x8ffecb8, event=0x90a4810) at kernel/qcoreapplication.cpp:915
#28 0xb728d97d in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#29 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8e70af0) at kernel/qcoreapplication.cpp:1539
#30 0xb728dc0c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1432
#31 0xb72bb804 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#32 postEventSourceDispatch (s=0x8e93f80) at kernel/qeventdispatcher_glib.cpp:279
#33 0xb541e9e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#34 0xb541ed80 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#35 0xb541ee61 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#36 0xb72bb981 in QEventDispatcherGlib::processEvents (this=0x8e71838, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#37 0xb68309aa in QGuiEventDispatcherGlib::processEvents (this=0x8e71838, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0xb728826c in QEventLoop::processEvents (this=this@entry=0xbfa4a7b8, flags=...) at kernel/qeventloop.cpp:149
#39 0xb7288561 in QEventLoop::exec (this=0xbfa4a7b8, flags=...) at kernel/qeventloop.cpp:204
#40 0xb6cb8d2d in QDialog::exec (this=0x90a39f8) at dialogs/qdialog.cpp:554
#41 0xb5cb22ac in KMessageBox::createKMessageBox(KDialog*, QIcon const&, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&, QMessageBox::Icon) () from /usr/lib/libkdeui.so.5
#42 0xb5cb28b4 in KMessageBox::createKMessageBox(KDialog*, QMessageBox::Icon, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&) () from /usr/lib/libkdeui.so.5
#43 0xb5cb4b6c in KMessageBox::questionYesNoCancelWId(unsigned long, QString const&, QString const&, KGuiItem const&, KGuiItem const&, KGuiItem const&, QString const&, QFlags<KMessageBox::Option>) () from /usr/lib/libkdeui.so.5
#44 0x08064e89 in SettingsPasswordRequester::askUserInput (this=0x8ffa110, serverError=...) at ../../../resources/imap/settingspasswordrequester.cpp:61
#45 0xb729b9aa in QMetaCallEvent::placeMetaCall (this=0x9062130, object=0x8ffa110) at kernel/qobject.cpp:525
#46 0xb729feeb in QObject::event (this=0x8ffa110, e=0x9062130) at kernel/qobject.cpp:1195
#47 0xb677a39c in QApplicationPrivate::notify_helper (this=0x8e9cbb0, receiver=0x8ffa110, e=0x9062130) at kernel/qapplication.cpp:4562
#48 0xb677edaf in QApplication::notify (this=0x9062130, receiver=0x8ffa110, e=0x9062130) at kernel/qapplication.cpp:3944
#49 0xb5d52e91 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#50 0xb728978e in QCoreApplication::notifyInternal (this=0xbfa4b344, receiver=0x8ffa110, event=0x9062130) at kernel/qcoreapplication.cpp:915
#51 0xb728d97d in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#52 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8e70af0) at kernel/qcoreapplication.cpp:1539
#53 0xb728dc0c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1432
#54 0xb72bb804 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#55 postEventSourceDispatch (s=0x8e93f80) at kernel/qeventdispatcher_glib.cpp:279
#56 0xb541e9e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#57 0xb541ed80 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#58 0xb541ee61 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#59 0xb72bb981 in QEventDispatcherGlib::processEvents (this=0x8e71838, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#60 0xb68309aa in QGuiEventDispatcherGlib::processEvents (this=0x8e71838, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#61 0xb728826c in QEventLoop::processEvents (this=this@entry=0xbfa4b2a8, flags=...) at kernel/qeventloop.cpp:149
#62 0xb7288561 in QEventLoop::exec (this=0xbfa4b2a8, flags=...) at kernel/qeventloop.cpp:204
#63 0xb728dcba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#64 0xb6777fc4 in QApplication::exec () at kernel/qapplication.cpp:3823
#65 0xb75ae921 in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib/libakonadi-kde.so.4
#66 0x0805ee9b in Akonadi::ResourceBase::init<ImapResource> (argc=argc@entry=3, argv=argv@entry=0xbfa4b424) at /usr/include/akonadi/resourcebase.h:188
#67 0x08058a3b in main (argc=3, argv=0xbfa4b424) at ../../../resources/imap/imapresource.cpp:654

Possible duplicates by query: bug 314203, bug 312610, bug 311489, bug 310990, bug 310986.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-02-26 03:23:49 UTC

*** This bug has been marked as a duplicate of bug 301284 ***
Comment 2 Jekyll Wu 2013-02-26 03:27:41 UTC

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