Bug 217098 - plasma crash when pasting text from mozilla to desktop
Summary: plasma crash when pasting text from mozilla to desktop
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 220819 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-02 17:46 UTC by Pete
Modified: 2009-12-31 16:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pete 2009-12-02 17:46:47 UTC
Application that crashed: plasma-desktop
Version of the application: 0.3
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-15-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
If I copy text from a web page in Firefox (3.5.5+nobinonly-0ubuntu0.9.10.1) or from an email in Thunderbird (2.0.0.23+build1+nobinonly-0ubuntu1) and paste it onto the plasma desktop with a real or two-button middle click, followed by a selection of "notes" or "web browser" from the popup menu, plasma crashes.  It doesn't matter if the webpage or email are in plain text or html.

Plasma does not crash if I:
-click outside the popup menu; the popup simply closes, as expected
-paste the text into an existing plasma note
-copy the text from a dialog box, address bar, or form-based text boxes embedded in a web page 
-copy the text from corresponding web pages in Konqueror or corresponding emails in KMail

Additionally:
-Pasting problem text into various places in other KDE programs doesn't crash them.  I only tested in Dolphin, Kate, Konsole, and Okteta, but I suspect it's the same for others.
-Pasting problem text into Okteta just pastes 8 pairs of zeros, regardless of the copied text's length.  Pasting the same text from Konqueror pastes the actual text, minus formatting, of course.

 -- Backtrace:
Application: Plasma Workspace (plasma-desktop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f2d62bc2770 (LWP 4388))]

