Bug 227812

Summary: reproducible crash: answer message box question while having selected a different mail meanwhile
Product: [Unmaintained] kmail Reporter: Thijs Kinkhorst <thijs>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bjoern
Priority: NOR    
Version: 1.12.4   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: stack trace

Description Thijs Kinkhorst 2010-02-20 14:46:18 UTC
Version:           1.12.4 (using KDE 4.3.4)
OS:                Linux
Installed from:    Debian testing/unstable Packages

Hi,

There's a reproducible crash (segfault) in kmail. I can reproduce it in Debian's oldstable, stable and testing versions of kmail, so it's present for a significant number of releases now. How to reproduce:

1) Find an email that requests a read receipt (e.g. send yourself one).
2) Click on the email. A dialog appears with the question what to do with
   this read receipt (ignore, refuse, send). Do not click any button.
3) Meanwhile, select another mail in the mailbox.
4) Only then, answer the question in the message box.

Kmail then reproducibly crashes. This happens on various types of questions / message boxes that may pop up when reading an email, but I've found the read receipt confirmation to be most prevalent. I've attached a stack trace (generated on the version in Debian stable).

This actually happens to me fairly often as I have the habit to click
through a number of new emails and only notice the message box after
I've clicked on the next mail already.

Thanks.
Comment 1 Thijs Kinkhorst 2010-02-20 14:47:40 UTC
Created attachment 40955 [details]
stack trace
Comment 2 Dario Andres 2010-02-20 22:40:50 UTC
Pasting backtrace inline:
---

[Thread debugging using libthread_db enabled]
[New Thread 0xb56686c0 (LWP 7440)]
[New Thread 0xb387db90 (LWP 7444)]
[New Thread 0xb407eb90 (LWP 7443)]
[New Thread 0xb487fb90 (LWP 7442)]
[New Thread 0xb5080b90 (LWP 7441)]
[KCrash handler]
#6  QGList::append (this=0x30000000, d=0xa900a10) at tools/qglist.cpp:407
#7  0xb6f46314 in QApplication::postEvent (receiver=0x9707ae8, 
    event=0xa900910) at ../include/qptrlist.h:85
#8  0xb6fa94b3 in QObject::deleteLater (this=0x9707ae8)
    at kernel/qobject.cpp:2166
#9  0xb7dae57a in KMail::ImapJob::slotGetMessageResult (this=0x9707ae8, 
    job=0x93d1720) at /tmp/buildd/kdepim-3.5.9/./kmail/imapjob.cpp:458
#10 0xb7daed1a in KMail::ImapJob::qt_invoke (this=0x9707ae8, _id=2, 
    _o=0xbf9a2a84) at ./imapjob.moc:126
#11 0xb6fa91aa in QObject::activate_signal (this=0x93d1720, clist=0xa9105d0, 
    o=0xbf9a2a84) at kernel/qobject.cpp:2359
#12 0xb5b512ce in KIO::Job::result (this=0x93d1720, t0=0x93d1720)
    at ./jobclasses.moc:162
#13 0xb5ba1b54 in KIO::Job::emitResult (this=0x93d1720)
    at /chroots/lenny-chroot/home/white/kde/kdelibs/new/kdelibs-3.5.10.dfsg.1/./kio/kio/job.cpp:235
#14 0xb5ba2a1e in KIO::SimpleJob::slotFinished (this=0x93d1720)
    at /chroots/lenny-chroot/home/white/kde/kdelibs/new/kdelibs-3.5.10.dfsg.1/./kio/kio/job.cpp:601
#15 0xb5ba306c in KIO::TransferJob::slotFinished (this=0x93d1720)
    at /chroots/lenny-chroot/home/white/kde/kdelibs/new/kdelibs-3.5.10.dfsg.1/./kio/kio/job.cpp:971
#16 0xb5b970f0 in KIO::TransferJob::qt_invoke (this=0x93d1720, _id=17, 
    _o=0xbf9a2d84) at ./jobclasses.moc:1071
