Bug 150019

Summary: Segfault for no apparent reason
Product: [Unmaintained] kmail Reporter: Al Muckart <silver>
Component: IMAPAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 1.9.7   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Al Muckart 2007-09-20 01:27:07 UTC
Version:           1.9.7 (using KDE 3.5.7, Kubuntu (feisty) 4:3.5.7-0ubuntu1~feisty2)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.20-16-generic

I'm not entirely sure what I did to cause this crash. I think it happened as I clicked on an IMAP folder while kmail was trying to send an email. After kmail came back up the email was still in the outbox.

The backtrace is as follows:

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1250396464 (LWP 5757)]
[New Thread -1281614960 (LWP 5763)]
[New Thread -1273222256 (LWP 5762)]
[New Thread -1264829552 (LWP 5761)]
[New Thread -1256436848 (LWP 5760)]
[KCrash handler]
#6  DwStrcasecmp (aStr=@0x4b006b, aCstr=0xb6b2dae3 "content-type")
    at /root/kdepim/new/kdepim-3.5.7/./mimelib/mimelib/string.h:627
#7  0xb6b13ef2 in DwHeaders::FindField (this=0x8b07858, 
    aFieldName=0xb6b2dae3 "content-type")
    at /root/kdepim/new/kdepim-3.5.7/./mimelib/headers.cpp:289
#8  0xb6b13fe7 in DwHeaders::HasContentType (this=0x8b07858)
    at /root/kdepim/new/kdepim-3.5.7/./mimelib/headers.cpp:698
#9  0xb7e3bdf4 in applyHeadersToMessagePart (headers=@0x8b07858, 
    aPart=0x8c5926c)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/kmmessage.cpp:2896
#10 0xb7e3c8eb in KMMessage::bodyPart (aDwBodyPart=0x8c82290, 
    aPart=0x8c5926c, withBody=true)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/kmmessage.cpp:2971
#11 0xb7e3daf7 in (anonymous namespace)::AttachmentURLHandler::statusBarMessage (this=0x8bc6e90, url=@0xbfb050c4, w=0x8678d18)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/partNode.h:98
#12 0xb7c84149 in KMail::URLHandlerManager::statusBarMessage (this=0x8a7fb80, 
    url=@0xbfb050c4, w=0x8678d18)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/urlhandlermanager.cpp:312
#13 0xb7e04fa9 in KMReaderWin::slotUrlOn (this=0x8678d18, aUrl=@0x80a0cc8)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/kmreaderwin.cpp:1871
#14 0xb7ea6166 in KMReaderWin::qt_invoke (this=0x8678d18, _id=58, 
    _o=0xbfb05228) at ./kmreaderwin.moc:292
#15 0xb707688b in QObject::activate_signal (this=0x866e220, clist=0x86c1470, 
    o=0xbfb05228) at kernel/qobject.cpp:2356
#16 0xb7076dc0 in QObject::activate_signal (this=0x866e220, signal=8, 
    param=@0xbfb0527c) at kernel/qobject.cpp:2451
#17 0xb62e3630 in KHTMLPart::onURL (this=0x866e220, t0=@0x86c5640)
    at ./khtml_part.moc:409
#18 0xb62ec9fd in KHTMLPart::overURL (this=0x866e220, url=@0x86c5640, 
    target=@0xbfb05b58)
    at /root/kdelibs/kdelibs-3.5.7/./khtml/khtml_part.cpp:3726
#19 0xb631077e in KHTMLPart::khtmlMouseMoveEvent (this=0x866e220, 
    event=0xbfb05ec4)
    at /root/kdelibs/kdelibs-3.5.7/./khtml/khtml_part.cpp:6482
#20 0xb62ced10 in KHTMLPart::customEvent (this=0x866e220, event=0xbfb05ec4)
    at /root/kdelibs/kdelibs-3.5.7/./khtml/khtml_part.cpp:5954
#21 0xb7075f8d in QObject::event (this=0x866e220, e=0xbfb05ec4)
    at kernel/qobject.cpp:755
#22 0xb700da60 in QApplication::internalNotify (this=0xbfb06c14, 
    receiver=0x866e220, e=0xbfb05ec4) at kernel/qapplication.cpp:2635
#23 0xb700f88f in QApplication::notify (this=0xbfb06c14, receiver=0x866e220, 
    e=0xbfb05ec4) at kernel/qapplication.cpp:2358
#24 0xb7749c32 in KApplication::notify (this=0xbfb06c14, receiver=0x866e220, 
    event=0xbfb05ec4)
    at /root/kdelibs/kdelibs-3.5.7/./kdecore/kapplication.cpp:550
#25 0xb6309df2 in KHTMLView::viewportMouseMoveEvent (this=0x86b1df0, 
    _mouse=0xbfb065c0) at /usr/share/qt3/include/qapplication.h:520
#26 0xb71ad522 in QScrollView::eventFilter (this=0x86b1df0, obj=0x86be1d8, 
    e=0xbfb065c0) at widgets/qscrollview.cpp:1511
#27 0xb62e6449 in KHTMLView::eventFilter (this=0x86b1df0, o=0x86be1d8, 
    e=0xbfb065c0) at /root/kdelibs/kdelibs-3.5.7/./khtml/khtmlview.cpp:1976
#28 0xb7075e38 in QObject::activate_filters (this=0x86be1d8, e=0xbfb065c0)
    at kernel/qobject.cpp:903
#29 0xb7075eb6 in QObject::event (this=0x86be1d8, e=0xbfb065c0)
    at kernel/qobject.cpp:735
#30 0xb70ad58f in QWidget::event (this=0x86be1d8, e=0xbfb065c0)
    at kernel/qwidget.cpp:4678
#31 0xb700da60 in QApplication::internalNotify (this=0xbfb06c14, 
    receiver=0x86be1d8, e=0xbfb065c0) at kernel/qapplication.cpp:2635
#32 0xb700fc1e in QApplication::notify (this=0xbfb06c14, receiver=0x86be1d8, 
    e=0xbfb065c0) at kernel/qapplication.cpp:2421
#33 0xb7749c32 in KApplication::notify (this=0xbfb06c14, receiver=0x86be1d8, 
    event=0xbfb065c0)
    at /root/kdelibs/kdelibs-3.5.7/./kdecore/kapplication.cpp:550
#34 0xb6fa025d in QApplication::sendSpontaneousEvent (receiver=0x86be1d8, 
    event=0xbfb065c0) at kernel/qapplication.h:523
#35 0xb6f9eec2 in QETWidget::translateMouseEvent (this=0x86be1d8, 
    event=0xbfb06a18) at kernel/qapplication_x11.cpp:4303
#36 0xb6f9cfac in QApplication::x11ProcessEvent (this=0xbfb06c14, 
    event=0xbfb06a18) at kernel/qapplication_x11.cpp:3480
#37 0xb6fb4180 in QEventLoop::processEvents (this=0x8070678, flags=4)
    at kernel/qeventloop_x11.cpp:192
#38 0xb7028136 in QEventLoop::enterLoop (this=0x8070678)
    at kernel/qeventloop.cpp:198
#39 0xb7027f46 in QEventLoop::exec (this=0x8070678)
    at kernel/qeventloop.cpp:145
#40 0xb700f609 in QApplication::exec (this=0xbfb06c14)
    at kernel/qapplication.cpp:2758
#41 0x0804a2de in main (argc=0, argv=0x0)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/main.cpp:110
#42 0xb77e3ebc in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#43 0x0804a041 in _start ()
Comment 1 Thomas McGuire 2007-09-20 19:12:57 UTC
Looks like you hovered the mouse over an URL in the message, and it crashed after that.

Can you reproduce the crash with the same message?
Comment 2 Al Muckart 2007-09-21 03:27:21 UTC
I've tried a few times but I can't reproduce this because I'm not exactly sure what I was doing when it crashed. I was mousing over to another desktop while kmail was in the process of sending an email I'd *just* sent when it happened, but I can't pin down exactly what caused it to happen. If it's any help I think it happened while kmail was moving the message into the "Sent" folder on my IMAP server.

Thanks.
Comment 3 Al Muckart 2007-09-27 01:43:07 UTC
This has just happened to me again, very similar (to my uneducated eye) backtrace. 

I was scrolling the folder list when this happened but probably just moved the mouse pointer over the following URL which was the only URL visible in kmail when I did this. It was in the signature of an email.
--- cut url ---
Live Earth ‘07 updates, artist info & concert streams!
http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=790&referral=windowslivehotmailtagline&URL=http://liveearth.ninemsn.com.au
--- cut url ---

Backtrace follows:

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1250900272 (LWP 6181)]
[New Thread -1282143344 (LWP 6235)]
[New Thread -1273750640 (LWP 6234)]
[New Thread -1265357936 (LWP 6233)]
[New Thread -1256965232 (LWP 6232)]
[KCrash handler]
#6  0xb7dc1896 in KMMessage::bodyPart (aDwBodyPart=0x8b44c70, 
    aPart=0x8b7cd54, withBody=true)
    at /root/kdepim/new/kdepim-3.5.7/./mimelib/mimelib/string.h:618
#7  0xb7dc2af7 in (anonymous namespace)::AttachmentURLHandler::statusBarMessage (this=0x8aa2cf0, url=@0xbf8ddf24, w=0x867b080)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/partNode.h:98
#8  0xb7c09149 in KMail::URLHandlerManager::statusBarMessage (this=0x8bb4f88, 
    url=@0xbf8ddf24, w=0x867b080)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/urlhandlermanager.cpp:312
#9  0xb7d89fa9 in KMReaderWin::slotUrlOn (this=0x867b080, aUrl=@0x829f748)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/kmreaderwin.cpp:1871
#10 0xb7e2b166 in KMReaderWin::qt_invoke (this=0x867b080, _id=58, 
    _o=0xbf8de088) at ./kmreaderwin.moc:292
#11 0xb6ffb88b in QObject::activate_signal (this=0x866f328, clist=0x86b5978, 
    o=0xbf8de088) at kernel/qobject.cpp:2356
#12 0xb6ffbdc0 in QObject::activate_signal (this=0x866f328, signal=8, 
    param=@0xbf8de0dc) at kernel/qobject.cpp:2451
#13 0xb6268630 in KHTMLPart::onURL (this=0x866f328, t0=@0x86c68c0)
    at ./khtml_part.moc:409
#14 0xb62719fd in KHTMLPart::overURL (this=0x866f328, url=@0x86c68c0, 
    target=@0xbf8de9b8)
    at /root/kdelibs/kdelibs-3.5.7/./khtml/khtml_part.cpp:3726
#15 0xb629577e in KHTMLPart::khtmlMouseMoveEvent (this=0x866f328, 
    event=0xbf8ded24)
    at /root/kdelibs/kdelibs-3.5.7/./khtml/khtml_part.cpp:6482
#16 0xb6253d10 in KHTMLPart::customEvent (this=0x866f328, event=0xbf8ded24)
    at /root/kdelibs/kdelibs-3.5.7/./khtml/khtml_part.cpp:5954
#17 0xb6ffaf8d in QObject::event (this=0x866f328, e=0xbf8ded24)
    at kernel/qobject.cpp:755
#18 0xb6f92a60 in QApplication::internalNotify (this=0xbf8dfa74, 
    receiver=0x866f328, e=0xbf8ded24) at kernel/qapplication.cpp:2635
#19 0xb6f9488f in QApplication::notify (this=0xbf8dfa74, receiver=0x866f328, 
    e=0xbf8ded24) at kernel/qapplication.cpp:2358
#20 0xb76cec32 in KApplication::notify (this=0xbf8dfa74, receiver=0x866f328, 
    event=0xbf8ded24)
    at /root/kdelibs/kdelibs-3.5.7/./kdecore/kapplication.cpp:550
#21 0xb628edf2 in KHTMLView::viewportMouseMoveEvent (this=0x86b2aa8, 
    _mouse=0xbf8df420) at /usr/share/qt3/include/qapplication.h:520
#22 0xb7132522 in QScrollView::eventFilter (this=0x86b2aa8, obj=0x86bf440, 
    e=0xbf8df420) at widgets/qscrollview.cpp:1511
#23 0xb626b449 in KHTMLView::eventFilter (this=0x86b2aa8, o=0x86bf440, 
    e=0xbf8df420) at /root/kdelibs/kdelibs-3.5.7/./khtml/khtmlview.cpp:1976
#24 0xb6ffae38 in QObject::activate_filters (this=0x86bf440, e=0xbf8df420)
    at kernel/qobject.cpp:903
#25 0xb6ffaeb6 in QObject::event (this=0x86bf440, e=0xbf8df420)
    at kernel/qobject.cpp:735
#26 0xb703258f in QWidget::event (this=0x86bf440, e=0xbf8df420)
    at kernel/qwidget.cpp:4678
#27 0xb6f92a60 in QApplication::internalNotify (this=0xbf8dfa74, 
    receiver=0x86bf440, e=0xbf8df420) at kernel/qapplication.cpp:2635
#28 0xb6f94c1e in QApplication::notify (this=0xbf8dfa74, receiver=0x86bf440, 
    e=0xbf8df420) at kernel/qapplication.cpp:2421
#29 0xb76cec32 in KApplication::notify (this=0xbf8dfa74, receiver=0x86bf440, 
    event=0xbf8df420)
    at /root/kdelibs/kdelibs-3.5.7/./kdecore/kapplication.cpp:550
#30 0xb6f2525d in QApplication::sendSpontaneousEvent (receiver=0x86bf440, 
    event=0xbf8df420) at kernel/qapplication.h:523
#31 0xb6f23ec2 in QETWidget::translateMouseEvent (this=0x86bf440, 
    event=0xbf8df878) at kernel/qapplication_x11.cpp:4303
#32 0xb6f21fac in QApplication::x11ProcessEvent (this=0xbf8dfa74, 
    event=0xbf8df878) at kernel/qapplication_x11.cpp:3480
#33 0xb6f39180 in QEventLoop::processEvents (this=0x8070678, flags=4)
    at kernel/qeventloop_x11.cpp:192
#34 0xb6fad136 in QEventLoop::enterLoop (this=0x8070678)
    at kernel/qeventloop.cpp:198
#35 0xb6facf46 in QEventLoop::exec (this=0x8070678)
    at kernel/qeventloop.cpp:145
#36 0xb6f94609 in QApplication::exec (this=0xbf8dfa74)
    at kernel/qapplication.cpp:2758
#37 0x0804a2de in main (argc=)
    at /root/kdepim/new/kdepim-3.5.7/./kmail/main.cpp:110
#38 0xb7768ebc in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#39 0x0804a041 in _start ()
Comment 4 Marcus Better 2007-10-16 17:18:14 UTC
I just got the same crash when hovering the mouse over the URL of a PDF attachment. I am running Debian's kmail 4:3.5.7-4.
Comment 5 Thomas McGuire 2007-11-02 19:58:04 UTC

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