Bug 219959 - Kmail crash after paste image. [QMimeDataPrivate::retrieveTypedData, QMimeData::data, KMComposerEditor::insertFromMimeData]
Summary: Kmail crash after paste image. [QMimeDataPrivate::retrieveTypedData, QMimeDat...
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 217302 226407 229553 235750 237219 238982 239038 241291 242897 242991 243304 246657 247087 248974 249846 252039 252843 254681 255309 255637 257268 260574 269616 271329 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-24 15:14 UTC by laurent
Modified: 2011-04-24 13:54 UTC (History)
40 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.5.3 and kdepim 4.4.7


Attachments
New crash information added by DrKonqi (6.96 KB, text/plain)
2010-04-06 15:39 UTC, Nielsen
Details
New crash information added by DrKonqi (6.14 KB, text/plain)
2010-05-06 11:10 UTC, ironmarc
Details
New crash information added by DrKonqi (8.10 KB, text/plain)
2010-05-07 17:54 UTC, Danilo
Details
New crash information added by DrKonqi (4.58 KB, text/plain)
2010-05-13 11:29 UTC, Fred
Details
New crash information added by DrKonqi (6.06 KB, text/plain)
2010-07-11 08:03 UTC, Alan C. Whiteman
Details
New crash information added by DrKonqi (5.86 KB, text/plain)
2010-07-16 00:26 UTC, Alan Dacey Sr.
Details
New crash information added by DrKonqi (5.43 KB, text/plain)
2010-08-05 19:18 UTC, NapBon
Details
New crash information added by DrKonqi (5.29 KB, text/plain)
2010-08-09 13:05 UTC, Julien SCORDIA
Details
New crash information added by DrKonqi (6.22 KB, text/plain)
2010-08-23 23:58 UTC, Thomas
Details
New crash information added by DrKonqi (7.13 KB, text/plain)
2010-09-09 21:38 UTC, bob
Details
New crash information added by DrKonqi (5.76 KB, text/plain)
2010-09-24 18:14 UTC, linuxboy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laurent 2009-12-24 15:14:07 UTC
Application: kmail (1.13.0)
KDE Platform Version: 4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2))
Qt Version: 4.6.0
Operating System: Linux 2.6.31-17-generic i686
Distribution: Ubuntu 9.10

-- Information about the crash:
Kmail crash after paste image from ksnapshot in new message.
The message was empty.

 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7172760 (LWP 3233))]

