Bug 58240 - crash when deleting a mail in inbox
Summary: crash when deleting a mail in inbox
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.5.1
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-08 16:00 UTC by Adrian Petru Dimulescu
Modified: 2009-02-02 13:47 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 Adrian Petru Dimulescu 2003-05-08 16:00:30 UTC
Version:           1.5.1 (using KDE 3.1.1)
Installed from:    compiled sources
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
OS:          Linux (i686) release 2.4.20

apparently i only tried to delete a simple test mail (no attachments) in my inbox.

kind of exceptional, kmail doesn't usually crash when doing that.

here is the backtrace:


[New Thread 1024 (LWP 4502)]
0x412ca4d9 in wait4 () from /lib/libc.so.6
#0  0x412ca4d9 in wait4 () from /lib/libc.so.6
#1  0x4134230c in __DTOR_END__ () from /lib/libc.so.6
#2  0x4118983a in waitpid () from /lib/libpthread.so.0
#3  0x4097f8d4 in KCrash::defaultCrashHandler ()
   from /usr/local/kde-3.1.1/lib/libkdecore.so.4
#4  0x41187307 in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x40eca29b in QMapPrivateBase::removeAndRebalance ()
   from /usr/local/qt/lib/libqt-mt.so.3
#7  0x0815dfab in KMFolderImap::slotListFolderResult ()
#8  0x08165146 in KMFolderImap::qt_invoke ()
#9  0x40cc51ae in QObject::activate_signal ()
   from /usr/local/qt/lib/libqt-mt.so.3
#10 0x40571977 in KIO::Job::result () from /usr/local/kde-3.1.1/lib/libkio.so.4
#11 0x405617ce in KIO::Job::emitResult ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#12 0x40562894 in KIO::SimpleJob::slotFinished ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#13 0x40568164 in KIO::ListJob::slotFinished ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#14 0x40573ab2 in KIO::ListJob::qt_invoke ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#15 0x40cc51ae in QObject::activate_signal ()
   from /usr/local/qt/lib/libqt-mt.so.3
#16 0x40cc510a in QObject::activate_signal ()
   from /usr/local/qt/lib/libqt-mt.so.3
#17 0x4055a195 in KIO::SlaveInterface::finished ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#18 0x40558ad2 in KIO::SlaveInterface::dispatch ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#19 0x405586a6 in KIO::SlaveInterface::dispatch ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#20 0x40556a30 in KIO::Slave::gotInput ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#21 0x405580b5 in KIO::Slave::qt_invoke ()
   from /usr/local/kde-3.1.1/lib/libkio.so.4
#22 0x40cc51ae in QObject::activate_signal ()
   from /usr/local/qt/lib/libqt-mt.so.3
#23 0x40cc5317 in QObject::activate_signal ()
   from /usr/local/qt/lib/libqt-mt.so.3
#24 0x40f2e087 in QSocketNotifier::activated ()
   from /usr/local/qt/lib/libqt-mt.so.3
#25 0x40cdb852 in QSocketNotifier::event ()
   from /usr/local/qt/lib/libqt-mt.so.3
#26 0x40c7520c in QApplication::internalNotify ()
   from /usr/local/qt/lib/libqt-mt.so.3
#27 0x40c75013 in QApplication::notify () from /usr/local/qt/lib/libqt-mt.so.3
#28 0x4091df7e in KApplication::notify ()
   from /usr/local/kde-3.1.1/lib/libkdecore.so.4
#29 0x40c57768 in QEventLoop::activateSocketNotifiers ()
   from /usr/local/qt/lib/libqt-mt.so.3
#30 0x40c3a8cc in QEventLoop::processEvents ()
   from /usr/local/qt/lib/libqt-mt.so.3
#31 0x40c85164 in QEventLoop::enterLoop () from /usr/local/qt/lib/libqt-mt.so.3
#32 0x40c850b9 in QEventLoop::exec () from /usr/local/qt/lib/libqt-mt.so.3
#33 0x40c75362 in QApplication::exec () from /usr/local/qt/lib/libqt-mt.so.3
#34 0x081757c0 in main ()
#35 0x412371c4 in __libc_start_main () from /lib/libc.so.6
Comment 1 Till Adam 2003-06-02 22:42:50 UTC
Can you reproduce this crash with other mails, or does it only happen with that one mail? If so, can 
you make that mail available to us, so we can check why it makes kmail crash? Thank you. 
Comment 2 Adrian Petru Dimulescu 2003-06-03 00:14:11 UTC
Subject: RE:  crash when deleting a mail in inbox         

