Bug 192306 - kmail crashes if you delete a message above a deleted message
Summary: kmail crashes if you delete a message above a deleted message
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-11 11:04 UTC by Nik
Modified: 2009-10-23 10:41 UTC (History)
3 users (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 Nik 2009-05-11 11:04:38 UTC
Version:            (using KDE 4.1.2)
Compiler:          cc 
OS:                Linux
Installed from:    Debian stable Packages

the crash happens if you delete a maessage above a deleted message which is in delete progress.

Here is the setup:
I have a list of lets say 15 mails I want to delete. I now click on the fifth mail. I press ten times the "del" botton, I do this fast and I see the message-"subject" crossed out, but not removed form the message list this fast.
Now I get the crash, if I click at messages above the deleted ones and fast delete them again with "del". In the moment the forth email gets deleted, kmail tries to acces one of the deleted crossed out emails and crashes with SIGSEGV signal 11.
I could reproduce this as often as I want, because after restart of kmail everything is still undeleted and I still have my 15 emails to try it again.

I use the KMail Version 1.10.4
under KDE 4.1.4
I have a german version.

This is my very first bug report. But I hope I did mentioned the important facts.
Comment 1 Dario Andres 2009-05-11 23:55:14 UTC
Thanks for reporting! :)
As you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here? It will be useful to identify the crash cause.
Thanks!
Comment 2 Christophe Marin 2009-05-23 15:52:59 UTC
Changing the bug status until we get a backtrace (comment #1)
Comment 3 Kamil Neczaj 2009-05-25 18:57:16 UTC
confirming. I have kdemod in archlinux. There are additional packages with debuging symbols. 
I have something like this without the package with debuging symbols installed:

Program: KMail (kmail), sygnał SIGSEGV

Thread 1 (Thread 0xb3895930 (LWP 12565)):
[KCrash Handler]
#6  0xb75c2ccd in KMail::FolderJob::msgList () from /usr/lib/libkmailprivate.so.4
#7  0xb7439e45 in KMAcctImap::ignoreJobsForMessage () from /usr/lib/libkmailprivate.so.4
#8  0xb7452313 in KMFolderImap::ignoreJobsForMessage () from /usr/lib/libkmailprivate.so.4
#9  0xb7578356 in KMMoveCommand::execute () from /usr/lib/libkmailprivate.so.4
#10 0xb755b052 in KMCommand::slotPostTransfer () from /usr/lib/libkmailprivate.so.4
#11 0xb7567b6f in KMCommand::qt_metacall () from /usr/lib/libkmailprivate.so.4
#12 0xb75798ca in KMMoveCommand::qt_metacall () from /usr/lib/libkmailprivate.so.4
#13 0xb7579992 in KMDeleteMsgCommand::qt_metacall () from /usr/lib/libkmailprivate.so.4
#14 0xb6947831 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#15 0xb69484a2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb7557933 in KMCommand::messagesTransfered () from /usr/lib/libkmailprivate.so.4
#17 0xb7576686 in KMCommand::transferSelectedMsgs () from /usr/lib/libkmailprivate.so.4
#18 0xb75768e2 in KMCommand::slotStart () from /usr/lib/libkmailprivate.so.4
#19 0xb7567b4b in KMCommand::qt_metacall () from /usr/lib/libkmailprivate.so.4
#20 0xb75798ca in KMMoveCommand::qt_metacall () from /usr/lib/libkmailprivate.so.4
#21 0xb7579992 in KMDeleteMsgCommand::qt_metacall () from /usr/lib/libkmailprivate.so.4
#22 0xb6947831 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0xb69484a2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#24 0xb694c967 in ?? () from /usr/lib/libQtCore.so.4
#25 0xb694ca7c in ?? () from /usr/lib/libQtCore.so.4
#26 0xb694179f in QObject::event () from /usr/lib/libQtCore.so.4
#27 0xb5dbc6ac in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#28 0xb5dc3e44 in QApplication::notify () from /usr/lib/libQtGui.so.4
#29 0xb7e62bfa in KApplication::notify () from /usr/lib/libkdeui.so.5
#30 0xb693174b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#31 0xb695fa26 in ?? () from /usr/lib/libQtCore.so.4
#32 0xb695cad0 in ?? () from /usr/lib/libQtCore.so.4
#33 0xb3ffb288 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0xb3ffe878 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#35 0xb3ffe9ea in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0xb695ca1c in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#37 0xb5e5b5c5 in ?? () from /usr/lib/libQtGui.so.4
#38 0xb692fcd9 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#39 0xb6930122 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#40 0xb693249f in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#41 0xb5dbc527 in QApplication::exec () from /usr/lib/libQtGui.so.4
#42 0x0804a7d2 in _start ()

And this when the package with debuging symbols is installed:
Program: KMail (kmail), sygnał SIGSEGV
[Current thread is 0 (LWP 12631)]

Thread 2 (Thread 0xb0244b70 (LWP 12635)):
#0  0xb805e424 in __kernel_vsyscall ()
#1  0xb6790f82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb680f36f in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb6804946 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb680e3be in ?? () from /usr/lib/libQtCore.so.4
#5  0xb678c6bc in start_thread () from /lib/libpthread.so.0
#6  0xb5abaffe in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb3863930 (LWP 12631)):
[KCrash Handler]
#6  KMail::FolderJob::msgList (this=0x30) at /usr/include/QtCore/qlist.h:111
#7  0xb7407e45 in KMAcctImap::ignoreJobsForMessage (this=0x95a7188, msg=0x9eb44b8) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmacctimap.cpp:215
#8  0xb7420313 in KMFolderImap::ignoreJobsForMessage (this=0x95cf930, msg=0x9eb44b8) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmfolderimap.cpp:1562
#9  0xb7546356 in KMMoveCommand::execute (this=0x9d84420) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.cpp:2089
#10 0xb7529052 in KMCommand::slotPostTransfer (this=0x9d84420, result=KMCommand::OK) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.cpp:276
#11 0xb7535b6f in KMCommand::qt_metacall (this=0x9d84420, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfb79638) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.moc:87
#12 0xb75478ca in KMMoveCommand::qt_metacall (this=0x9d84420, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfb79638) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.moc:1706
#13 0xb7547992 in KMDeleteMsgCommand::qt_metacall (this=0x9d84420, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfb79638) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.moc:1758
#14 0xb6915831 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#15 0xb69164a2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb7525933 in KMCommand::messagesTransfered (this=0x9d84420, _t1=KMCommand::OK) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.moc:102
#17 0xb7544686 in KMCommand::transferSelectedMsgs (this=0x9d84420) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.cpp:370
#18 0xb75448e2 in KMCommand::slotStart (this=0x9d84420) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.cpp:268
#19 0xb7535b4b in KMCommand::qt_metacall (this=0x9d84420, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfb7985c) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.moc:86
#20 0xb75478ca in KMMoveCommand::qt_metacall (this=0x9d84420, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfb7985c) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.moc:1706
#21 0xb7547992 in KMDeleteMsgCommand::qt_metacall (this=0x9d84420, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfb7985c) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/kmcommands.moc:1758
#22 0xb6915831 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0xb69164a2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#24 0xb691a967 in ?? () from /usr/lib/libQtCore.so.4
#25 0xb691aa7c in ?? () from /usr/lib/libQtCore.so.4
#26 0xb690f79f in QObject::event () from /usr/lib/libQtCore.so.4
#27 0xb5d8a6ac in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#28 0xb5d91e44 in QApplication::notify () from /usr/lib/libQtGui.so.4
#29 0xb7e30bfa in KApplication::notify () from /usr/lib/libkdeui.so.5
#30 0xb68ff74b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#31 0xb692da26 in ?? () from /usr/lib/libQtCore.so.4
#32 0xb692aad0 in ?? () from /usr/lib/libQtCore.so.4
#33 0xb3fc9288 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0xb3fcc878 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#35 0xb3fcc9ea in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0xb692aa1c in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#37 0xb5e295c5 in ?? () from /usr/lib/libQtGui.so.4
#38 0xb68fdcd9 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#39 0xb68fe122 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#40 0xb690049f in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#41 0xb5d8a527 in QApplication::exec () from /usr/lib/libQtGui.so.4
#42 0x0804a7d2 in main (argc=1, argv=0xbfb7a284) at /home/jan/kdemod/core/kdepim/src/kdepim-4.2.3/kmail/main.cpp:146
Comment 4 Kamil Neczaj 2009-05-25 18:59:06 UTC
I'm using kde 4.2.3
Comment 5 Dario Andres 2009-05-25 18:59:46 UTC
@Kamil Neczaj: your crash is bug 163071. Thanks
Comment 6 Christophe Marin 2009-10-23 10:41:06 UTC
Closing the old crash reports which don't have a useful backtrace. Thanks.