Thread 2 (Thread 0xb4e62b70 (LWP 3351)):
#0  0x00911422 in __kernel_vsyscall ()
#1  0x008f4e15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x07a9a78d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0x00b27307 in QWaitConditionPrivate::wait (this=0x83f3808, mutex=0x8216b58, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x83f3808, mutex=0x8216b58, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x00e748a0 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x83f37f0, th=0x894c3e0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x00e7741c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8218ee8, th=0x894c3e0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x00e7326b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x83f37f0, th=0x894c3e0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x00e77512 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8218ee8, th=0x894c3e0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x00e74b23 in ThreadWeaver::WeaverImpl::applyForWork (this=0x83f37f0, th=0x894c3e0, previous=0x875b018) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x00e754fe in ThreadWeaver::ThreadRunHelper::run (this=0xb4e622a4, parent=0x83f37f0, th=0x894c3e0) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x00e75b1b in ThreadWeaver::Thread::run (this=0x894c3e0) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x00b263ae in QThreadPrivate::start (arg=0x894c3e0) at thread/qthread_unix.cpp:244
#13 0x008f080e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#14 0x07a8d7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7172760 (LWP 3233)):
[KCrash Handler]
#6  QMimeDataPrivate::retrieveTypedData (this=0x90acd3b, format=..., type=QVariant::ByteArray) at kernel/qmimedata.cpp:107
#7  0x00c35771 in QMimeData::data (this=0x94b95e0, mimeType=...) at kernel/qmimedata.cpp:524
#8  0x0128b00e in KMComposerEditor::insertFromMimeData (this=0x90bbf78, source=0x94b95e0) at ../../kmail/kmcomposereditor.cpp:180
#9  0x05413c6b in QTextEditControl::insertFromMimeData (this=0x9181920, source=0x94b95e0) at widgets/qtextedit.cpp:104
#10 0x051a675f in QTextControl::paste (this=0x9181920) at text/qtextcontrol.cpp:852
#11 0x051ac205 in QTextControl::qt_metacall (this=0x9181920, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0xbfacddd8) at .moc/release-shared/moc_qtextcontrol_p.cpp:173
#12 0x00c2d11a in QMetaObject::metacall (object=0x9181920, cl=3215776764, idx=24, argv=0xbfacddd8) at kernel/qmetaobject.cpp:237
#13 0x00c3b89b in QMetaObject::activate (sender=0x9054398, m=0x5859d98, local_signal_index=1, argv=0xbfacddd8) at kernel/qobject.cpp:3294
#14 0x04f33a39 in QAction::triggered (this=0x9054398, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#15 0x04f35bac in QAction::activate (this=0x9054398, event=QAction::Trigger) at kernel/qaction.cpp:1245
#16 0x053d408c in QMenuPrivate::activateCausedStack (this=0x94a7420, causedStack=..., action=0x9054398, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:994
#17 0x053da37b in QMenuPrivate::activateAction (this=0x94a7420, action=0x9054398, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1086
#18 0x053db3b7 in QMenu::mouseReleaseEvent (this=0x94b77c0, e=0xbface550) at widgets/qmenu.cpp:2307
#19 0x04f96f9e in QWidget::event (this=0x94b77c0, event=0xbface550) at kernel/qwidget.cpp:7974
#20 0x053dca44 in QMenu::event (this=0x94b77c0, e=0xbface550) at widgets/qmenu.cpp:2406
#21 0x04f3a19c in QApplicationPrivate::notify_helper (this=0x808d948, receiver=0x94b77c0, e=0xbface550) at kernel/qapplication.cpp:4242
#22 0x04f4176b in QApplication::notify (this=0xbfacfdac, receiver=0x94b77c0, e=0xbface550) at kernel/qapplication.cpp:3822
#23 0x005960fa in KApplication::notify (this=0xbfacfdac, receiver=0x94b77c0, event=0xbface550) at ../../kdeui/kernel/kapplication.cpp:302
#24 0x00c27eab in QCoreApplication::notifyInternal (this=0xbfacfdac, receiver=0x94b77c0, event=0xbface550) at kernel/qcoreapplication.cpp:704
#25 0x04f4071f in QCoreApplication::sendEvent (receiver=0x94b77c0, event=0xbface550, alienWidget=0x0, nativeWidget=0x94b77c0, buttonDown=0x5875060, lastMouseReceiver=..., spontaneous=true)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QApplicationPrivate::sendMouseEvent (receiver=0x94b77c0, event=0xbface550, alienWidget=0x0, nativeWidget=0x94b77c0, buttonDown=0x5875060, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2956
#27 0x04fca1f7 in QETWidget::translateMouseEvent (this=0x94b77c0, event=0xbfacea6c) at kernel/qapplication_x11.cpp:4302
#28 0x04fc91f1 in QApplication::x11ProcessEvent (this=0xbfacfdac, event=0xbfacea6c) at kernel/qapplication_x11.cpp:3379
#29 0x04ff804a in x11EventSourceDispatch (s=0x808d7a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x01e55e88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#31 0x01e59730 in ?? () from /lib/libglib-2.0.so.0
#32 0x01e59863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#33 0x00c53bd5 in QEventDispatcherGlib::processEvents (this=0x805c018, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#34 0x04ff7b75 in QGuiEventDispatcherGlib::processEvents (this=0x805c018, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#35 0x00c264c9 in QEventLoop::processEvents (this=0xbfaced60, flags=) at kernel/qeventloop.cpp:149
#36 0x00c2691a in QEventLoop::exec (this=0xbfaced60, flags=...) at kernel/qeventloop.cpp:201
#37 0x053d776e in QMenu::exec (this=0x94b77c0, p=..., action=0x0) at widgets/qmenu.cpp:2045
#38 0x006b78b2 in KTextEdit::contextMenuEvent (this=0x90bbf78, event=0xbfacf478) at ../../kdeui/widgets/ktextedit.cpp:617
#39 0x04f976ca in QWidget::event (this=0x90bbf78, event=0xbfacf478) at kernel/qwidget.cpp:8141
#40 0x05390433 in QFrame::event (this=0x90bbf78, e=0xbfacf478) at widgets/qframe.cpp:557
#41 0x05429cf2 in QAbstractScrollArea::viewportEvent (this=0xbfacdbfc, e=0x9) at widgets/qabstractscrollarea.cpp:1032
#42 0x0542c5e5 in QAbstractScrollAreaPrivate::viewportEvent (this=0x90b9588, o=0x90bbf58, e=0xbfacf478) at widgets/qabstractscrollarea_p.h:100
#43 QAbstractScrollAreaFilter::eventFilter (this=0x90b9588, o=0x90bbf58, e=0xbfacf478) at widgets/qabstractscrollarea_p.h:116
#44 0x00c2714a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x808d948, receiver=0x90bbf58, event=0xbfacf478) at kernel/qcoreapplication.cpp:819
#45 0x04f3a179 in QApplicationPrivate::notify_helper (this=0x808d948, receiver=0x90bbf58, e=0xbfacf478) at kernel/qapplication.cpp:4238
#46 0x04f411e6 in QApplication::notify (this=0xbfacfdac, receiver=0x90bbf58, e=0xbfacf478) at kernel/qapplication.cpp:3901
#47 0x005960fa in KApplication::notify (this=0xbfacfdac, receiver=0x90bbf58, event=0xbfacf478) at ../../kdeui/kernel/kapplication.cpp:302
#48 0x00c27eab in QCoreApplication::notifyInternal (this=0xbfacfdac, receiver=0x90bbf58, event=0xbfacf478) at kernel/qcoreapplication.cpp:704
#49 0x04fcfa9e in QCoreApplication::sendSpontaneousEvent (receiver=0x90bbf58, event=0x9) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#50 0x04fca3dc in QETWidget::translateMouseEvent (this=0x93e10a0, event=0xbfacf96c) at kernel/qapplication_x11.cpp:4373
#51 0x04fc91f1 in QApplication::x11ProcessEvent (this=0xbfacfdac, event=0xbfacf96c) at kernel/qapplication_x11.cpp:3379
#52 0x04ff804a in x11EventSourceDispatch (s=0x808d7a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#53 0x01e55e88 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#54 0x01e59730 in ?? () from /lib/libglib-2.0.so.0
#55 0x01e59863 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#56 0x00c53bd5 in QEventDispatcherGlib::processEvents (this=0x805c018, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#57 0x04ff7b75 in QGuiEventDispatcherGlib::processEvents (this=0x805c018, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#58 0x00c264c9 in QEventLoop::processEvents (this=0xbfacfc64, flags=) at kernel/qeventloop.cpp:149
#59 0x00c2691a in QEventLoop::exec (this=0xbfacfc64, flags=...) at kernel/qeventloop.cpp:201
#60 0x00c2ab0f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#61 0x04f3a237 in QApplication::exec () at kernel/qapplication.cpp:3570
#62 0x0804abae in main (argc=3, argv=0xbfacff74) at ../../kmail/main.cpp:156

