Bug 173532 - kmail crashes if filtering more than five messages (via piping through a script) in one go
Summary: kmail crashes if filtering more than five messages (via piping through a scri...
Status: RESOLVED DUPLICATE of bug 121089
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.9.9
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-25 22:07 UTC by Paul Millar
Modified: 2009-03-19 00:34 UTC (History)
0 users

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 Paul Millar 2008-10-25 22:07:07 UTC
Version:           1.9.9 (using KDE 3.5.9)
Compiler:           Using standard packages from Debian.
OS:                Linux
Installed from:    Debian testing/unstable Packages

I've written a short filter (in bash) that checks an email from RT (request tracker) and updates the email's subject line based on the current status of the ticket.  If there is a problem (e.g. email not from RT, RT is server is down) then no output is generated (leaving the email intact) but, under normal circumstances all RT emails will have their subject header line rewritten.

I've found that, if I select many emails and right-click to apply this filter, kmail may crash.  This behavior is not predictable: it doesn't seem to be triggered by one particular email, nor does it occur reliably if the number of emails exceeds a threshold value.

My guess is that the likelihood of a crash depends on the number of emails being filtered.  I have not seen kmail crash when filtering five or less emails at one go.  With six emails, the crash is unlikely but occasionally happens.  My impression is that the likelihood of the crash increases with the number of emails.

I've attached the backtrace here:

[...]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#5  0x0000000000000000 in ?? ()
#6  0x00007f8f4684afce in KMMessage::setTransferInProgress ()
   from /usr/lib/libkmailprivate.so
#7  0x00007f8f46a7a614 in KMCommand::slotPostTransfer ()
   from /usr/lib/libkmailprivate.so
#8  0x00007f8f46a8df86 in KMCommand::qt_invoke ()
   from /usr/lib/libkmailprivate.so
#9  0x00007f8f53ddc36c in QObject::activate_signal ()
   from /usr/lib/libqt-mt.so.3
#10 0x00007f8f46a794b4 in KMCommand::messagesTransfered ()
   from /usr/lib/libkmailprivate.so
#11 0x00007f8f46a8de92 in KMCommand::slotJobFinished ()
   from /usr/lib/libkmailprivate.so
#12 0x00007f8f46a8dfb0 in KMCommand::qt_invoke ()
   from /usr/lib/libkmailprivate.so
#13 0x00007f8f53ddc36c in QObject::activate_signal ()
   from /usr/lib/libqt-mt.so.3
#14 0x00007f8f53ddcb04 in QObject::activate_signal ()
   from /usr/lib/libqt-mt.so.3
#15 0x00007f8f46ac4670 in KMail::FolderJob::~FolderJob ()
   from /usr/lib/libkmailprivate.so
#16 0x00007f8f46acda66 in KMail::ImapJob::~ImapJob ()
   from /usr/lib/libkmailprivate.so
#17 0x00007f8f53ddba59 in QObject::event () from /usr/lib/libqt-mt.so.3
#18 0x00007f8f53d86953 in QApplication::internalNotify ()
   from /usr/lib/libqt-mt.so.3
#19 0x00007f8f53d87668 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#20 0x00007f8f548e6c42 in KApplication::notify ()
   from /usr/lib/libkdecore.so.4
#21 0x00007f8f53d8803a in QApplication::sendPostedEvents ()
   from /usr/lib/libqt-mt.so.3
#22 0x00007f8f53d3c9dd in QEventLoop::processEvents ()
   from /usr/lib/libqt-mt.so.3
#23 0x00007f8f53d9b001 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#24 0x00007f8f53d9aeb2 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#25 0x00000000004189af in ?? ()
#26 0x00007f8f54be71a6 in __libc_start_main () from /lib/libc.so.6
#27 0x0000000000417eb9 in ?? ()
#28 0x00007fff5ec5d6c8 in ?? ()
#29 0x000000000000001c in ?? ()
#30 0x0000000000000001 in ?? ()
#31 0x00007fff5ec5ec70 in ?? ()
#32 0x0000000000000000 in ?? ()

(FWIW, my guess is that there's a race condition here somewhere)

Cheers,

Paul
Comment 1 Christophe Marin 2008-10-26 11:22:20 UTC

*** This bug has been marked as a duplicate of bug 121089 ***