Thread 2 (Thread 0x7f2d3e67a910 (LWP 4389)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f2d5f6954fb in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2bfed28, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2bfed28, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f2d5c3e378c in QHostInfoAgent::run (this=0x2bfed10) at kernel/qhostinfo.cpp:260
#4  0x00007f2d5f694445 in QThreadPrivate::start (arg=0x2bfed10) at thread/qthread_unix.cpp:188
#5  0x00007f2d59cc7a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007f2d624ce7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2d62bc2770 (LWP 4388)):
[KCrash Handler]
#5  0x00007f2d5f786d9c in QMimeDataPrivate::retrieveTypedData (this=<value optimized out>, format=..., type=QVariant::ByteArray) at kernel/qmimedata.cpp:107
#6  0x00007f2d5f787582 in QMimeData::data (this=<value optimized out>, mimeType=...) at kernel/qmimedata.cpp:524
#7  0x00007f2d6208fd87 in Plasma::ContainmentPrivate::dropData (this=0x2299610, event=<value optimized out>) at ../../plasma/containment.cpp:1215
#8  0x00007f2d62090324 in Plasma::Containment::mouseReleaseEvent (this=0x227bae0, event=0x7fffc55b8a20) at ../../plasma/containment.cpp:499
#9  0x00007f2d604050e9 in QGraphicsItem::sceneEvent (this=0x7fffc55b7a40, event=0x32e2920) at graphicsview/qgraphicsitem.cpp:5030
#10 0x00007f2d6042abc9 in QGraphicsScenePrivate::sendMouseEvent (this=0x1cc2ff0, mouseEvent=0x7fffc55b8a20) at graphicsview/qgraphicsscene.cpp:1230
#11 0x00007f2d604330d5 in QGraphicsScene::mouseReleaseEvent (this=<value optimized out>, mouseEvent=0x7fffc55b8a20) at graphicsview/qgraphicsscene.cpp:4445
#12 0x00007f2d60434c9f in QGraphicsScene::event (this=0x1be7410, event=0x7fffc55b8a20) at graphicsview/qgraphicsscene.cpp:3808
#13 0x00007f2d5fe7eefc in QApplicationPrivate::notify_helper (this=0x1bf50e0, receiver=0x1be7410, e=0x7fffc55b8a20) at kernel/qapplication.cpp:4056
#14 0x00007f2d5fe861ce in QApplication::notify (this=0x1be3c30, receiver=0x1be7410, e=0x7fffc55b8a20) at kernel/qapplication.cpp:4021
#15 0x00007f2d60f42ab6 in KApplication::notify (this=0x1be3c30, receiver=0x1be7410, event=0x7fffc55b8a20) at ../../kdeui/kernel/kapplication.cpp:302
#16 0x00007f2d5f77ac2c in QCoreApplication::notifyInternal (this=0x1be3c30, receiver=0x1be7410, event=0x7fffc55b8a20) at kernel/qcoreapplication.cpp:610
#17 0x00007f2d60446eb1 in QCoreApplication::sendEvent (this=0x245f8e0, event=0x7fffc55b9210) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#18 QGraphicsView::mouseReleaseEvent (this=0x245f8e0, event=0x7fffc55b9210) at graphicsview/qgraphicsview.cpp:3382
#19 0x00007f2d5fecd9c0 in QWidget::event (this=0x245f8e0, event=0x7fffc55b9210) at kernel/qwidget.cpp:7549
#20 0x00007f2d602292a6 in QFrame::event (this=0x245f8e0, e=0x7fffc55b9210) at widgets/qframe.cpp:559
#21 0x00007f2d6044692b in QGraphicsView::viewportEvent (this=0x245f8e0, event=0x7fffc55b9210) at graphicsview/qgraphicsview.cpp:2919
#22 0x00007f2d5f779f47 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x323a350, event=0x7fffc55b9210) at kernel/qcoreapplication.cpp:726
#23 0x00007f2d5fe7eecc in QApplicationPrivate::notify_helper (this=0x1bf50e0, receiver=0x323a350, e=0x7fffc55b9210) at kernel/qapplication.cpp:4052
#24 0x00007f2d5fe86011 in QApplication::notify (this=<value optimized out>, receiver=0x323a350, e=0x7fffc55b9210) at kernel/qapplication.cpp:3758
#25 0x00007f2d60f42ab6 in KApplication::notify (this=0x1be3c30, receiver=0x323a350, event=0x7fffc55b9210) at ../../kdeui/kernel/kapplication.cpp:302
#26 0x00007f2d5f77ac2c in QCoreApplication::notifyInternal (this=0x1be3c30, receiver=0x323a350, event=0x7fffc55b9210) at kernel/qcoreapplication.cpp:610
#27 0x00007f2d5fe858e0 in QCoreApplication::sendSpontaneousEvent (receiver=0x323a350, event=0x7fffc55b9210, alienWidget=0x323a350, nativeWidget=0x245f8e0, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#28 QApplicationPrivate::sendMouseEvent (receiver=0x323a350, event=0x7fffc55b9210, alienWidget=0x323a350, nativeWidget=0x245f8e0, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>) at kernel/qapplication.cpp:2924
#29 0x00007f2d5feeba0e in QETWidget::translateMouseEvent (this=0x245f8e0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4409
#30 0x00007f2d5feeaaa9 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffc55bad40) at kernel/qapplication_x11.cpp:3550
#31 0x00007f2d5ff13d0c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#32 0x00007f2d59f18bbe in g_main_dispatch (context=0x1bf7920) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:1960
#33 IA__g_main_context_dispatch (context=0x1bf7920) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2513
#34 0x00007f2d59f1c588 in g_main_context_iterate (context=0x1bf7920, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2591
#35 0x00007f2d59f1c6b0 in IA__g_main_context_iteration (context=0x1bf7920, may_block=1) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2654
#36 0x00007f2d5f7a31a6 in QEventDispatcherGlib::processEvents (this=0x1bcae90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#37 0x00007f2d5ff134be in QGuiEventDispatcherGlib::processEvents (this=0x7fffc55b7a40, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#38 0x00007f2d5f779532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#39 0x00007f2d5f779904 in QEventLoop::exec (this=0x7fffc55bb070, flags=) at kernel/qeventloop.cpp:201
#40 0x00007f2d5f77bab9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#41 0x00007f2d6279b4cf in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#42 0x00007f2d6240dabd in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffc55bb378) at libc-start.c:220
#43 0x0000000000400689 in _start ()
The current source language is "auto; currently asm".
The current source language is "auto; currently c".

This bug may be a duplicate of or related to bug 196416

Reported using DrKonqi
Comment 1 Aaron J. Seigo 2009-12-02 18:17:03 UTC
SVN commit 1057509 by aseigo:

double check the clipboard object
BUG:217098


 M  +10 -2     containment.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1057509
Comment 2 Jonathan Thomas 2009-12-31 16:33:37 UTC
*** Bug 220819 has been marked as a duplicate of this bug. ***