Reported using DrKonqi
Comment 1 Christophe Marin 2010-03-27 21:40:05 UTC
*** Bug 226407 has been marked as a duplicate of this bug. ***
Comment 2 Nielsen 2010-04-06 15:39:23 UTC
Created attachment 42529 [details]
New crash information added by DrKonqi

Kmail crashes after paste a image from clipboard.
Comment 3 ironmarc 2010-05-06 11:10:50 UTC
Created attachment 43300 [details]
New crash information added by DrKonqi

Same error.
Paste image captured by KSnapshot in a new message in KMail.
Comment 4 Danilo 2010-05-07 17:54:04 UTC
Created attachment 43342 [details]
New crash information added by DrKonqi

Pasting an image from clipboard (via ksnapshot) makes kontact to crash (both inline or as attachment)
Comment 5 Fred 2010-05-13 11:29:17 UTC
Created attachment 43530 [details]
New crash information added by DrKonqi

Try to paste an image from clipboard (from ksnapshot) into a mail (in Kmail).
Crash if paste as attachment or directly in the body of the mail.
Comment 6 tom 2010-05-17 23:06:08 UTC
This happens on Kubuntu 10.04, pasting an image from Firefox (as attachment, but also crashes , when inline):

Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fbd1a5a3780 (LWP 3741))]

