Bug 249824

Summary: kmail crashes when account dissapears during update
Product: [Unmaintained] kmail Reporter: Eugeni Dodonov <eugeni>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: emailme, kde, montel, peter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eugeni Dodonov 2010-09-02 04:34:03 UTC
Application: kmail (1.13.5)
KDE Platform Version: 4.5.65 (KDE 4.5.65 (KDE 4.6 >= 20100819))
Qt Version: 4.7.0
Operating System: Linux 2.6.35.4-desktop-1mnb x86_64
Distribution: "Mandriva Linux 2010.1"

-- Information about the crash:
- What I was doing when the application crashed:

(I know that this is not a common scenario, but it could be handled more gracefully)

If account dissapears while kmail tries to update it, it leads to the following crash.

How reproducible:
- Add a new IMAP account
- Start the syncronization process
- Wait a bit
- Go to Tools->Kmail settings, and remove the account
- Click Apply

I understand that this is not a common scenario, but I guess it could be handled more nicely than with a crash :).

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7f1b883f5720 (LWP 16629))]

Thread 2 (Thread 0x7f1b65558710 (LWP 17200)):
#0  0x00007f1b8538ccf3 in select () from /lib64/libc.so.6
#1  0x00007f1b85c7cabd in QProcessManager::run (this=0x7f1b85fcff60) at io/qprocess_unix.cpp:245
#2  0x00007f1b85bb368e in QThreadPrivate::start (arg=0x7f1b85fcff60) at thread/qthread_unix.cpp:266
#3  0x00007f1b839f3a5d in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1b8539415d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1b883f5720 (LWP 16629)):
[KCrash Handler]
#6  0x00007f1b852ea925 in raise () from /lib64/libc.so.6
#7  0x00007f1b852ebf40 in abort () from /lib64/libc.so.6
#8  0x00007f1b852e3871 in __assert_fail () from /lib64/libc.so.6
#9  0x00007f1b86ec8d71 in KMFolderMbox::addMsg (this=0x2699160, aMsg=0x2829e50, aIndex_ret=0x0) at /usr/src/debug/kdepim-4.4.5/kmail/kmfoldermbox.cpp:1059
#10 0x00007f1b86ed554d in KMFolderImap::slotGetMessagesData (this=0x2699160, job=<value optimized out>, data=<value optimized out>) at /usr/src/debug/kdepim-4.4.5/kmail/kmfolderimap.cpp:1669
#11 0x00007f1b86eda08f in KMFolderImap::qt_metacall (this=0x2699160, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5f225a20)
    at /usr/src/debug/kdepim-4.4.5/build/kmail/kmfolderimap.moc:192
#12 0x00007f1b85cb0fbf in QMetaObject::activate (sender=0x29c8750, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff5f225a20) at kernel/qobject.cpp:3272
#13 0x00007f1b825af994 in KIO::TransferJob::data (this=<value optimized out>, _t1=0x29c8750, _t2=<value optimized out>) at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/jobclasses.moc:388
#14 0x00007f1b825afae6 in KIO::TransferJob::slotData (this=0x29c8750, _data=...) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/job.cpp:1003
#15 0x00007f1b825b5c69 in KIO::TransferJob::qt_metacall (this=0x29c8750, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fff5f225be0)
    at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/jobclasses.moc:368
#16 0x00007f1b85cb0fbf in QMetaObject::activate (sender=0x26ecca0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff5f225be0) at kernel/qobject.cpp:3272
#17 0x00007f1b8263ec32 in KIO::SlaveInterface::data (this=<value optimized out>, _t1=<value optimized out>) at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/slaveinterface.moc:146
#18 0x00007f1b82640640 in KIO::SlaveInterface::dispatch (this=<value optimized out>, _cmd=100, rawdata=...) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/slaveinterface.cpp:163
#19 0x00007f1b8263e782 in KIO::SlaveInterface::dispatch (this=0x26ecca0) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/slaveinterface.cpp:91
#20 0x00007f1b826358aa in KIO::Slave::gotInput (this=0x26ecca0) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/slave.cpp:344
#21 0x00007f1b82635dec in KIO::Slave::qt_metacall (this=0x26ecca0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5f225f40)
    at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/slave.moc:82
#22 0x00007f1b85cb0fbf in QMetaObject::activate (sender=0x2bb61b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3272
#23 0x00007f1b82589024 in KIO::ConnectionPrivate::dequeue (this=0x24ae2c0) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/connection.cpp:82
#24 0x00007f1b825890ad in KIO::Connection::qt_metacall (this=0x2bb61b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x2b3ec90)
    at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/connection.moc:79
