Bug 216027

Summary: crash opening attachment with kwrite, closing it before contents are inside
Product: [Applications] kontact Reporter: Michael Monnerie <kde-bugreport>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael Monnerie 2009-11-25 00:33:22 UTC
Application that crashed: kontact
Version of the application: 4.3.2
KDE Version: 4.3.1 (KDE 4.3.1) "release 6"
Qt Version: 4.5.3
Operating System: Linux 2.6.31.5-0.1-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

What I was doing when the application crashed:
kmail crashes when I click an attachment, open it with kwrite, but close kwrite before kmail put its content there. Looks like a timing problem, similar to https://bugs.kde.org/show_bug.cgi?id=215104

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f0fa197d151 in c_str (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.1/mimelib/mimelib/string.h:618
#6  partId (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.1/mimelib/mimelib/msgcmp.h:259
#7  KMMessage::bodyPart (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.1/kmail/kmmessage.cpp:2719
#8  0x00007f0fa1ca0a49 in msgPart (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.1/kmail/partNode.h:99
#9  (anonymous namespace)::AttachmentURLHandler::statusBarMessage (this=<value optimized out>) at /usr/src/debug/kdepim-4.3.1/kmail/urlhandlermanager.cpp:549
#10 0x00007f0fa1ca0724 in KMail::URLHandlerManager::statusBarMessage (this=0x18ce950, url=..., w=0x1c0bcc0) at /usr/src/debug/kdepim-4.3.1/kmail/urlhandlermanager.cpp:323
#11 0x00007f0fa1a6b60c in KMReaderWin::slotUrlOn (this=0x1c0bcc0, aUrl=<value optimized out>) at /usr/src/debug/kdepim-4.3.1/kmail/kmreaderwin.cpp:2023
#12 0x00007f0fa1a6c0ee in KMReaderWin::qt_metacall (this=0x1c0bcc0, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff9efd9330) at /usr/src/debug/kdepim-4.3.1/build/kmail/kmreaderwin.moc:178
#13 0x00007f0fb713cfbc in QMetaObject::activate (sender=0x1c15d00, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x57ac10) at kernel/qobject.cpp:3113
#14 0x00007f0fb51f9bc2 in KHTMLPart::onURL (this=0x7f0fb6142e60, _t1=<value optimized out>) at /usr/src/debug/kdelibs-4.3.1/build/khtml/khtml_part.moc:400
#15 0x00007f0fb5210135 in KHTMLPart::overURL (this=0x1c15d00, url=..., target=...) at /usr/src/debug/kdelibs-4.3.1/khtml/khtml_part.cpp:3521
#16 0x00007f0fb52121b1 in KHTMLPart::handleMouseMoveEventOver (this=0x1c15d00, event=<value optimized out>) at /usr/src/debug/kdelibs-4.3.1/khtml/khtml_part.cpp:6351
#17 0x00007f0fb521256b in KHTMLPart::khtmlMouseMoveEvent (this=0x1c15d00, event=0x7fff9efda5f0) at /usr/src/debug/kdelibs-4.3.1/khtml/khtml_part.cpp:6399
#18 0x00007f0fb7137335 in QObject::event (this=0x1c15d00, e=0x7fff9efda5f0) at kernel/qobject.cpp:1142
#19 0x00007f0fb65f32ac in QApplicationPrivate::notify_helper (this=0x63e640, receiver=0x1c15d00, e=0x7fff9efda5f0) at kernel/qapplication.cpp:4065
#20 0x00007f0fb65fa57e in QApplication::notify (this=0x7fff9efdd180, receiver=0x1c15d00, e=0x7fff9efda5f0) at kernel/qapplication.cpp:4030
#21 0x00007f0fb7aa08d6 in KApplication::notify (this=0x7fff9efdd180, receiver=0x1c15d00, event=0x7fff9efda5f0) at /usr/src/debug/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#22 0x00007f0fb7127ddc in QCoreApplication::notifyInternal (this=0x7fff9efdd180, receiver=0x1c15d00, event=0x7fff9efda5f0) at kernel/qcoreapplication.cpp:610
#23 0x00007f0fb51eda72 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at /usr/include/QtCore/qcoreapplication.h:213
#24 KHTMLView::mouseMoveEvent (event=<value optimized out>, receiver=<value optimized out>) at /usr/src/debug/kdelibs-4.3.1/khtml/khtmlview.cpp:1541
#25 0x00007f0fb6641b52 in QWidget::event (this=0x1c14ca0, event=0x7fff9efdb260) at kernel/qwidget.cpp:7539
#26 0x00007f0fb6980ab6 in QFrame::event (this=0x1c14ca0, e=0x7fff9efdb260) at widgets/qframe.cpp:559
#27 0x00007f0fb51eaab5 in KHTMLView::widgetEvent (this=0x1c14ca0, e=0x0) at /usr/src/debug/kdelibs-4.3.1/khtml/khtmlview.cpp:2338
#28 0x00007f0fb51eadcf in KHTMLView::eventFilter (this=0x1c14ca0, o=0x1c1af20, e=0x7fff9efdb260) at /usr/src/debug/kdelibs-4.3.1/khtml/khtmlview.cpp:2191
#29 0x00007f0fb7127127 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x1c1af20, event=0x7fff9efdb260) at kernel/qcoreapplication.cpp:726
#30 0x00007f0fb65f327c in QApplicationPrivate::notify_helper (this=0x63e640, receiver=0x1c1af20, e=0x7fff9efdb260) at kernel/qapplication.cpp:4061
#31 0x00007f0fb65fa3c1 in QApplication::notify (this=<value optimized out>, receiver=0x1c1af20, e=0x7fff9efdb260) at kernel/qapplication.cpp:3767
#32 0x00007f0fb7aa08d6 in KApplication::notify (this=0x7fff9efdd180, receiver=0x1c1af20, event=0x7fff9efdb260) at /usr/src/debug/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#33 0x00007f0fb7127ddc in QCoreApplication::notifyInternal (this=0x7fff9efdd180, receiver=0x1c1af20, event=0x7fff9efdb260) at kernel/qcoreapplication.cpp:610
#34 0x00007f0fb65f9c90 in sendSpontaneousEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:216
#35 QApplicationPrivate::sendMouseEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qapplication.cpp:2924
#36 0x00007f0fb665fcfe in QETWidget::translateMouseEvent (this=0x1be82c0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4409
#37 0x00007f0fb665ed9a in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff9efdcd90) at kernel/qapplication_x11.cpp:3550
#38 0x00007f0fb6686b6c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#39 0x00007f0fafd28dde in g_main_dispatch (context=<value optimized out>) at gmain.c:1960
#40 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#41 0x00007f0fafd2c7a8 in g_main_context_iterate (context=0x640d20, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#42 0x00007f0fafd2c8d0 in IA__g_main_context_iteration (context=0x640d20, may_block=1) at gmain.c:2654
#43 0x00007f0fb71503a3 in QEventDispatcherGlib::processEvents (this=0x60ee60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#44 0x00007f0fb668631e in QGuiEventDispatcherGlib::processEvents (this=0x7f0fb6142e60, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#45 0x00007f0fb7126712 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#46 0x00007f0fb7126ae4 in QEventLoop::exec (this=0x7fff9efdd0c0, flags=) at kernel/qeventloop.cpp:201
#47 0x00007f0fb7128c99 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#48 0x0000000000403f67 in _start ()

Reported using DrKonqi
Comment 1 Dario Andres 2009-11-25 02:28:47 UTC
As bug 213236, this is reported at bug 128357. Thanks

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