Thread 2 (Thread 0x7fbcf7269710 (LWP 3754)):
#0  0x00007fbd17676f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fbd101ac4a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fbd101ac8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007fbd18a61566 in QEventDispatcherGlib::processEvents (this=0x2937cb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007fbd18a36992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007fbd18a36d6c in QEventLoop::exec (this=0x7fbcf7268d90, flags=) at kernel/qeventloop.cpp:201
#6  0x00007fbd18940d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007fbd18a17178 in QInotifyFileSystemWatcherEngine::run (this=0x2aecc30) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fbd18943775 in QThreadPrivate::start (arg=0x2aecc30) at thread/qthread_unix.cpp:248
#9  0x00007fbd127229ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fbd1768369d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fbd1a5a3780 (LWP 3741)):
[KCrash Handler]
#5  QMimeDataPrivate::q_func (this=0x4000000000000000, format=..., type=QVariant::ByteArray) at kernel/qmimedata.cpp:59
#6  QMimeDataPrivate::retrieveTypedData (this=0x4000000000000000, format=..., type=QVariant::ByteArray) at kernel/qmimedata.cpp:105
#7  0x00007fbd18a44ea2 in QMimeData::data (this=<value optimized out>, mimeType=...) at kernel/qmimedata.cpp:524
#8  0x00007fbd00458245 in ?? () from /usr/lib/libkmailprivate.so.4
#9  0x00007fbd1803cf9d in QTextControl::qt_metacall (this=0x37201c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff42c96b30) at .moc/release-shared/moc_qtextcontrol_p.cpp:173
#10 0x00007fbd18a4ae3f in QMetaObject::activate (sender=0x3afd460, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xc) at kernel/qobject.cpp:3293
#11 0x00007fbd17deb032 in QAction::triggered (this=0x7fff42c96630, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#12 0x00007fbd17ded0ab in QAction::activate (this=0x3afd460, event=<value optimized out>) at kernel/qaction.cpp:1255
#13 0x00007fbd1822c39d in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x3afd460, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#14 0x00007fbd18231dda in QMenuPrivate::activateAction (this=0x2934350, action=0x3afd460, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#15 0x00007fbd17e47582 in QWidget::event (this=0x3a64730, event=0x7fff42c975e0) at kernel/qwidget.cpp:7998
#16 0x00007fbd18233f9b in QMenu::event (this=0x3a64730, e=0x7fff42c975e0) at widgets/qmenu.cpp:2414
#17 0x00007fbd17df122c in QApplicationPrivate::notify_helper (this=0x1d6ffe0, receiver=0x3a64730, e=0x7fff42c975e0) at kernel/qapplication.cpp:4300
#18 0x00007fbd17df7ecb in QApplication::notify (this=0x7fff42c999c0, receiver=0x3a64730, e=0x7fff42c975e0) at kernel/qapplication.cpp:3865
#19 0x00007fbd19420526 in KApplication::notify (this=0x7fff42c999c0, receiver=0x3a64730, event=0x7fff42c975e0) at ../../kdeui/kernel/kapplication.cpp:302
#20 0x00007fbd18a3806c in QCoreApplication::notifyInternal (this=0x7fff42c999c0, receiver=0x3a64730, event=0x7fff42c975e0) at kernel/qcoreapplication.cpp:704
#21 0x00007fbd17df70ae in QCoreApplication::sendEvent (receiver=0x3a64730, event=0x7fff42c975e0, alienWidget=0x0, nativeWidget=0x3a64730, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QApplicationPrivate::sendMouseEvent (receiver=0x3a64730, event=0x7fff42c975e0, alienWidget=0x0, nativeWidget=0x3a64730, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#23 0x00007fbd17e773dd in QETWidget::translateMouseEvent (this=0x3a64730, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#24 0x00007fbd17e758ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff42c97f00) at kernel/qapplication_x11.cpp:3501
#25 0x00007fbd17ea1882 in x11EventSourceDispatch (s=0x1d769f0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#26 0x00007fbd101a88c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#27 0x00007fbd101ac748 in ?? () from /lib/libglib-2.0.so.0
#28 0x00007fbd101ac8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#29 0x00007fbd18a61513 in QEventDispatcherGlib::processEvents (this=0x1d43d70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#30 0x00007fbd17ea146e in QGuiEventDispatcherGlib::processEvents (this=0x7fff42c96630, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007fbd18a36992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#32 0x00007fbd18a36d6c in QEventLoop::exec (this=0x7fff42c98230, flags=) at kernel/qeventloop.cpp:201
#33 0x00007fbd1822f4e5 in QMenu::exec (this=0x3a64730, p=<value optimized out>, action=0x0) at widgets/qmenu.cpp:2063
#34 0x00007fbd19521d75 in KTextEdit::contextMenuEvent (this=<value optimized out>, event=<value optimized out>) at ../../kdeui/widgets/ktextedit.cpp:617
#35 0x00007fbd17e46f68 in QWidget::event (this=0x371a2d0, event=0x7fff42c98c80) at kernel/qwidget.cpp:8165
#36 0x00007fbd181ee4e6 in QFrame::event (this=0x371a2d0, e=0x7fff42c98c80) at widgets/qframe.cpp:557
#37 0x00007fbd18a37487 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x371a120, event=0x7fff42c98c80) at kernel/qcoreapplication.cpp:819
#38 0x00007fbd17df11fc in QApplicationPrivate::notify_helper (this=0x1d6ffe0, receiver=0x371a120, e=0x7fff42c98c80) at kernel/qapplication.cpp:4296
#39 0x00007fbd17df78c3 in QApplication::notify (this=0x7fff42c999c0, receiver=0x371a120, e=0x7fff42c98c80) at kernel/qapplication.cpp:3944
#40 0x00007fbd19420526 in KApplication::notify (this=0x7fff42c999c0, receiver=0x371a120, event=0x7fff42c98c80) at ../../kdeui/kernel/kapplication.cpp:302
#41 0x00007fbd18a3806c in QCoreApplication::notifyInternal (this=0x7fff42c999c0, receiver=0x371a120, event=0x7fff42c98c80) at kernel/qcoreapplication.cpp:704
#42 0x00007fbd17e76fb2 in QETWidget::translateMouseEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:4373
#43 0x00007fbd17e758ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff42c995d0) at kernel/qapplication_x11.cpp:3501
#44 0x00007fbd17ea1882 in x11EventSourceDispatch (s=0x1d769f0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x00007fbd101a88c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#46 0x00007fbd101ac748 in ?? () from /lib/libglib-2.0.so.0
#47 0x00007fbd101ac8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#48 0x00007fbd18a61513 in QEventDispatcherGlib::processEvents (this=0x1d43d70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#49 0x00007fbd17ea146e in QGuiEventDispatcherGlib::processEvents (this=0x7fff42c96630, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007fbd18a36992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#51 0x00007fbd18a36d6c in QEventLoop::exec (this=0x7fff42c99900, flags=) at kernel/qeventloop.cpp:201
#52 0x00007fbd18a3aaab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#53 0x0000000000403e8e in _start 