#25 0x00007f1b85cb0aba in QObject::event (this=0x2bb61b0, e=<value optimized out>) at kernel/qobject.cpp:1211
#26 0x00007f1b861856e4 in QApplicationPrivate::notify_helper (this=0x1cd1c30, receiver=0x2bb61b0, e=0x24b3670) at kernel/qapplication.cpp:4396
#27 0x00007f1b8618a15a in QApplication::notify (this=<value optimized out>, receiver=0x2bb61b0, e=0x24b3670) at kernel/qapplication.cpp:4277
#28 0x00007f1b87dc9bc6 in KApplication::notify (this=0x7fff5f2288e0, receiver=0x2bb61b0, event=0x24b3670) at /usr/src/debug/kdelibs-4.5.65svn1165394/kdeui/kernel/kapplication.cpp:310
#29 0x00007f1b85c9c73c in QCoreApplication::notifyInternal (this=0x7fff5f2288e0, receiver=0x2bb61b0, event=0x24b3670) at kernel/qcoreapplication.cpp:732
#30 0x00007f1b85c9fee5 in sendEvent (receiver=0x0, event_type=0, data=0x1c84fa0) at kernel/qcoreapplication.h:215
#31 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1c84fa0) at kernel/qcoreapplication.cpp:1373
#32 0x00007f1b85cc76c3 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#33 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#34 0x00007f1b7d1813d3 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#35 0x00007f1b7d181bb0 in ?? () from /usr/lib64/libglib-2.0.so.0
#36 0x00007f1b7d181e4d in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#37 0x00007f1b85cc785f in QEventDispatcherGlib::processEvents (this=0x1cbcf90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#38 0x00007f1b8622974e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f1b85c9bad2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007f1b85c9bd1c in QEventLoop::exec (this=0x7fff5f226980, flags=...) at kernel/qeventloop.cpp:201
#41 0x00007f1b86637f8e in QDialog::exec (this=0x1eb2cd0) at dialogs/qdialog.cpp:552
#42 0x00007f1b87d495aa in KMessageBox::createKMessageBox (dialog=0x1eb2cd0, icon=<value optimized out>, text=..., strlist=..., ask=..., checkboxReturn=0x0, options=..., details=..., notifyType=
    QMessageBox::Warning) at /usr/src/debug/kdelibs-4.5.65svn1165394/kdeui/dialogs/kmessagebox.cpp:337
#43 0x00007f1b87d499ae in KMessageBox::createKMessageBox (dialog=0x1eb2cd0, icon=QMessageBox::Warning, text=..., strlist=..., ask=<value optimized out>, checkboxReturn=<value optimized out>, options=
    ..., details=...) at /usr/src/debug/kdelibs-4.5.65svn1165394/kdeui/dialogs/kmessagebox.cpp:152
#44 0x00007f1b87d49eba in KMessageBox::sorryWId (parent_id=<value optimized out>, text=..., caption=<value optimized out>, options=<value optimized out>)
    at /usr/src/debug/kdelibs-4.5.65svn1165394/kdeui/dialogs/kmessagebox.cpp:921
#45 0x00007f1b87d49f3c in KMessageBox::sorry (parent=0x0, text=..., caption=..., options=<value optimized out>) at /usr/src/debug/kdelibs-4.5.65svn1165394/kdeui/dialogs/kmessagebox.cpp:900
#46 0x00007f1b86ecd46d in KMFolderMbox::open (this=0x2699160, owner=<value optimized out>) at /usr/src/debug/kdepim-4.4.5/kmail/kmfoldermbox.cpp:131
#47 0x00007f1b86df0b60 in KMFolderOpener::KMFolderOpener (this=0x7fff5f227290, folder=0x40f5, owner=0x6 <Address 0x6 out of bounds>) at /usr/src/debug/kdepim-4.4.5/kmail/kmfolder.h:765
#48 0x00007f1b86ec8a94 in KMFolderMbox::addMsg (this=0x2699160, aMsg=0x2e851d0, aIndex_ret=0x0) at /usr/src/debug/kdepim-4.4.5/kmail/kmfoldermbox.cpp:1011
#49 0x00007f1b86ed554d in KMFolderImap::slotGetMessagesData (this=0x2699160, job=<value optimized out>, data=<value optimized out>) at /usr/src/debug/kdepim-4.4.5/kmail/kmfolderimap.cpp:1669
#50 0x00007f1b86eda08f in KMFolderImap::qt_metacall (this=0x2699160, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5f2277c0)
    at /usr/src/debug/kdepim-4.4.5/build/kmail/kmfolderimap.moc:192
