Bug 168662 - Crash when checking IMAP account in makeConnection()
Summary: Crash when checking IMAP account in makeConnection()
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Unmaintained
Component: IMAP (show other bugs)
Version: 1.10.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
: 168909 185141 195222 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-07 21:25 UTC by Oliver Putz
Modified: 2009-06-04 18:01 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Putz 2008-08-07 21:25:39 UTC
Version:           1.10.0 (using 4.1.00 (KDE 4.1.0), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.25-gentoo-r7

All of a sudden (I did not even know that I had kmail open any longer) I recieved a not that kmail crashed. Several minutes before I had clicked on a mailto link which brought up kmail. However, I closed that window. So maybe due to that kmail was still running in the background somehow. Anyway, my backtrace is:

Application: KMail (kmail), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb4417720 (LWP 5833)]
[KCrash handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb4d35b91 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#8  0xb4d37378 in *__GI_abort () at abort.c:88
#9  0xb6072097 in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbf8f1d4c "ASSERT: \"!isEmpty()\" in file /usr/include/qt4/QtCore/qlist.h, line 252") at global/qglobal.cpp:2058
#10 0xb607214f in qFatal (msg=0xb61c5ab4 "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2260
#11 0xb60725cb in qt_assert (assertion=0xb7e84cd2 "!isEmpty()", 
    file=0xb7e8444c "/usr/include/qt4/QtCore/qlist.h", line=252)
    at global/qglobal.cpp:1828
#12 0xb7c134b7 in QList<KMainWindow*>::first (this=0xbf8f3de8)
    at /usr/include/qt4/QtCore/qlist.h:252
#13 0xb7cb0386 in KMKernel::mainWin (this=0xbf8f49cc)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail-4.1.0/kmail/kmkernel.cpp:2056
#14 0xb7c5aef7 in KMail::ImapAccountBase::makeConnection (this=0x824b590)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail-4.1.0/kmail/imapaccountbase.cpp:317
#15 0xb7c622d3 in KMAcctImap::makeConnection (this=0x0)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail-4.1.0/kmail/kmacctimap.cpp:561
#16 0xb7c6326f in KMAcctImap::processNewMail (this=0x824b590, 
    interactive=false)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail-4.1.0/kmail/kmacctimap.cpp:278
#17 0xb7c04a67 in KMail::AccountManager::processNextCheck (this=0x80d79f0, 
    _newMail=false)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail-4.1.0/kmail/accountmanager.cpp:216
#18 0xb7c04c14 in KMail::AccountManager::singleCheckMail (this=0x80d79f0, 
    account=0x824b590, interactive=false)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail-4.1.0/kmail/accountmanager.cpp:143
#19 0xb7b7c45d in KMAccount::mailCheck (this=0x824b590)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail-4.1.0/kmail/kmaccount.cpp:431
#20 0xb7b7e7df in KMAccount::qt_metacall (this=0x824b590, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf8f4258)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail_build/kmail/kmaccount.moc:144
#21 0xb7c51010 in KMail::NetworkAccount::qt_metacall (this=0x824b590, 
    _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf8f4258)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail_build/kmail/networkaccount.moc:57
#22 0xb7c5c248 in KMail::ImapAccountBase::qt_metacall (this=0x824b590, 
    _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf8f4258)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail_build/kmail/imapaccountbase.moc:112
#23 0xb7c63148 in KMAcctImap::qt_metacall (this=0x824b590, 
    _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf8f4258)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail_build/kmail/kmacctimap.moc:76
#24 0xb6185530 in QMetaObject::activate (sender=0x8259988, 
    from_signal_index=<value optimized out>, to_signal_index=4, 
    argv=<value optimized out>) at kernel/qobject.cpp:3001
#25 0xb6185c92 in QMetaObject::activate (sender=0x8259988, m=0xb625b924, 
    local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3071
#26 0xb61c4e8d in QTimer::timeout (this=0x8259988)
    at .moc/debug-shared/moc_qtimer.cpp:126
#27 0xb618e19a in QTimer::timerEvent (this=0x8259988, e=0xbf8f4758)
    at kernel/qtimer.cpp:263
#28 0xb6181296 in QObject::event (this=0x8259988, e=0xbf8f4758)
    at kernel/qobject.cpp:1096
#29 0xb50ba8a4 in QApplicationPrivate::notify_helper (this=0x8066380, 
    receiver=0x8259988, e=0xbf8f4758) at kernel/qapplication.cpp:3772
#30 0xb50bea75 in QApplication::notify (this=0xbf8f4a78, receiver=0x8259988, 
    e=0xbf8f4758) at kernel/qapplication.cpp:3366
#31 0xb68016c3 in KApplication::notify (this=0xbf8f4a78, receiver=0x8259988, 
    event=0xbf8f4758)
    at /var/tmp/portage/kde-base/kdelibs-4.1.0/work/kdelibs-4.1.0/kdeui/kernel/kapplication.cpp:311