Next try: pasting image from ksnapshot - same crash:

Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fab0b1f3780 (LWP 3888))]

Thread 2 (Thread 0x7faae3dab710 (LWP 3901)):
#0  0x00007fab033753f5 in __pthread_mutex_lock (mutex=0x2762fb8) at pthread_mutex_lock.c:61
#1  0x00007fab00dfbb37 in g_main_context_check () from /lib/libglib-2.0.so.0
#2  0x00007fab00dfc4c3 in ?? () from /lib/libglib-2.0.so.0
#3  0x00007fab00dfc8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x00007fab096b1566 in QEventDispatcherGlib::processEvents (this=0x27633c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#5  0x00007fab09686992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007fab09686d6c in QEventLoop::exec (this=0x7faae3daad90, flags=) at kernel/qeventloop.cpp:201
#7  0x00007fab09590d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#8  0x00007fab09667178 in QInotifyFileSystemWatcherEngine::run (this=0x2752ce0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fab09593775 in QThreadPrivate::start (arg=0x2752ce0) at thread/qthread_unix.cpp:248
#10 0x00007fab033729ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#11 0x00007fab082d369d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fab0b1f3780 (LWP 3888)):
[KCrash Handler]
#5  QMimeData::hasImage (this=0x352a440) at kernel/qmimedata.cpp:470
#6  0x00007fab04bbaf58 in KPIMTextEdit::TextEdit::insertFromMimeData (this=0x3169a70, source=0x352a440) at ../../kpimtextedit/textedit.cpp:546
#7  0x00007faaf10a897d in ?? () from /usr/lib/libkmailprivate.so.4
#8  0x00007fab08c8cf9d in QTextControl::qt_metacall (this=0x31748c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5bd68ca0) at .moc/release-shared/moc_qtextcontrol_p.cpp:173
#9  0x00007fab0969ae3f in QMetaObject::activate (sender=0x3163b70, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x80130) at kernel/qobject.cpp:3293
#10 0x00007fab08a3b032 in QAction::triggered (this=0x7fab0972d95e, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#11 0x00007fab08a3d0ab in QAction::activate (this=0x3163b70, event=<value optimized out>) at kernel/qaction.cpp:1255
#12 0x00007fab08e7c39d in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x3163b70, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#13 0x00007fab08e81dda in QMenuPrivate::activateAction (this=0x3519be0, action=0x3163b70, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#14 0x00007fab08a97582 in QWidget::event (this=0x34e80a0, event=0x7fff5bd69750) at kernel/qwidget.cpp:7998
#15 0x00007fab08e83f9b in QMenu::event (this=0x34e80a0, e=0x7fff5bd69750) at widgets/qmenu.cpp:2414
#16 0x00007fab08a4122c in QApplicationPrivate::notify_helper (this=0x1a14fe0, receiver=0x34e80a0, e=0x7fff5bd69750) at kernel/qapplication.cpp:4300
#17 0x00007fab08a47ecb in QApplication::notify (this=0x7fff5bd6bb30, receiver=0x34e80a0, e=0x7fff5bd69750) at kernel/qapplication.cpp:3865
#18 0x00007fab0a070526 in KApplication::notify (this=0x7fff5bd6bb30, receiver=0x34e80a0, event=0x7fff5bd69750) at ../../kdeui/kernel/kapplication.cpp:302
#19 0x00007fab0968806c in QCoreApplication::notifyInternal (this=0x7fff5bd6bb30, receiver=0x34e80a0, event=0x7fff5bd69750) at kernel/qcoreapplication.cpp:704
#20 0x00007fab08a470ae in QCoreApplication::sendEvent (receiver=0x34e80a0, event=0x7fff5bd69750, alienWidget=0x0, nativeWidget=0x34e80a0, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#21 QApplicationPrivate::sendMouseEvent (receiver=0x34e80a0, event=0x7fff5bd69750, alienWidget=0x0, nativeWidget=0x34e80a0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#22 0x00007fab08ac73dd in QETWidget::translateMouseEvent (this=0x34e80a0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#23 0x00007fab08ac58ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff5bd6a070) at kernel/qapplication_x11.cpp:3501
#24 0x00007fab08af1882 in x11EventSourceDispatch (s=0x1a1b9f0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#25 0x00007fab00df88c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x00007fab00dfc748 in ?? () from /lib/libglib-2.0.so.0
#27 0x00007fab00dfc8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x00007fab096b1513 in QEventDispatcherGlib::processEvents (this=0x19e8d70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#29 0x00007fab08af146e in QGuiEventDispatcherGlib::processEvents (this=0x7fab0972d95e, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007fab09686992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007fab09686d6c in QEventLoop::exec (this=0x7fff5bd6a3a0, flags=) at kernel/qeventloop.cpp:201
#32 0x00007fab08e7f4e5 in QMenu::exec (this=0x34e80a0, p=<value optimized out>, action=0x0) at widgets/qmenu.cpp:2063
#33 0x00007fab0a171d75 in KTextEdit::contextMenuEvent (this=<value optimized out>, event=<value optimized out>) at ../../kdeui/widgets/ktextedit.cpp:617
#34 0x00007fab08a96f68 in QWidget::event (this=0x3169a70, event=0x7fff5bd6adf0) at kernel/qwidget.cpp:8165
#35 0x00007fab08e3e4e6 in QFrame::event (this=0x3169a70, e=0x7fff5bd6adf0) at widgets/qframe.cpp:557
#36 0x00007fab09687487 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x316eb90, event=0x7fff5bd6adf0) at kernel/qcoreapplication.cpp:819
#37 0x00007fab08a411fc in QApplicationPrivate::notify_helper (this=0x1a14fe0, receiver=0x316eb90, e=0x7fff5bd6adf0) at kernel/qapplication.cpp:4296
#38 0x00007fab08a478c3 in QApplication::notify (this=0x7fff5bd6bb30, receiver=0x316eb90, e=0x7fff5bd6adf0) at kernel/qapplication.cpp:3944
#39 0x00007fab0a070526 in KApplication::notify (this=0x7fff5bd6bb30, receiver=0x316eb90, event=0x7fff5bd6adf0) at ../../kdeui/kernel/kapplication.cpp:302
#40 0x00007fab0968806c in QCoreApplication::notifyInternal (this=0x7fff5bd6bb30, receiver=0x316eb90, event=0x7fff5bd6adf0) at kernel/qcoreapplication.cpp:704
#41 0x00007fab08ac6fb2 in QETWidget::translateMouseEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:4373
#42 0x00007fab08ac58ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff5bd6b740) at kernel/qapplication_x11.cpp:3501
#43 0x00007fab08af1882 in x11EventSourceDispatch (s=0x1a1b9f0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#44 0x00007fab00df88c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#45 0x00007fab00dfc748 in ?? () from /lib/libglib-2.0.so.0
#46 0x00007fab00dfc8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#47 0x00007fab096b1513 in QEventDispatcherGlib::processEvents (this=0x19e8d70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#48 0x00007fab08af146e in QGuiEventDispatcherGlib::processEvents (this=0x7fab0972d95e, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#49 0x00007fab09686992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#50 0x00007fab09686d6c in QEventLoop::exec (this=0x7fff5bd6ba70, flags=) at kernel/qeventloop.cpp:201
#51 0x00007fab0968aaab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#52 0x0000000000403e8e in _start ()
Comment 7 Jonathan Thomas 2010-05-27 15:41:16 UTC
*** Bug 238982 has been marked as a duplicate of this bug. ***
Comment 8 Jonathan Thomas 2010-05-27 20:30:55 UTC
*** Bug 239038 has been marked as a duplicate of this bug. ***
Comment 9 Christophe Marin 2010-06-10 13:29:41 UTC
*** Bug 241291 has been marked as a duplicate of this bug. ***
Comment 10 Nicolas L. 2010-06-28 10:14:48 UTC
*** Bug 242897 has been marked as a duplicate of this bug. ***
Comment 11 Nicolas L. 2010-06-28 10:14:55 UTC
*** Bug 242991 has been marked as a duplicate of this bug. ***
Comment 12 Majki 2010-07-01 16:53:25 UTC
Really sad bug :(
Comment 13 Nicolas L. 2010-07-02 14:49:05 UTC
*** Bug 243304 has been marked as a duplicate of this bug. ***
Comment 14 Alan C. Whiteman 2010-07-11 08:03:46 UTC
Created attachment 48763 [details]
New crash information added by DrKonqi

Crashed after pasting image in clipboard.
Comment 15 Alan Dacey Sr. 2010-07-16 00:26:39 UTC
Created attachment 49185 [details]
New crash information added by DrKonqi

Repliing to an email, tried to paste and image from KSnapShot and Kontact/Kmail immediately crashed.  Crashes by pasting both inline and as attachment.  Reproduced the crash five times.  Using Kubuntu 10.04 / KDE 4.4.5.  More information avalable if you need it.
Comment 16 NapBon 2010-08-05 19:18:32 UTC
Created attachment 49846 [details]
New crash information added by DrKonqi

kontact (4.4.5) on KDE Platform 4.4.92 (KDE 4.4.92 (KDE 4.5 RC2)) using Qt 4.7.0

- What I was doing when the application crashed:

Pasted an image into an email and selected "as attachement".

-- Backtrace (Reduced):
#6  0x00007f814c885b2c in QMimeDataPrivate::retrieveTypedData (this=<value optimized out>, format=..., type=QVariant::ByteArray) at kernel/qmimedata.cpp:107
#7  0x00007f814c886312 in QMimeData::data (this=<value optimized out>, mimeType=...) at kernel/qmimedata.cpp:524
[...]
#9  0x00007f814e09d489 in KTextEdit::Private::handleShortcut (this=0x5c1ace0, event=<value optimized out>) at ../../kdeui/widgets/ktextedit.cpp:340
#10 0x00007f814e09dd5d in KTextEdit::keyPressEvent (this=0x570a120, event=0x3353470) at ../../kdeui/widgets/ktextedit.cpp:1071
#11 0x00007f814e08783b in KRichTextEdit::keyPressEvent (this=0x570a120, event=0x7fffa13f41c0) at ../../kdeui/widgets/krichtextedit.cpp:468
Comment 17 Martin L ü c h e m 2010-08-08 10:07:04 UTC
I can confirm this. Same situation with my installation. I used KSnapShot to copy image to the clipboad.

KMail
Version 1.13.5
Unter KDE 4.4.5 (KDE 4.4.5)

Does anyone work on this bug? This is a CRASH with lost of data! It happens quite often because one always forgets it. Lost of data means: Writing a long mail -> paste -> crash -> no backup of the mail. => very annoying!

Martin
Comment 18 Martin L ü c h e m 2010-08-08 18:08:02 UTC
The crash only occurs, when "HTML mode" is activated. Using plain text this will work!!!! 

With "plain text" even drag-and-drop from KSnapShot works perfectly!

Regards, Martin
Comment 19 Jay 2010-08-08 20:41:43 UTC
*** Bug 247087 has been marked as a duplicate of this bug. ***
Comment 20 Jay 2010-08-08 20:55:34 UTC
This is a duplicate of Bug 229553.  Additional notes: even if the user escapes from the floating menu ("insert in-line" or "as attachment"), Kontact still crashes.  I assume that means that it's an issue with the menu code itself and not related to the clipboard content.  This still affects Kmail 1.13.2 under KDE 4.2.2.

In order to minimize data loss, set your autosave to 1 minute intervals (Kmail/Settings/Composer).
Comment 21 Björn Ruberg 2010-08-09 00:38:19 UTC
*** Bug 237219 has been marked as a duplicate of this bug. ***
Comment 22 Björn Ruberg 2010-08-09 00:38:49 UTC
*** Bug 229553 has been marked as a duplicate of this bug. ***
Comment 23 Björn Ruberg 2010-08-09 00:39:27 UTC
*** Bug 246657 has been marked as a duplicate of this bug. ***
Comment 24 Julien SCORDIA 2010-08-09 13:05:58 UTC
Created attachment 49939 [details]
New crash information added by DrKonqi

Kmail crashes when pasting an image from Ksnapshot in a new message.
Comment 25 chris 2010-08-16 23:14:48 UTC
...can confirm the crash on menu exit as mentioned by Jay.

...drag drop works fine even for HTML (as attachment and inline)
Comment 26 Martin L ü c h e m 2010-08-17 09:29:42 UTC
Hi Chris,

Am Montag, 16. August 2010, um 23:14:56 schrieb chris@you-th.de:
> ...can confirm the crash on menu exit as mentioned by Jay.
> 
> ...drag drop works fine even for HTML (as attachment and inline)

you are write! 

1. HTML

- Drag-and-drop works, no matter if inline or as attachement.

- Cut-and-paste will not work, no matter if inline or as attachement, in this 
case KMail will crash! 

2. Plain Text

- Drag-and-drop works

- Drag-and-drop works

Regards, Martin
Comment 27 Thomas 2010-08-23 23:58:23 UTC
Created attachment 50876 [details]
New crash information added by DrKonqi

Copy an Image from Firefox -> paste it in an e-mail I am writing -> Kontact crashes
I did it twice -> reproduceable on Kubuntu 10.04
Comment 28 Nicolas L. 2010-09-09 00:07:34 UTC
*** Bug 249846 has been marked as a duplicate of this bug. ***
Comment 29 bob 2010-09-09 21:38:39 UTC
Created attachment 51487 [details]
New crash information added by DrKonqi

same pb as the others. the image comes from a screenshot.
Comment 30 Christophe Marin 2010-09-19 00:27:28 UTC
*** Bug 248974 has been marked as a duplicate of this bug. ***
Comment 31 Christophe Marin 2010-09-19 21:19:58 UTC
*** Bug 217302 has been marked as a duplicate of this bug. ***
Comment 32 Christophe Marin 2010-09-22 15:07:59 UTC
*** Bug 252039 has been marked as a duplicate of this bug. ***
Comment 33 linuxboy 2010-09-24 18:14:33 UTC
Created attachment 51960 [details]
New crash information added by DrKonqi

open firefox, browse a website, right-click on image, select "copy image". Then open kmail, click on new message, then use CTRL-V to paste image. Select "paste as inline image" and fireworks happens.
Comment 34 Laurent Montel 2010-09-29 18:02:07 UTC
Fixed in trunk and backported to kdepimlibs-4.5.x and kmail-4.4.x
Comment 35 Christophe Marin 2010-09-30 18:01:36 UTC
*** Bug 252843 has been marked as a duplicate of this bug. ***
Comment 36 Christophe Marin 2010-10-20 12:18:41 UTC
*** Bug 254681 has been marked as a duplicate of this bug. ***
Comment 37 Christoph Feck 2010-10-31 00:59:20 UTC
*** Bug 235750 has been marked as a duplicate of this bug. ***
Comment 38 Christoph Feck 2010-10-31 00:59:45 UTC
*** Bug 255637 has been marked as a duplicate of this bug. ***
Comment 39 Christoph Feck 2010-10-31 01:10:58 UTC
*** Bug 255309 has been marked as a duplicate of this bug. ***
Comment 40 Dario Andres 2010-11-20 17:12:33 UTC
*** Bug 257268 has been marked as a duplicate of this bug. ***
Comment 41 Dario Andres 2010-11-20 17:19:11 UTC
[Comment from a bug triager]
Just for information purposes: the bug was fixed by the commits described at bug 252704 comment 2 (http://websvn.kde.org/?view=rev&revision=1180967 and http://websvn.kde.org/?view=rev&revision=1180968)
Comment 42 p92 2010-11-22 10:25:04 UTC
yes it works in KDE 4.5.3
Comment 43 Gary Boucher 2010-12-01 19:45:05 UTC
Excuse ignorance, but if this bug is fixed, what do I need to do to make it go away for me? Some particular update path?
Comment 44 Dario Andres 2010-12-01 19:57:01 UTC
[Comment from a bug triager]
I can confirm that the commits that fixed the issue are present in kdepimlibs 4.5.3 (KDE SC 4.5.3) and the last kdepim (4.4.7)
@Gary Boucher: Updating to that versions should be enough.
Comment 45 Christophe Marin 2010-12-17 21:13:19 UTC
*** Bug 260574 has been marked as a duplicate of this bug. ***
Comment 46 Christophe Marin 2011-04-06 15:58:30 UTC
*** Bug 269616 has been marked as a duplicate of this bug. ***
Comment 47 Christophe Marin 2011-04-24 13:54:21 UTC
*** Bug 271329 has been marked as a duplicate of this bug. ***