Bug 248974

Summary: Kmail crashes when pasting from clipboard
Product: [Unmaintained] kmail Reporter: Torleif Markussen Lunde <torleif>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: montel
Priority: NOR    
Version: 1.13.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Torleif Markussen Lunde 2010-08-25 10:54:16 UTC
Application: kmail (1.13.5)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.33.6-147.2.4.fc13.x86_64 x86_64
Distribution: "Fedora release 13 (Goddard)"

-- Information about the crash:
Hi

Kmail crashes when images are pasted from ksnapshot

The crash can be reproduced every time.

 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[KCrash Handler]
#5  0x0000003c5675fb69 in QMimeDataPrivate::retrieveTypedData (this=<value optimized out>, format=..., type=QVariant::ByteArray) at kernel/qmimedata.cpp:107
#6  0x0000003c56760312 in QMimeData::data (this=<value optimized out>, mimeType=<value optimized out>) at kernel/qmimedata.cpp:524
#7  0x000000360d7a82ad in KMComposerEditor::insertFromMimeData (this=0x2b9c2d0, source=0x355ce50) at /usr/src/debug/kdepim-4.4.5/kmail/kmcomposereditor.cpp:180
#8  0x00000036019daa24 in QTextControl::qt_metacall (this=0x2592340, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0x7fff7fc48020) at .moc/release-shared/moc_qtextcontrol_p.cpp:173
#9  0x0000003c56766a36 in QMetaObject::activate (sender=0x29f4ee0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff7fc48020) at kernel/qobject.cpp:3295
#10 0x00000036017a6422 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#11 0x00000036017a7b5b in QAction::activate (this=0x29f4ee0, event=<value optimized out>) at kernel/qaction.cpp:1255
#12 0x0000003601bac9e9 in QMenuPrivate::activateCausedStack (this=0x2940ed0, causedStack=..., action=0x29f4ee0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1002
#13 0x0000003601bb1dda in QMenuPrivate::activateAction (this=0x2940ed0, action=0x29f4ee0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1094
#14 0x00000036017f648a in QWidget::event (this=0x20c92f0, event=0x7fff7fc48ad0) at kernel/qwidget.cpp:8044
#15 0x0000003601bb3ddb in QMenu::event (this=0x20c92f0, e=0x7fff7fc48ad0) at widgets/qmenu.cpp:2421
#16 0x00000036017ab39c in QApplicationPrivate::notify_helper (this=0x14518a0, receiver=0x20c92f0, e=0x7fff7fc48ad0) at kernel/qapplication.cpp:4306
#17 0x00000036017b1e2d in QApplication::notify (this=<value optimized out>, receiver=0x20c92f0, e=0x7fff7fc48ad0) at kernel/qapplication.cpp:3871
#18 0x0000003602a07016 in KApplication::notify (this=0x7fff7fc4afc0, receiver=0x20c92f0, event=0x7fff7fc48ad0) at /usr/src/debug/kdelibs-4.4.5/kdeui/kernel/kapplication.cpp:302
#19 0x0000003c56753ddc in QCoreApplication::notifyInternal (this=0x7fff7fc4afc0, receiver=0x20c92f0, event=0x7fff7fc48ad0) at kernel/qcoreapplication.cpp:726
#20 0x00000036017b101e in sendEvent (receiver=0x20c92f0, event=0x7fff7fc48ad0, alienWidget=0x0, nativeWidget=0x20c92f0, buttonDown=0x360222f088, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:215
#21 QApplicationPrivate::sendMouseEvent (receiver=0x20c92f0, event=0x7fff7fc48ad0, alienWidget=0x0, nativeWidget=0x20c92f0, buttonDown=0x360222f088, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2971
#22 0x00000036018235cd in QETWidget::translateMouseEvent (this=0x20c92f0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4314
#23 0x0000003601821acc in QApplication::x11ProcessEvent (this=0x7fff7fc4afc0, event=0x7fff7fc493f0) at kernel/qapplication_x11.cpp:3513
#24 0x000000360184ab92 in x11EventSourceDispatch (s=0x1455210, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#25 0x0000003c4d63bd02 in g_main_dispatch (context=0x1454120) at gmain.c:1960
#26 IA__g_main_context_dispatch (context=0x1454120) at gmain.c:2513
#27 0x0000003c4d63fae8 in g_main_context_iterate (context=0x1454120, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#28 0x0000003c4d63fc9c in IA__g_main_context_iteration (context=0x1454120, may_block=1) at gmain.c:2654
#29 0x0000003c56779863 in QEventDispatcherGlib::processEvents (this=0x140b860, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#30 0x000000360184a84e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x0000003c56752822 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x0000003c56752aec in QEventLoop::exec (this=0x7fff7fc49720, flags=...) at kernel/qeventloop.cpp:201
#33 0x0000003601baf515 in QMenu::exec (this=0x20c92f0, p=<value optimized out>, action=0x0) at widgets/qmenu.cpp:2063
#34 0x0000003602af1d82 in KTextEdit::contextMenuEvent (this=<value optimized out>, event=0x7fff7fc4a170) at /usr/src/debug/kdelibs-4.4.5/kdeui/widgets/ktextedit.cpp:616
#35 0x00000036017f5e70 in QWidget::event (this=0x2b9c2d0, event=0x7fff7fc4a170) at kernel/qwidget.cpp:8211
#36 0x0000003601b730c6 in QFrame::event (this=0x2b9c2d0, e=0x7fff7fc4a170) at widgets/qframe.cpp:557
#37 0x0000003c567531f7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x2298580, event=0x7fff7fc4a170) at kernel/qcoreapplication.cpp:841
#38 0x00000036017ab36c in QApplicationPrivate::notify_helper (this=0x14518a0, receiver=0x2298580, e=0x7fff7fc4a170) at kernel/qapplication.cpp:4302
#39 0x00000036017b181e in QApplication::notify (this=<value optimized out>, receiver=0x2298580, e=0x7fff7fc4a170) at kernel/qapplication.cpp:3950
#40 0x0000003602a07016 in KApplication::notify (this=0x7fff7fc4afc0, receiver=0x2298580, event=0x7fff7fc4a170) at /usr/src/debug/kdelibs-4.4.5/kdeui/kernel/kapplication.cpp:302
#41 0x0000003c56753ddc in QCoreApplication::notifyInternal (this=0x7fff7fc4afc0, receiver=0x2298580, event=0x7fff7fc4a170) at kernel/qcoreapplication.cpp:726
#42 0x00000036018231a2 in QETWidget::translateMouseEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:4385
#43 0x0000003601821acc in QApplication::x11ProcessEvent (this=0x7fff7fc4afc0, event=0x7fff7fc4aac0) at kernel/qapplication_x11.cpp:3513
#44 0x000000360184ab92 in x11EventSourceDispatch (s=0x1455210, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x0000003c4d63bd02 in g_main_dispatch (context=0x1454120) at gmain.c:1960
#46 IA__g_main_context_dispatch (context=0x1454120) at gmain.c:2513
#47 0x0000003c4d63fae8 in g_main_context_iterate (context=0x1454120, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#48 0x0000003c4d63fc9c in IA__g_main_context_iteration (context=0x1454120, may_block=1) at gmain.c:2654
#49 0x0000003c56779863 in QEventDispatcherGlib::processEvents (this=0x140b860, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#50 0x000000360184a84e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x0000003c56752822 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#52 0x0000003c56752aec in QEventLoop::exec (this=0x7fff7fc4adf0, flags=...) at kernel/qeventloop.cpp:201
#53 0x0000003c567561bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#54 0x0000000000403322 in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdepim-4.4.5/kmail/main.cpp:156

This bug may be a duplicate of or related to bug 219959.

Possible duplicates by query: bug 242991, bug 242897, bug 241291, bug 239038, bug 238982.

Reported using DrKonqi
Comment 1 Laurent Montel 2010-08-25 17:32:57 UTC
I looked at code and I can't understand why it can crash.
And I can't paste from ksnapshot...
Don't know yet
Comment 2 Christophe Marin 2010-09-19 00:27:28 UTC

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