#32 0xb616fd59 in QCoreApplication::notifyInternal (this=0xbf8f4a78, 
    receiver=0x8259988, event=0xbf8f4758) at kernel/qcoreapplication.cpp:587
#33 0xb619d85a in QTimerInfoList::activateTimers (this=0x8066ae4)
    at kernel/qcoreapplication.h:215
#34 0xb619d9d0 in QEventDispatcherUNIX::activateTimers (this=0x8064d40)
    at kernel/qeventdispatcher_unix.cpp:837
#35 0xb619ef7e in QEventDispatcherUNIX::processEvents (this=0x8064d40, 
    flags=@0xbf8f48d8) at kernel/qeventdispatcher_unix.cpp:899
#36 0xb514af61 in QEventDispatcherX11::processEvents (this=0x8064d40, 
    flags=@0xbf8f4908) at kernel/qeventdispatcher_x11.cpp:154
#37 0xb616f0d3 in QEventLoop::processEvents (this=0xbf8f4980, 
    flags=@0xbf8f4948) at kernel/qeventloop.cpp:149
#38 0xb616f246 in QEventLoop::exec (this=0xbf8f4980, flags=@0xbf8f4988)
    at kernel/qeventloop.cpp:200
#39 0xb6171401 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#40 0xb50ba23f in QApplication::exec () at kernel/qapplication.cpp:3304
#41 0x0804b11f in main (argc=)
    at /var/tmp/portage/kde-base/kmail-4.1.0/work/kmail-4.1.0/kmail/main.cpp:146
#0  0xffffe424 in __kernel_vsyscall ()
Comment 1 Oliver Putz 2008-08-07 21:31:32 UTC
It just happened again and I indeed still have a running kmail process. So I guess this kmail process is regularly looking for new mail in the background. A further remark: kmail just crashes, I don't get asked for a password to actually access the mail server... [if the regular mail checking theory is correct this might be helpful]
Comment 2 Thomas McGuire 2008-08-20 17:28:30 UTC
*** Bug 168909 has been marked as a duplicate of this bug. ***
Comment 3 FiNeX 2008-12-30 11:18:12 UTC
I've just experienced this bug on r902024: 
1) started kmail
2) asked for the IMAP password but I've entered it wrong
3) CTRL+L for checking new mail
-> crash.

I cannot reproduce the crash anymore, anyway the backtrace looks similar:



Application: KMail (kmail), signal SIGABRT
0x00007fd24d04afd0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7fd253029750 (LWP 2739)):
[KCrash Handler]
#5  0x00007fd24cfde0c5 in raise () from /lib/libc.so.6
#6  0x00007fd24cfdf5e3 in abort () from /lib/libc.so.6
#7  0x00007fd24ec5d0a5 in qt_message_output () from /usr/lib/libQtCore.so.4
#8  0x00007fd24ec5d1c7 in qFatal () from /usr/lib/libQtCore.so.4
#9  0x00007fd251d45817 in KMail::ImapAccountBase::makeConnection (this=0xdaf150) at /home/test/KDE4/src/kdepim/kmail/imapaccountbase.cpp:304
#10 0x00007fd251d56db8 in KMAcctImap::processNewMail (this=0xab3, interactive=179) at /home/test/KDE4/src/kdepim/kmail/kmacctimap.cpp:278
#11 0x00007fd251cdae57 in KMail::AccountManager::processNextCheck (this=0xef2690, _newMail=<value optimized out>) at /home/test/KDE4/src/kdepim/kmail/accountmanager.cpp:221
#12 0x00007fd251cdbfbf in KMail::AccountManager::qt_metacall (this=0xef2690, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5b17bb30)
    at /home/test/KDE4/src/build/kdepim/kmail/accountmanager.moc:95
#13 0x00007fd24ed46d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#14 0x00007fd251c4fcfd in KMAccount::finishedCheck (this=0xab3, _t1=false, _t2=KMAccount::CheckOK) at /home/test/KDE4/src/build/kdepim/kmail/kmaccount.moc:158
#15 0x00007fd251c50621 in KMAccount::checkDone (this=0xdaf150, newmail=179, status=KMAccount::CheckOK) at /home/test/KDE4/src/kdepim/kmail/kmaccount.cpp:511
#16 0x00007fd251d554f1 in KMAcctImap::killAllJobs (this=0xdaf150, disconnectSlave=true) at /home/test/KDE4/src/kdepim/kmail/kmacctimap.cpp:198
#17 0x00007fd251d4cff9 in KMail::ImapAccountBase::handleError (this=0xdaf150, errorCode=146, errorMsg=@0x7fff5b17c430, job=0x0, context=@0x7fff5b17bf30, abortSync=true)
    at /home/test/KDE4/src/kdepim/kmail/imapaccountbase.cpp:1015