#51 0x00007f1b85cb0fbf in QMetaObject::activate (sender=0x29c8750, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff5f2277c0) at kernel/qobject.cpp:3272
#52 0x00007f1b825af994 in KIO::TransferJob::data (this=<value optimized out>, _t1=0x29c8750, _t2=<value optimized out>) at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/jobclasses.moc:388
#53 0x00007f1b825afae6 in KIO::TransferJob::slotData (this=0x29c8750, _data=...) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/job.cpp:1003
#54 0x00007f1b825b5c69 in KIO::TransferJob::qt_metacall (this=0x29c8750, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fff5f227980)
    at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/jobclasses.moc:368
#55 0x00007f1b85cb0fbf in QMetaObject::activate (sender=0x26ecca0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff5f227980) at kernel/qobject.cpp:3272
#56 0x00007f1b8263ec32 in KIO::SlaveInterface::data (this=<value optimized out>, _t1=<value optimized out>) at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/slaveinterface.moc:146
#57 0x00007f1b82640640 in KIO::SlaveInterface::dispatch (this=<value optimized out>, _cmd=100, rawdata=...) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/slaveinterface.cpp:163
#58 0x00007f1b8263e782 in KIO::SlaveInterface::dispatch (this=0x26ecca0) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/slaveinterface.cpp:91
#59 0x00007f1b826358aa in KIO::Slave::gotInput (this=0x26ecca0) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/slave.cpp:344
#60 0x00007f1b82635dec in KIO::Slave::qt_metacall (this=0x26ecca0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5f227ce0)
    at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/slave.moc:82
#61 0x00007f1b85cb0fbf in QMetaObject::activate (sender=0x2bb61b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3272
#62 0x00007f1b82589024 in KIO::ConnectionPrivate::dequeue (this=0x24ae2c0) at /usr/src/debug/kdelibs-4.5.65svn1165394/kio/kio/connection.cpp:82
#63 0x00007f1b825890ad in KIO::Connection::qt_metacall (this=0x2bb61b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x369d500)
    at /usr/src/debug/kdelibs-4.5.65svn1165394/build/kio/connection.moc:79
#64 0x00007f1b85cb0aba in QObject::event (this=0x2bb61b0, e=<value optimized out>) at kernel/qobject.cpp:1211
#65 0x00007f1b861856e4 in QApplicationPrivate::notify_helper (this=0x1cd1c30, receiver=0x2bb61b0, e=0x2541130) at kernel/qapplication.cpp:4396
#66 0x00007f1b8618a15a in QApplication::notify (this=<value optimized out>, receiver=0x2bb61b0, e=0x2541130) at kernel/qapplication.cpp:4277
#67 0x00007f1b87dc9bc6 in KApplication::notify (this=0x7fff5f2288e0, receiver=0x2bb61b0, event=0x2541130) at /usr/src/debug/kdelibs-4.5.65svn1165394/kdeui/kernel/kapplication.cpp:310
#68 0x00007f1b85c9c73c in QCoreApplication::notifyInternal (this=0x7fff5f2288e0, receiver=0x2bb61b0, event=0x2541130) at kernel/qcoreapplication.cpp:732
#69 0x00007f1b85c9fee5 in sendEvent (receiver=0x0, event_type=0, data=0x1c84fa0) at kernel/qcoreapplication.h:215
#70 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1c84fa0) at kernel/qcoreapplication.cpp:1373
#71 0x00007f1b85cc76c3 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#72 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#73 0x00007f1b7d1813d3 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#74 0x00007f1b7d181bb0 in ?? () from /usr/lib64/libglib-2.0.so.0
#75 0x00007f1b7d181e4d in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#76 0x00007f1b85cc785f in QEventDispatcherGlib::processEvents (this=0x1cbcf90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#77 0x00007f1b8622974e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#78 0x00007f1b85c9bad2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#79 0x00007f1b85c9bd1c in QEventLoop::exec (this=0x7fff5f228720, flags=...) at kernel/qeventloop.cpp:201
#80 0x00007f1b85ca019b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#81 0x0000000000402f7d in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.4.5/kmail/main.cpp:149

Reported using DrKonqi
Comment 1 Laurent Montel 2010-09-02 10:29:27 UTC
It's a kmail1 bug not a kmail2 bug
Comment 2 Christophe Marin 2011-09-13 10:59:51 UTC
*** Bug 281876 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Feck 2011-11-14 02:47:03 UTC
*** Bug 286482 has been marked as a duplicate of this bug. ***
Comment 4 Myriam Schweingruber 2012-08-19 10:58:54 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding