Bug 115713 - kmail crash checking mails (on startup)
Summary: kmail crash checking mails (on startup)
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 120048 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-05 03:41 UTC by Mathieu Jobin
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Jobin 2005-11-05 03:41:16 UTC
Version:           unknown (using KDE 3.4.92 (beta2, >= 20051010), Gentoo)
Compiler:          gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)
OS:                Linux (i686) release 2.6.14-gentoojustbudget

fresh linux reinstallation. installed KDE 3.5beta2
recovered my old backup before harddrive crash, was running KDE 3.4 at the time.
so, its like running 3.5 for the first time after having ran 3.4

kmail load up ... kwallet ask for my password.

... kmail crash.

I think i have a decent backtrace here for you.

Using host libthread_db library "/lib/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 10119)]
[KCrash handler]
#5  0xb7cbf0fb in KMFolder::ignoreNewMail (this=0x0) at kmfolder.h:516
#6  0xb7e55641 in KMMainWidget::qt_invoke (this=0x83483d8, _id=0, 
    _o=0x89db870) at kmmainwidget.moc:488
#7  0xb5cf87e6 in QObject::activate_signal (this=0x82d11d0, clist=0x8465198, 
    o=0xbfaf2270) at qobject.cpp:2379
#8  0xb7d439ff in KMail::AccountManager::checkedMail (this=0x82d11d0, 
    t0=true, t1=false, t2=@0x0) at accountmanager.moc:148
#9  0xb7d424b5 in KMail::AccountManager::processNextCheck (this=0x82d11d0, 
    _newMail=192) at accountmanager.cpp:151
#10 0xb7d43d13 in KMail::AccountManager::qt_invoke (this=0x82d11d0, _id=7, 
    _o=0xbfaf24c0) at accountmanager.moc:185
#11 0xb5cf86ac in QObject::activate_signal (this=0x8326ff0, clist=0x8477f08, 
    o=0xbfaf24c0) at qobject.cpp:2355
#12 0xb7cd2ae9 in KMAccount::finishedCheck (this=0x8326ff0, t0=false, 
    t1=CheckOK) at kmaccount.moc:218
#13 0xb7cd4ac7 in KMAccount::checkDone (this=0x8326ff0, newmail=false, 
    status=CheckOK) at kmaccount.cpp:452
#14 0xb7d9af4d in KMAcctImap::killAllJobs (this=0x8326ff0, 
    disconnectSlave=true) at kmacctimap.cpp:179
#15 0xb7d92a8f in KMail::ImapAccountBase::handleError (this=0x8326ff0, 
    errorCode=24, errorMsg=@0x89d9ae0, job=0x0, context=@0xb631e858, 
    abortSync=true) at imapaccountbase.cpp:864
#16 0xb7d9abea in KMAcctImap::handleError (this=0x0, errorCode=0, 
    errorMsg=@0x0, job=0x0, context=@0x0, abortSync=false)
    at kmacctimap.cpp:133
#17 0xb7d90696 in KMail::ImapAccountBase::slotSchedulerSlaveError (
    this=0x8326ff0, aSlave=0x8339870, errorCode=24, errorMsg=@0x89d9ae0)
    at imapaccountbase.cpp:525
#18 0xb7d9572e in KMail::ImapAccountBase::qt_invoke (this=0x8326ff0, 
    _id=-1079039764, _o=0xbfaf28c0) at imapaccountbase.moc:284
#19 0xb7d9d134 in KMAcctImap::qt_invoke (this=0x8326ff0, _id=9, _o=0xbfaf28c0)
    at kmacctimap.moc:123
#20 0xb5cf87e6 in QObject::activate_signal (this=0x82ceb40, clist=0x827ddf8, 
    o=0xbfaf28c0) at qobject.cpp:2379
#21 0xb6af95d3 in KIO::Scheduler::slaveError (this=0x82ceb40, t0=0x0, t1=0, 
    t2=@0x0) at scheduler.moc:153
#22 0xb6af8a56 in KIO::Scheduler::slotSlaveError (this=0x82ceb40, errorNr=0, 
    errorMsg=@0x0) at scheduler.cpp:790
#23 0xb6af9769 in KIO::Scheduler::qt_invoke (this=0x82ceb40, _id=144327008, 
    _o=0xbfaf2a20) at scheduler.moc:164
#24 0xb5cf86ac in QObject::activate_signal (this=0x8339870, clist=0x8339d10, 
    o=0xbfaf2a20) at qobject.cpp:2355