no, sorry, I retried to do it, as I said, it did not happen again. I'm
afraid I don't have anything else than this backtrace. I can't remember
the mail I was deleting, either :(  You know, the almost automatic
mailbox cleaning up...

-----Original Message-----
From: owner@bugs.kde.org [mailto:owner@bugs.kde.org] On Behalf Of Till
Adam
Sent: lundi 2 juin 2003 22:43
To: adrian.dimulescu@free.fr
Subject: [Bug 58240] crash when deleting a mail in inbox 


------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
     
http://bugs.kde.org/show_bug.cgi?id=58240     




------- Additional Comments From till@adam-lilienthal.de  2003-06-02
22:42 ------- Can you reproduce this crash with other mails, or does it
only happen with that one mail? If so, can 
you make that mail available to us, so we can check why it makes kmail
crash? Thank you.



Comment 3 Till Adam 2003-06-03 06:52:47 UTC
Closing, as the crash doesn't seem to be reproducible by the reporter. 
Comment 4 Pataky Tibor 2007-01-07 19:25:25 UTC
I'm suffering from a similar bug.
When I try to delete some mails, Kmail is crashing.
As I see the cause of the crash is a file in "~/.kde/share/apps/kmail/mail/.inbox.directory/"
called "freemail.index.sorted.temp" with zero length.
Deleting this file disables crashing.
Comment 5 Willi Richert 2009-02-02 13:47:44 UTC
It happens still in the newest kmail, often when I'm deleting lots of uninteresting mails received from mailing lists (someone does not like being ignored?)

Anwendung: Kontact (kontact), Signal SIGSEGV
[Current thread is 0 (LWP 9536)]

Thread 2 (Thread 0xafff4b90 (LWP 9872)):
#0  0xb80c9430 in __kernel_vsyscall ()
#1  0xb5adac01 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb5da9150 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb5cd96ae in ?? () from /usr/lib/libQtCore.so.4
#4  0xb540950f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb5ae27ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb4b816c0 (LWP 9536)):
[KCrash Handler]
#6  KMail::FolderJob::msgList (this=0xf42aeb8) at /usr/include/qt4/QtCore/qatomic_i386.h:116
#7  0xb126b8ab in KMAcctImap::ignoreJobsForMessage (this=0xa0bf7a8, msg=0xfbf4020) at /build/buildd/kdepim-4.2.0/kmail/kmacctimap.cpp:215
#8  0xb1284375 in KMFolderImap::ignoreJobsForMessage (this=0xa175ba8, msg=0xfbf4020) at /build/buildd/kdepim-4.2.0/kmail/kmfolderimap.cpp:1562
#9  0xb13a4f6e in KMMoveCommand::execute (this=0xfc0d4a8) at /build/buildd/kdepim-4.2.0/kmail/kmcommands.cpp:2086
#10 0xb1388222 in KMCommand::slotPostTransfer (this=0xfc0d4a8, result=KMCommand::OK) at /build/buildd/kdepim-4.2.0/kmail/kmcommands.cpp:276
#11 0xb1393b54 in KMCommand::qt_metacall (this=0xfc0d4a8, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfcc8f3c) at /build/buildd/kdepim-4.2.0/obj-i486-linux-gnu/kmail/kmcommands.moc:86
#12 0xb13a6e3a in KMMoveCommand::qt_metacall (this=0xfc0d4a8, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfcc8f3c) at /build/buildd/kdepim-4.2.0/obj-i486-linux-gnu/kmail/kmcommands.moc:1662
#13 0xb13a6f02 in KMDeleteMsgCommand::qt_metacall (this=0xfc0d4a8, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfcc8f3c) at /build/buildd/kdepim-4.2.0/obj-i486-linux-gnu/kmail/kmcommands.moc:1712
#14 0xb5ddea60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#15 0xb5ddf7e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb13848d3 in KMCommand::messagesTransfered (this=0xfc0d4a8, _t1=KMCommand::OK) at /build/buildd/kdepim-4.2.0/obj-i486-linux-gnu/kmail/kmcommands.moc:100
#17 0xb13a379c in KMCommand::transferSelectedMsgs (this=0xfc0d4a8) at /build/buildd/kdepim-4.2.0/kmail/kmcommands.cpp:370
#18 0xb13a39ef in KMCommand::slotStart (this=0xfc0d4a8) at /build/buildd/kdepim-4.2.0/kmail/kmcommands.cpp:268
#19 0xb1393b63 in KMCommand::qt_metacall (this=0xfc0d4a8, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfcc9138) at /build/buildd/kdepim-4.2.0/obj-i486-linux-gnu/kmail/kmcommands.moc:85
#20 0xb13a6e3a in KMMoveCommand::qt_metacall (this=0xfc0d4a8, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfcc9138) at /build/buildd/kdepim-4.2.0/obj-i486-linux-gnu/kmail/kmcommands.moc:1662
#21 0xb13a6f02 in KMDeleteMsgCommand::qt_metacall (this=0xfc0d4a8, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfcc9138) at /build/buildd/kdepim-4.2.0/obj-i486-linux-gnu/kmail/kmcommands.moc:1712
#22 0xb5ddea60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0xb5ddf7e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#24 0xb5de4db7 in ?? () from /usr/lib/libQtCore.so.4
#25 0xb5de4edc in ?? () from /usr/lib/libQtCore.so.4
#26 0xb5dd953f in QObject::event () from /usr/lib/libQtCore.so.4
#27 0xb62938ec in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#28 0xb629b72e in QApplication::notify () from /usr/lib/libQtGui.so.4
#29 0xb6db406d in KApplication::notify (this=0xbfcc9878, receiver=0xf868880, event=0xbfcc95cc) at /build/buildd/kde4libs-4.2.0/kdeui/kernel/kapplication.cpp:307
#30 0xb5dc9e61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#31 0xb5df7d81 in ?? () from /usr/lib/libQtCore.so.4
#32 0xb5df4520 in ?? () from /usr/lib/libQtCore.so.4
#33 0xb50986f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0xb509bda3 in ?? () from /usr/lib/libglib-2.0.so.0
#35 0xb509bf61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0xb5df4478 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#37 0xb632dea5 in ?? () from /usr/lib/libQtGui.so.4
#38 0xb5dc852a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#39 0xb5dc86ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#40 0xb5dcada5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#41 0xb6293767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#42 0x0804c072 in main (argc=1, argv=0xbfcc9b74) at /build/buildd/kdepim-4.2.0/kontact/src/main.cpp:218