#18 0x00007fd251d46767 in KMail::ImapAccountBase::slotSchedulerSlaveError (this=0xab3, aSlave=<value optimized out>, errorCode=146, errorMsg=@0x7fff5b17c430)
    at /home/test/KDE4/src/kdepim/kmail/imapaccountbase.cpp:630
#19 0x00007fd251d509be in KMail::ImapAccountBase::qt_metacall (this=0xdaf150, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5b17c0b0)
    at /home/test/KDE4/src/build/kdepim/kmail/imapaccountbase.moc:129
#20 0x00007fd251d56c85 in KMAcctImap::qt_metacall (this=0xab3, _c=2739, _id=6, _a=0xffffffffffffffff) at /home/test/KDE4/src/build/kdepim/kmail/kmacctimap.moc:76
#21 0x00007fd24ed46d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0x00007fd24f639b05 in KIO::Scheduler::slaveError (this=0xab3, _t1=0x1339540, _t2=146, _t3=<value optimized out>) at /home/test/KDE4/src/build/kdelibs/kio/scheduler.moc:124
#23 0x00007fd24f640413 in KIO::Scheduler::qt_metacall (this=0xfb0370, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at /home/test/KDE4/src/build/kdelibs/kio/scheduler.moc:104
#24 0x00007fd24ed46d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#25 0x00007fd24f654456 in KIO::SlaveInterface::error (this=0xab3, _t1=146, _t2=<value optimized out>) at /home/test/KDE4/src/build/kdelibs/kio/slaveinterface.moc:151
#26 0x00007fd24f657d79 in KIO::SlaveInterface::dispatch (this=0x1339540, _cmd=102, rawdata=<value optimized out>) at /home/test/KDE4/src/kdelibs/kio/kio/slaveinterface.cpp:208
#27 0x00007fd24f654758 in KIO::SlaveInterface::dispatch (this=0x1339540) at /home/test/KDE4/src/kdelibs/kio/kio/slaveinterface.cpp:91
#28 0x00007fd24f646923 in KIO::Slave::gotInput (this=0x1339540) at /home/test/KDE4/src/kdelibs/kio/kio/slave.cpp:322
#29 0x00007fd24f647958 in KIO::Slave::qt_metacall (this=0x1339540, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff5b17c5f0) at /home/test/KDE4/src/build/kdelibs/kio/slave.moc:75
#30 0x00007fd24ed46d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#31 0x00007fd24f5605c0 in KIO::ConnectionPrivate::dequeue (this=0xd89300) at /home/test/KDE4/src/kdelibs/kio/kio/connection.cpp:82
#32 0x00007fd24f5606fa in KIO::Connection::qt_metacall (this=0xbd0ed0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x146d300) at /home/test/KDE4/src/build/kdelibs/kio/connection.moc:72
#33 0x00007fd24ed42f9e in QObject::event () from /usr/lib/libQtCore.so.4
#34 0x00007fd24dc3c4dd in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#35 0x00007fd24dc4286a in QApplication::notify () from /usr/lib/libQtGui.so.4
#36 0x00007fd252b676bb in KApplication::notify (this=0x7fff5b17d150, receiver=0xbd0ed0, event=0x14494f0) at /home/test/KDE4/src/kdelibs/kdeui/kernel/kapplication.cpp:307
#37 0x00007fd24ed353d1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#38 0x00007fd24ed35db8 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#39 0x00007fd24ed59c03 in ?? () from /usr/lib/libQtCore.so.4
#40 0x00007fd244548aa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#41 0x00007fd24454c21d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#42 0x00007fd24454c3db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#43 0x00007fd24ed5989f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#44 0x00007fd24dcbcfff in ?? () from /usr/lib/libQtGui.so.4
#45 0x00007fd24ed33d42 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#46 0x00007fd24ed33ed5 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#47 0x00007fd24ed36025 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#48 0x000000000040310b in main (argc=<value optimized out>, argv=<value optimized out>) at /home/test/KDE4/src/kdepim/kmail/main.cpp:146

Comment 4 Jaime Torres 2009-02-21 23:57:34 UTC
*** Bug 185141 has been marked as a duplicate of this bug. ***
Comment 5 kirrus 2009-02-22 00:43:57 UTC
A report has been posted on launchpad. More details on the dup bug above, or on the LP bug report here:
https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/289790
Comment 6 Ruchir Brahmbhatt 2009-04-09 13:46:06 UTC
Can not reproduce following steps mentioned by Oliver or Finex. No crashes on 1.11.2.
Comment 7 Dario Andres 2009-04-28 20:02:15 UTC
Bug 190920 seems to be related to this on KDE4.2.2. It has some information about the possible cause.
Comment 8 Dario Andres 2009-06-04 18:01:30 UTC
*** Bug 195222 has been marked as a duplicate of this bug. ***