#25 0xb6af1593 in KIO::SlaveInterface::error (this=0x8339870, t0=0, t1=@0x0)
    at slaveinterface.moc:214
#26 0xb6af0290 in KIO::SlaveInterface::dispatch (this=0x8339870, _cmd=102, 
    rawdata=@0xbfaf2cc0) at slaveinterface.cpp:280
#27 0xb6aefa1b in KIO::SlaveInterface::dispatch (this=0x8339870)
    at slaveinterface.cpp:173
#28 0xb6aed701 in KIO::Slave::gotInput (this=0x8339870) at slave.cpp:300
#29 0xb6aef035 in KIO::Slave::qt_invoke (this=0x8339870, _id=4, _o=0xbfaf2e30)
    at slave.moc:113
#30 0xb5cf86ac in QObject::activate_signal (this=0x8338fe8, clist=0x8335a28, 
    o=0xbfaf2e30) at qobject.cpp:2355
#31 0xb5cf8a66 in QObject::activate_signal (this=0x8338fe8, signal=2, 
    param=14) at qobject.cpp:2448
#32 0xb60dc96d in QSocketNotifier::activated (this=0x8338fe8, t0=14)
    at moc_qsocketnotifier.cpp:85
#33 0xb5d1d5f9 in QSocketNotifier::event (this=0x8338fe8, e=0xbfaf3170)
    at qsocketnotifier.cpp:258
#34 0xb5c88235 in QApplication::internalNotify (this=0xbfaf34b0, 
    receiver=0x8338fe8, e=0xbfaf3170) at qapplication.cpp:2635
#35 0xb5c87478 in QApplication::notify (this=0xbfaf34b0, receiver=0x8338fe8, 
    e=0xbfaf3170) at qapplication.cpp:2358
#36 0xb64ead7f in KApplication::notify (this=0xbfaf34b0, receiver=0x8338fe8, 
    event=0xbfaf3170) at kapplication.cpp:550
#37 0xb77c26fb in QApplication::sendEvent (receiver=0x0, event=0x0)
    at qapplication.h:491
#38 0xb5c738bb in QEventLoop::activateSocketNotifiers (this=0x8138198)
    at qeventloop_unix.cpp:578
#39 0xb5c23d41 in QEventLoop::processEvents (this=0x8138198, flags=4)
    at qeventloop_x11.cpp:383
#40 0xb5c9f7d9 in QEventLoop::enterLoop (this=0x8138198) at qeventloop.cpp:198
#41 0xb5c9f6f2 in QEventLoop::exec (this=0x8138198) at qeventloop.cpp:145
#42 0xb5c883d7 in QApplication::exec (this=0xbfaf34b0)
    at qapplication.cpp:2758
#43 0x0804aa6b in main (argc=0, argv=0x0) at main.cpp:110
Comment 1 Mathieu Jobin 2005-11-06 06:40:05 UTC
my kmail reliably crash everytime.....

Using host libthread_db library "/lib/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 10641)]
[KCrash handler]
#5  0xb52d5141 in QGuardedPtr<KMFolder>::operator KMFolder* (this=0x72747067)
    at qguardedptr.h:117
#6  0xb53db894 in KMAcctImap::processNewMail (this=0x850ffe8, 
    interactive=true) at kmacctimap.cpp:315
#7  0xb53828e3 in KMail::AccountManager::processNextCheck (this=0x84dd808, 
    _newMail=144) at accountmanager.cpp:196
#8  0xb5382231 in KMail::AccountManager::singleCheckMail (this=0x84dd808, 
    account=0x850ffe8) at accountmanager.cpp:125
#9  0xb5383202 in KMail::AccountManager::checkMail (this=0x84dd808, 
    _interactive=true) at accountmanager.cpp:312
#10 0xb5499e70 in KMMainWidget::slotCheckMail (this=0x8537328)
    at kmmainwidget.cpp:793
#11 0xb54953a2 in KMMainWidget::qt_invoke (this=0x8537328, _id=49, 
    _o=0xbf9d5920) at kmmainwidget.moc:467
#12 0xb64936ac in QObject::activate_signal (this=0x85c1dd0, clist=0x85c1d60, 
    o=0xbf9d5920) at qobject.cpp:2355
#13 0xb6876b47 in QSignal::signal (this=0x85c1dd0, t0=@0x85c1df8)
    at moc_qsignal.cpp:100
