Bug 297149

Summary: Adding IMAP account crashes Akonadi, acc. cannot be modified after.
Product: [Frameworks and Libraries] Akonadi Reporter: Paul <BTPS>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paul 2012-03-30 21:22:42 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-20-generic-pae i686
Distribution: Ubuntu precise (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
Added a new IMAP account in Akonadi Resources Configuration.
List of accounts then reads "No server configured yet." on the new account.
Clicked Modify, to me it read just like the other accounts in the list, that is everything is filled out correctly.
Clicked ok, crash happened.
Now Akonadi won't let me modify this particular account. Clicking Modify simply does nothing.
Other accounts still seem to work fine and can be modified.

-- Backtrace:
Application: TelekomEmail 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 0xb49ee980 (LWP 29737))]

Thread 2 (Thread 0xb2169b40 (LWP 29740)):
#0  0xb55aec64 in __pthread_mutex_unlock_usercnt (mutex=0xb1800550, decr=1) at pthread_mutex_unlock.c:52
#1  0xb5753634 in pthread_mutex_unlock (mutex=0xb1800550) at forward.c:184
#2  0xb54c4420 in g_mutex_unlock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb5484f5f in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb54851c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb733e067 in QEventDispatcherGlib::processEvents (this=0xb1800468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb7309c8d in QEventLoop::processEvents (this=0xb2169240, flags=...) at kernel/qeventloop.cpp:149
#7  0xb7309f29 in QEventLoop::exec (this=0xb2169240, flags=...) at kernel/qeventloop.cpp:204
#8  0xb71f394c in QThread::exec (this=0x8e11860) at thread/qthread.cpp:501
#9  0xb72e72dd in QInotifyFileSystemWatcherEngine::run (this=0x8e11860) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb71f6de0 in QThreadPrivate::start (arg=0x8e11860) at thread/qthread_unix.cpp:298
#11 0xb55abd4c in start_thread (arg=0xb2169b40) at pthread_create.c:308
#12 0xb5745ace in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb49ee980 (LWP 29737)):
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0xb7323730 in QObject::connect (sender=0x8dd8600, signal=0x80acc64 "2stateChanged(KIMAP::Session::State,KIMAP::Session::State)", receiver=0x8d977b0, method=0x80acc20 "1onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)", type=Qt::AutoConnection) at kernel/qobject.cpp:2551
#9  0x0809b1e8 in SessionPool::onPasswordRequestDone (this=0x8d977b0, resultType=0, password=...) at ../../../resources/imap/sessionpool.cpp:335
#10 0x0809ce10 in SessionPool::qt_static_metacall (_o=0x8d977b0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfed01b4) at ./sessionpool.moc:94
#11 0xb7321e31 in QMetaObject::activate (sender=0x8da8e98, m=0x80aa7e0, local_signal_index=0, argv=0xbfed01b4) at kernel/qobject.cpp:3547
#12 0x0808713f in PasswordRequesterInterface::done (this=0x8da8e98, _t1=0, _t2=...) at ./passwordrequesterinterface.moc:118
#13 0x08064b00 in SettingsPasswordRequester::onPasswordRequestCompleted (this=0x8da8e98, password=..., userRejected=false) at ../../../resources/imap/settingspasswordrequester.cpp:89
#14 0xb7321e31 in QMetaObject::activate (sender=0x8d7e098, m=0x80a3e20, local_signal_index=0, argv=0xbfed02d4) at kernel/qobject.cpp:3547
#15 0x08063587 in Settings::passwordRequestCompleted (this=0x8d7e098, _t1=..., _t2=false) at ./settings.moc:124
#16 0x080635d3 in Settings::requestPassword (this=0x8d7e098) at ../../../resources/imap/settings.cpp:114
#17 0x08099e53 in SessionPool::connect (this=0x8d977b0, account=0x8dceb38) at ../../../resources/imap/sessionpool.cpp:102
#18 0x08059fe9 in ImapResource::startConnect (this=0x8d564f0) at ../../../resources/imap/imapresource.cpp:216
#19 0xb7313ebd in QMetaMethod::invoke (this=0xbfed067c, object=0x8d564f0, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1641
#20 0xb73164cf in QMetaObject::invokeMethod (obj=0x8d564f0, member=0x8dcca60 "startConnect", type=Qt::AutoConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1179
#21 0xb7643d9c in ?? () from /usr/lib/libakonadi-kde.so.4
#22 0xb76450d0 in ?? () from /usr/lib/libakonadi-kde.so.4
#23 0xb731d381 in QMetaCallEvent::placeMetaCall (this=0x93b39d0, object=0x8daad80) at kernel/qobject.cpp:525
#24 0xb73263fb in QObject::event (this=0x8daad80, e=0x93b39d0) at kernel/qobject.cpp:1195
#25 0xb67f8d24 in notify_helper (e=0x93b39d0, receiver=0x8daad80, this=0x8c56b60) at kernel/qapplication.cpp:4555
#26 QApplicationPrivate::notify_helper (this=0x8c56b60, receiver=0x8daad80, e=0x93b39d0) at kernel/qapplication.cpp:4527
#27 0xb67fe15d in QApplication::notify (this=0x93b39d0, receiver=0x8daad80, e=0x93b39d0) at kernel/qapplication.cpp:4284
#28 0xb5dbd801 in KApplication::notify (this=0xbfed1e10, receiver=0x8daad80, event=0x93b39d0) at ../../kdeui/kernel/kapplication.cpp:311
#29 0xb730b0fe in QCoreApplication::notifyInternal (this=0xbfed1e10, receiver=0x8daad80, event=0x93b39d0) at kernel/qcoreapplication.cpp:876
#30 0xb730f258 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8c36af0) at kernel/qcoreapplication.cpp:1500
#32 0xb730f58c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#33 0xb733dc14 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#34 postEventSourceDispatch (s=0x8c5a600) at kernel/qeventdispatcher_glib.cpp:279
#35 0xb5484cda in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#36 0xb54850e5 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#37 0xb54851c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#38 0xb733e007 in QEventDispatcherGlib::processEvents (this=0x8c37838, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#39 0xb68b189a in QGuiEventDispatcherGlib::processEvents (this=0x8c37838, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0xb7309c8d in QEventLoop::processEvents (this=0xbfed1180, flags=...) at kernel/qeventloop.cpp:149
#41 0xb7309f29 in QEventLoop::exec (this=0xbfed1180, flags=...) at kernel/qeventloop.cpp:204
#42 0xb6d4a4d9 in QDialog::exec (this=0x8e2fb88) at dialogs/qdialog.cpp:552
#43 0xb5d129bc in KMessageBox::createKMessageBox (dialog=0x8e2fb88, icon=..., text=..., strlist=..., ask=..., checkboxReturn=0xbfed153f, options=..., details=..., notifyType=QMessageBox::Information) at ../../kdeui/dialogs/kmessagebox.cpp:344
#44 0xb5d131fc in KMessageBox::createKMessageBox (dialog=0x8e2fb88, icon=QMessageBox::Information, text=..., strlist=..., ask=..., checkboxReturn=0xbfed153f, options=..., details=...) at ../../kdeui/dialogs/kmessagebox.cpp:159
#45 0xb5d15af6 in KMessageBox::questionYesNoCancelWId (parent_id=0, text=..., caption=..., buttonYes_=..., buttonNo_=..., buttonCancel_=..., dontAskAgainName=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:548
#46 0x080644f3 in SettingsPasswordRequester::askUserInput (this=0x8da8e98, serverError=...) at ../../../resources/imap/settingspasswordrequester.cpp:61
#47 0xb731d381 in QMetaCallEvent::placeMetaCall (this=0x8e30580, object=0x8da8e98) at kernel/qobject.cpp:525
#48 0xb73263fb in QObject::event (this=0x8da8e98, e=0x8e30580) at kernel/qobject.cpp:1195
#49 0xb67f8d24 in notify_helper (e=0x8e30580, receiver=0x8da8e98, this=0x8c56b60) at kernel/qapplication.cpp:4555
#50 QApplicationPrivate::notify_helper (this=0x8c56b60, receiver=0x8da8e98, e=0x8e30580) at kernel/qapplication.cpp:4527
#51 0xb67fe15d in QApplication::notify (this=0x8e30580, receiver=0x8da8e98, e=0x8e30580) at kernel/qapplication.cpp:4284
#52 0xb5dbd801 in KApplication::notify (this=0xbfed1e10, receiver=0x8da8e98, event=0x8e30580) at ../../kdeui/kernel/kapplication.cpp:311
#53 0xb730b0fe in QCoreApplication::notifyInternal (this=0xbfed1e10, receiver=0x8da8e98, event=0x8e30580) at kernel/qcoreapplication.cpp:876
#54 0xb730f258 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#55 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8c36af0) at kernel/qcoreapplication.cpp:1500
#56 0xb730f58c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#57 0xb733dc14 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#58 postEventSourceDispatch (s=0x8c5a600) at kernel/qeventdispatcher_glib.cpp:279
#59 0xb5484cda in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#60 0xb54850e5 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#61 0xb54851c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#62 0xb733e007 in QEventDispatcherGlib::processEvents (this=0x8c37838, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#63 0xb68b189a in QGuiEventDispatcherGlib::processEvents (this=0x8c37838, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#64 0xb7309c8d in QEventLoop::processEvents (this=0xbfed1d74, flags=...) at kernel/qeventloop.cpp:149
#65 0xb7309f29 in QEventLoop::exec (this=0xbfed1d74, flags=...) at kernel/qeventloop.cpp:204
#66 0xb730f63a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#67 0xb67f68c4 in QApplication::exec () at kernel/qapplication.cpp:3816
#68 0xb7635aa1 in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () from /usr/lib/libakonadi-kde.so.4
#69 0x0805e3e7 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbfed1ee4) at /usr/include/akonadi/resourcebase.h:188
#70 0x080586ab in main (argc=3, argv=0xbfed1ee4) at ../../../resources/imap/imapresource.cpp:607

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

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

Reported using DrKonqi
Comment 1 Christophe Marin 2012-03-31 13:37:55 UTC

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