#17 0xb6fa91aa in QObject::activate_signal (this=0x93baec8, clist=0x9470998, 
    o=0xbf9a2d84) at kernel/qobject.cpp:2359
#18 0xb6fab6cb in QObject::activate_signal (this=0x93baec8, signal=6)
    at kernel/qobject.cpp:2328
#19 0xb5b4903c in KIO::SlaveInterface::finished (this=0x93baec8)
    at ./slaveinterface.moc:226
#20 0xb5bb4397 in KIO::SlaveInterface::dispatch (this=0x93baec8, _cmd=104, 
    rawdata=@0xbf9a2f60)
    at /chroots/lenny-chroot/home/white/kde/kdelibs/new/kdelibs-3.5.10.dfsg.1/./kio/kio/slaveinterface.cpp:243
#21 0xb5b6e86a in KIO::SlaveInterface::dispatch (this=0x93baec8)
    at /chroots/lenny-chroot/home/white/kde/kdelibs/new/kdelibs-3.5.10.dfsg.1/./kio/kio/slaveinterface.cpp:173
#22 0xb5b765fc in KIO::Slave::gotInput (this=0x93baec8)
    at /chroots/lenny-chroot/home/white/kde/kdelibs/new/kdelibs-3.5.10.dfsg.1/./kio/kio/slave.cpp:300
#23 0xb5b767b8 in KIO::Slave::qt_invoke (this=0x93baec8, _id=4, _o=0xbf9a304c)
    at ./slave.moc:113
#24 0xb6fa91aa in QObject::activate_signal (this=0x93baab0, clist=0x93bb080, 
    o=0xbf9a304c) at kernel/qobject.cpp:2359
#25 0xb6fab589 in QObject::activate_signal (this=0x93baab0, signal=2, 
    param=14) at kernel/qobject.cpp:2452
#26 0xb7307700 in QSocketNotifier::activated (this=0x93baab0, t0=14)
    at .moc/release-shared-mt/moc_qsocketnotifier.cpp:85
#27 0xb6fc85a7 in QSocketNotifier::event (this=0x93baab0, e=0xbf9a3378)
    at kernel/qsocketnotifier.cpp:261
#28 0xb6f447c5 in QApplication::internalNotify (this=0xbf9a35b0, 
    receiver=0x93baab0, e=0xbf9a3378) at kernel/qapplication.cpp:2638
#29 0xb6f45806 in QApplication::notify (this=0xbf9a35b0, receiver=0x93baab0, 
    e=0xbf9a3378) at kernel/qapplication.cpp:2375
#30 0xb762fb92 in KApplication::notify (this=0xbf9a35b0, receiver=0x93baab0, 
    event=0xbf9a3378)
    at /chroots/lenny-chroot/home/white/kde/kdelibs/new/kdelibs-3.5.10.dfsg.1/./kdecore/kapplication.cpp:550
#31 0xb6f392cc in QEventLoop::activateSocketNotifiers (this=0x8ca4d90)
    at kernel/qapplication.h:523
#32 0xb6eef66e in QEventLoop::processEvents (this=0x8ca4d90, flags=4)
    at kernel/qeventloop_x11.cpp:386
#33 0xb6f5d1a0 in QEventLoop::enterLoop (this=0x8ca4d90)
    at kernel/qeventloop.cpp:201
#34 0xb6f5d066 in QEventLoop::exec (this=0x8ca4d90)
    at kernel/qeventloop.cpp:148
#35 0xb6f44e5f in QApplication::exec (this=0xbf9a35b0)
    at kernel/qapplication.cpp:2761
#36 0x0804a29d in main (argc=-1220497480, argv=0x34)
    at /tmp/buildd/kdepim-3.5.9/./kmail/main.cpp:110
Comment 3 Björn Ruberg 2010-03-15 00:26:11 UTC

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