#14 0xb64b556b in QSignal::activate (this=0x85c1dd0) at qsignal.cpp:212
#15 0xb64bf478 in QSingleShotTimer::event (this=0x85c1da8) at qtimer.cpp:286
#16 0xb6423235 in QApplication::internalNotify (this=0xbf9d5f10, 
    receiver=0x85c1da8, e=0xbf9d5c80) at qapplication.cpp:2635
#17 0xb6422478 in QApplication::notify (this=0xbf9d5f10, receiver=0x85c1da8, 
    e=0xbf9d5c80) at qapplication.cpp:2358
#18 0xb6c6cd7f in KApplication::notify (this=0xbf9d5f10, receiver=0x85c1da8, 
    event=0xbf9d5c80) at kapplication.cpp:550
#19 0xb789e6fb in QApplication::sendEvent (receiver=0x72747067, 
    event=0xbf9d5560) at qapplication.h:491
#20 0xb640e75f in QEventLoop::activateTimers (this=0x81552e8)
    at qeventloop_unix.cpp:556
#21 0xb63bed5d in QEventLoop::processEvents (this=0x81552e8, flags=4)
    at qeventloop_x11.cpp:389
#22 0xb643a7d9 in QEventLoop::enterLoop (this=0x81552e8) at qeventloop.cpp:198
#23 0xb643a6f2 in QEventLoop::exec (this=0x81552e8) at qeventloop.cpp:145
#24 0xb64233d7 in QApplication::exec (this=0xbf9d5f10)
    at qapplication.cpp:2758
#25 0x0805c9a0 in main (argc=1920233575, argv=0x72747067) at main.cpp:177
Comment 2 Mathieu Jobin 2005-11-06 06:49:47 UTC
last one I was actually starting kontact, but I figured it was the same bug....
then while kontact was generating this backtrace... kmail told me it detects another instance and ask me If it should be starting another one ...

i figured I should say yes, since I don't have, in fact, a running one.

got this backtrace....


Using host libthread_db library "/lib/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 10687)]
[KCrash handler]
#5  0xb7c246c1 in KMFolder::noContent (this=0x29) at kmfolder.cpp:280
#6  0xb7cac8a2 in KMAcctImap::processNewMail (this=0x8282908, 
    interactive=true) at kmacctimap.cpp:316
#7  0xb7c538e3 in KMail::AccountManager::processNextCheck (this=0x818e5a8, 
    _newMail=false) at accountmanager.cpp:196
#8  0xb7c53231 in KMail::AccountManager::singleCheckMail (this=0x818e5a8, 
    account=0x8282908) at accountmanager.cpp:125
#9  0xb7c54202 in KMail::AccountManager::checkMail (this=0x818e5a8, 
    _interactive=true) at accountmanager.cpp:312
#10 0xb7d6ae70 in KMMainWidget::slotCheckMail (this=0x81b4bc8)
    at kmmainwidget.cpp:793
#11 0xb7d663a2 in KMMainWidget::qt_invoke (this=0x81b4bc8, _id=49, 
    _o=0xbf905f90) at kmmainwidget.moc:467
#12 0xb5c096ac in QObject::activate_signal (this=0x83af2b8, clist=0x83af238, 
    o=0xbf905f90) at qobject.cpp:2355
#13 0xb5fecb47 in QSignal::signal (this=0x83af2b8, t0=@0x83af2e0)
    at moc_qsignal.cpp:100
#14 0xb5c2b56b in QSignal::activate (this=0x83af2b8) at qsignal.cpp:212
#15 0xb5c35478 in QSingleShotTimer::event (this=0x83af290) at qtimer.cpp:286
#16 0xb5b99235 in QApplication::internalNotify (this=0xbf906650, 
    receiver=0x83af290, e=0xbf9062f0) at qapplication.cpp:2635
#17 0xb5b98478 in QApplication::notify (this=0xbf906650, receiver=0x83af290, 
    e=0xbf9062f0) at qapplication.cpp:2358
#18 0xb63fbd7f in KApplication::notify (this=0xbf906650, receiver=0x83af290, 
    event=0xbf9062f0) at kapplication.cpp:550
#19 0xb76d36fb in QApplication::sendEvent (receiver=0x29, event=0xbf905bd0)
    at qapplication.h:491
#20 0xb5b8475f in QEventLoop::activateTimers (this=0x8139430)
    at qeventloop_unix.cpp:556
#21 0xb5b34d5d in QEventLoop::processEvents (this=0x8139430, flags=4)
    at qeventloop_x11.cpp:389
