Bug 308207

Summary: Trying to setup a company email over gmail.com
Product: [Frameworks and Libraries] Akonadi Reporter: benjamindadams
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED FIXED    
Severity: crash CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 4.10.1

Description benjamindadams 2012-10-11 00:10:39 UTC
Application: akonadi_imap_resource (4.9)
KDE Platform Version: 4.9.2
Qt Version: 4.8.2
Operating System: Linux 3.5.6-1.fc17.i686 i686
Distribution: "Fedora release 17 (Beefy Miracle)"

-- Information about the crash:
I have a company email (sprymed.com) that uses gmail business services.  when trying to setup with imap gmail server.  Login issue

- Custom settings of the application:

The crash can be reproduced every time.

-- Backtrace:
Application: BenjaminDAdams of type IMAP E-Mail Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[KCrash Handler]
#7  0x00690072 in ?? ()
#8  0x4d49357d in QObject::disconnect (sender=0xa0dae70, signal=0x80ad144 "2stateChanged(KIMAP::Session::State,KIMAP::Session::State)", receiver=0x9e26f40, method=0x80ad100 "1onSessionStateChanged(KIMAP::Session::State,KIMAP::Session::State)") at kernel/qobject.cpp:2891
#9  0x0809a84a in SessionPool::killSession (this=0x9e26f40, session=0xa0dae70, termination=SessionPool::LogoutSession) at /usr/src/debug/kdepim-runtime-4.9.2/resources/imap/sessionpool.cpp:176
#10 0x0809b960 in SessionPool::cancelSessionCreation (this=0x9e26f40, session=0xa0dae70, errorCode=2, errorMessage=...) at /usr/src/debug/kdepim-runtime-4.9.2/resources/imap/sessionpool.cpp:233
#11 0x0809ca3e in SessionPool::onPasswordRequestDone (this=this@entry=0x9e26f40, resultType=1, password=...) at /usr/src/debug/kdepim-runtime-4.9.2/resources/imap/sessionpool.cpp:295
#12 0x0809d34c in SessionPool::qt_static_metacall (_o=0x9e26f40, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbf9dc074) at /usr/src/debug/kdepim-runtime-4.9.2/i686-redhat-linux-gnu/resources/imap/sessionpool.moc:93
#13 0x4d493cde in QMetaObject::activate (sender=0x9dec8b0, m=0x80aab20, local_signal_index=0, argv=0xbf9dc074) at kernel/qobject.cpp:3547
#14 0x08087940 in PasswordRequesterInterface::done (this=0x9dec8b0, _t1=1, _t2=...) at /usr/src/debug/kdepim-runtime-4.9.2/i686-redhat-linux-gnu/resources/imap/passwordrequesterinterface.moc:117
#15 0x080650be in SettingsPasswordRequester::askUserInput (this=0x9dec8b0, serverError=...) at /usr/src/debug/kdepim-runtime-4.9.2/resources/imap/settingspasswordrequester.cpp:66
#16 0x4d48d64b in QMetaCallEvent::placeMetaCall (this=0x9fd8b90, object=0x9dec8b0) at kernel/qobject.cpp:525
#17 0x4d491ca3 in QObject::event (this=0x9dec8b0, e=0x9fd8b90) at kernel/qobject.cpp:1195
#18 0x4c95decc in QApplicationPrivate::notify_helper (this=0x9cf4a68, receiver=0x9dec8b0, e=0x9fd8b90) at kernel/qapplication.cpp:4551
#19 0x4c96298f in QApplication::notify (this=0x9fd8b90, receiver=0x9dec8b0, e=0x9fd8b90) at kernel/qapplication.cpp:3933
#20 0xb7143fe2 in KApplication::notify (this=0xbf9dc924, receiver=0x9dec8b0, event=0x9fd8b90) at /usr/src/debug/kdelibs-4.9.2/kdeui/kernel/kapplication.cpp:311
#21 0x4d47b5ee in QCoreApplication::notifyInternal (this=0xbf9dc924, receiver=0x9dec8b0, event=0x9fd8b90) at kernel/qcoreapplication.cpp:915
#22 0x4d47f595 in sendEvent (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9cd2858) at kernel/qcoreapplication.cpp:1539
#24 0x4d47f81d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1432
#25 0x4d4adb15 in sendPostedEvents () at kernel/qcoreapplication.h:236
#26 postEventSourceDispatch (s=s@entry=0x9cf6aa0) at kernel/qeventdispatcher_glib.cpp:279
#27 0x444720bb in g_main_dispatch (context=0x9cf1968) at gmain.c:2539
#28 g_main_context_dispatch (context=context@entry=0x9cf1968) at gmain.c:3075
#29 0x44472460 in g_main_context_iterate (context=context@entry=0x9cf1968, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3146
#30 0x44472542 in g_main_context_iteration (context=0x9cf1968, may_block=1) at gmain.c:3207
#31 0x4d4adca2 in QEventDispatcherGlib::processEvents (this=0x9cd35b0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#32 0x4ca103eb in QGuiEventDispatcherGlib::processEvents (this=0x9cd35b0, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#33 0x4d47a08d in QEventLoop::processEvents (this=this@entry=0xbf9dc888, flags=...) at kernel/qeventloop.cpp:149
#34 0x4d47a389 in QEventLoop::exec (this=0xbf9dc888, flags=...) at kernel/qeventloop.cpp:204
#35 0x4d47f8cb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#36 0x4c95bd25 in QApplication::exec () at kernel/qapplication.cpp:3812
#37 0x42c9fc62 in Akonadi::ResourceBase::init (r=0x9e0b7d8) at /usr/src/debug/kdepimlibs-4.9.2/akonadi/resourcebase.cpp:451
#38 0x0805ee8d in Akonadi::ResourceBase::init<ImapResource> (argc=argc@entry=3, argv=argv@entry=0xbf9dca04) at /usr/include/kde4/akonadi/resourcebase.h:188
#39 0x080589dc in main (argc=3, argv=0xbf9dca04) at /usr/src/debug/kdepim-runtime-4.9.2/resources/imap/imapresource.cpp:652

Possible duplicates by query: bug 307780, bug 307658, bug 305691, bug 303386, bug 301260.

Reported using DrKonqi
Comment 1 David Faure 2013-02-17 21:02:34 UTC
Git commit d82e4917f7286984bce16c2fa36ea4e9f6a24453 by David Faure.
Committed on 17/02/2013 at 21:54.
Pushed by dfaure into branch 'KDE/4.10'.

Fix crash due to dangling session pointer in m_pendingInitialSession.

This happens after disconnect() kills all sessions (e.g. due to losing
internet connection while the password dialog is up, or explicit toggling
of offline/online status, or due to the "SSL not supported").
Related: bug 312480, bug 310072, bug 308888, bug 288268, bug 312057, bug 309357, bug 312535, bug 311014, bug 309346, bug 307780
FIXED-IN: 4.10.1

M  +1    -0    resources/imap/sessionpool.cpp

http://commits.kde.org/kdepim-runtime/d82e4917f7286984bce16c2fa36ea4e9f6a24453