#22 0xb5bb07d9 in QEventLoop::enterLoop (this=0x8139430) at qeventloop.cpp:198
#23 0xb5bb06f2 in QEventLoop::exec (this=0x8139430) at qeventloop.cpp:145
#24 0xb5b993d7 in QApplication::exec (this=0xbf906650)
    at qapplication.cpp:2758
#25 0x0804aa6b in main (argc=41, argv=0x29) at main.cpp:110
Comment 3 Thiago Macieira 2005-12-22 19:39:13 UTC
backtrace from comment #2 is bug 113329.
Comment 4 Mathieu Jobin 2006-01-14 01:22:59 UTC
Using host libthread_db library "/lib/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 11954)]
[KCrash handler]
#5  0xb7c266c1 in KMFolder::noContent (this=0x45890845) at kmfolder.cpp:280
#6  0xb7cae8a2 in KMAcctImap::processNewMail (this=0x8329678, 
    interactive=true) at kmacctimap.cpp:316
#7  0xb7c558e3 in KMail::AccountManager::processNextCheck (this=0x82af390, 
    _newMail=128) at accountmanager.cpp:196
#8  0xb7c55231 in KMail::AccountManager::singleCheckMail (this=0x82af390, 
    account=0x8329678) at accountmanager.cpp:125
#9  0xb7c56202 in KMail::AccountManager::checkMail (this=0x82af390, 
    _interactive=true) at accountmanager.cpp:312
#10 0xb7d6ce70 in KMMainWidget::slotCheckMail (this=0x835d808)
    at kmmainwidget.cpp:793
#11 0xb7d683a2 in KMMainWidget::qt_invoke (this=0x835d808, _id=49, 
    _o=0xbfe08710) at kmmainwidget.moc:467
#12 0xb5c056ac in QObject::activate_signal (this=0x83d2b10, clist=0x83d2a90, 
    o=0xbfe08710) at qobject.cpp:2355
#13 0xb5fe8b47 in QSignal::signal (this=0x83d2b10, t0=@0x83d2b38)
    at moc_qsignal.cpp:100
#14 0xb5c2756b in QSignal::activate (this=0x83d2b10) at qsignal.cpp:212
#15 0xb5c31478 in QSingleShotTimer::event (this=0x83d2ae8) at qtimer.cpp:286
#16 0xb5b95235 in QApplication::internalNotify (this=0xbfe08dd0, 
    receiver=0x83d2ae8, e=0xbfe08a70) at qapplication.cpp:2635
#17 0xb5b94478 in QApplication::notify (this=0xbfe08dd0, receiver=0x83d2ae8, 
    e=0xbfe08a70) at qapplication.cpp:2358
#18 0xb63f8d6f in KApplication::notify (this=0xbfe08dd0, receiver=0x83d2ae8, 
    event=0xbfe08a70) at kapplication.cpp:550
#19 0xb76d3db1 in QApplication::sendEvent (receiver=0x45890845, 
    event=0xbfe08350) at qapplication.h:491
#20 0xb5b8075f in QEventLoop::activateTimers (this=0x81393b8)
    at qeventloop_unix.cpp:556
#21 0xb5b30d5d in QEventLoop::processEvents (this=0x81393b8, flags=4)
    at qeventloop_x11.cpp:389
#22 0xb5bac7d9 in QEventLoop::enterLoop (this=0x81393b8) at qeventloop.cpp:198
#23 0xb5bac6f2 in QEventLoop::exec (this=0x81393b8) at qeventloop.cpp:145
#24 0xb5b953d7 in QApplication::exec (this=0xbfe08dd0)
    at qapplication.cpp:2758
#25 0x0804aa6b in main (argc=1166608453, argv=0x45890845) at main.cpp:110

another beautiful backtrace....

thanks god there is webmail.
Comment 5 Thiago Macieira 2006-01-14 15:17:06 UTC
*** Bug 120048 has been marked as a duplicate of this bug. ***
Comment 6 Stephan Kulow 2007-03-21 10:14:48 UTC
SVN commit 644903 by coolo:

can be 0
BUG: 115713


 M  +1 -1      kmmainwidget.cpp  


--- branches/KDE/3.5/kdepim/kmail/kmmainwidget.cpp #644902:644903
@@ -854,7 +854,7 @@
 
     KMFolder *folder = kmkernel->findFolderById( *it );
 
-    if ( !folder->ignoreNewMail() ) {
+    if ( folder && !folder->ignoreNewMail() ) {
       showNotification = true;
       if ( GlobalSettings::self()->verboseNewMailNotification() ) {
         summary += "<br>" + i18n( "1 new message in %1",