Bug 263015

Summary: Trying to add google gadget crashes Plasma
Product: [Unmaintained] plasma4 Reporter: Anant <anantk>
Component: scriptenginesAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, aseigo
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Anant 2011-01-13 13:56:40 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.5.95 (4.6 RC2)
Qt Version: 4.7.1
Operating System: Linux 2.6.37-12-generic x86_64
Distribution: Ubuntu natty (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
Went to add widgets, then selected Get New Widgets, then selected Download new Google gadget
At this point, a blank window showed up for a couple of seconds followed by a crash of plasma.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f923a9f47a0 (LWP 2159))]

Thread 11 (Thread 0x7f921887a700 (LWP 2161)):
#0  0x00007f923a2ff4b3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f922ed2e260 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f922ed2e789 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f9237732a26 in QEventDispatcherGlib::processEvents (this=0x149b8f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007f9237706ed2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f923770710c in QEventLoop::exec (this=0x7f9218879db0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f923761e214 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f92376e93df in QInotifyFileSystemWatcherEngine::run (this=0x149d5b0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f92376209ce in QThreadPrivate::start (arg=0x149d5b0) at thread/qthread_unix.cpp:285
#9  0x00007f922f62ed8c in start_thread (arg=0x7f921887a700) at pthread_create.c:304
#10 0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f9218079700 (LWP 2162)):
#0  pthread_mutex_unlock (mutex=0x14a01b8) at forward.c:184
#1  0x00007f922ed2d98e in g_main_context_check () from /lib/libglib-2.0.so.0
#2  0x00007f922ed2e282 in ?? () from /lib/libglib-2.0.so.0
#3  0x00007f922ed2e789 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x00007f9237732a26 in QEventDispatcherGlib::processEvents (this=0x149e990, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#5  0x00007f9237706ed2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f923770710c in QEventLoop::exec (this=0x7f9218078dc0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f923761e214 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#8  0x00007f922d07013c in Herqq::Upnp::HControlPointThread::run() () from /usr/lib/libHUpnp.so.0
#9  0x00007f92376209ce in QThreadPrivate::start (arg=0x149e710) at thread/qthread_unix.cpp:285
#10 0x00007f922f62ed8c in start_thread (arg=0x7f9218079700) at pthread_create.c:304
#11 0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f920fdb0700 (LWP 2164)):
#0  0x00007f922ed2e1ea in ?? () from /lib/libglib-2.0.so.0
#1  0x00007f922ed2e789 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#2  0x00007f9237732a26 in QEventDispatcherGlib::processEvents (this=0x150d580, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#3  0x00007f9237706ed2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#4  0x00007f923770710c in QEventLoop::exec (this=0x7f920fdafdb0, flags=...) at kernel/qeventloop.cpp:201
#5  0x00007f923761e214 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#6  0x00007f92376e93df in QInotifyFileSystemWatcherEngine::run (this=0x15b9690) at io/qfilesystemwatcher_inotify.cpp:248
#7  0x00007f92376209ce in QThreadPrivate::start (arg=0x15b9690) at thread/qthread_unix.cpp:285
#8  0x00007f922f62ed8c in start_thread (arg=0x7f920fdb0700) at pthread_create.c:304
#9  0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f920b33f700 (LWP 2210)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9235d12542 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f922f62ed8c in start_thread (arg=0x7f920b33f700) at pthread_create.c:304
#3  0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f9209d5c700 (LWP 15677)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f923762108b in wait (this=<value optimized out>, mutex=0x1b7c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1b7c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f923370c0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1c04c10, th=0xc2dff0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f923370e723 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1b7be70, th=0xc2dff0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f923370d53f in ThreadWeaver::ThreadRunHelper::run (this=0x7f9209d5be00, parent=0x1c04c10, th=0xc2dff0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f923370d5cb in ThreadWeaver::Thread::run (this=0xc2dff0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f92376209ce in QThreadPrivate::start (arg=0xc2dff0) at thread/qthread_unix.cpp:285
#8  0x00007f922f62ed8c in start_thread (arg=0x7f9209d5c700) at pthread_create.c:304
#9  0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f9217660700 (LWP 15678)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f923762108b in wait (this=<value optimized out>, mutex=0x1b7c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1b7c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f923370c0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1c04c10, th=0x28cb230) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f923370e723 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1b7be70, th=0x28cb230) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f923370d53f in ThreadWeaver::ThreadRunHelper::run (this=0x7f921765fe00, parent=0x1c04c10, th=0x28cb230) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f923370d5cb in ThreadWeaver::Thread::run (this=0x28cb230) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f92376209ce in QThreadPrivate::start (arg=0x28cb230) at thread/qthread_unix.cpp:285
#8  0x00007f922f62ed8c in start_thread (arg=0x7f9217660700) at pthread_create.c:304
#9  0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f920870c700 (LWP 15679)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f923762108b in wait (this=<value optimized out>, mutex=0x1b7c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1b7c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f923370c0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1c04c10, th=0x28caad0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f923370e723 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1b7be70, th=0x28caad0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f923370d53f in ThreadWeaver::ThreadRunHelper::run (this=0x7f920870be00, parent=0x1c04c10, th=0x28caad0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f923370d5cb in ThreadWeaver::Thread::run (this=0x28caad0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f92376209ce in QThreadPrivate::start (arg=0x28caad0) at thread/qthread_unix.cpp:285
#8  0x00007f922f62ed8c in start_thread (arg=0x7f920870c700) at pthread_create.c:304
#9  0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9207f0b700 (LWP 15680)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f923762108b in wait (this=<value optimized out>, mutex=0x1b7c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1b7c0f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f923370c0b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1c04c10, th=0xc34610) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f923370e723 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1b7be70, th=0xc34610) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f923370d53f in ThreadWeaver::ThreadRunHelper::run (this=0x7f9207f0ae00, parent=0x1c04c10, th=0xc34610) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f923370d5cb in ThreadWeaver::Thread::run (this=0xc34610) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f92376209ce in QThreadPrivate::start (arg=0xc34610) at thread/qthread_unix.cpp:285
#8  0x00007f922f62ed8c in start_thread (arg=0x7f9207f0b700) at pthread_create.c:304
#9  0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9202e35700 (LWP 21685)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f920307baea in PR_WaitCondVar () from /usr/lib/libnspr4.so
#2  0x00007f920337228e in ?? () from /usr/lib/xulrunner-1.9.2.13/libmozjs.so
#3  0x00007f9203081013 in ?? () from /usr/lib/libnspr4.so
#4  0x00007f922f62ed8c in start_thread (arg=0x7f9202e35700) at pthread_create.c:304
#5  0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9202634700 (LWP 21686)):
#0  0x00007f923a2d3f6d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f923a2d3dfc in __sleep (seconds=0) at ../sysdeps/unix/sysv/linux/sleep.c:138
#2  0x00007f92037ff63d in ?? () from /usr/lib/google-gadgets/modules/smjs-script-runtime.so
#3  0x00007f922f62ed8c in start_thread (arg=0x7f9202634700) at pthread_create.c:304
#4  0x00007f923a30c61d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f923a9f47a0 (LWP 2159)):
[KCrash Handler]
#6  0x00007f920695663d in ggadget::Gadget::GetDefaultFontSize() const () from /usr/lib/libggadget-1.0.so.0
#7  0x00007f92069d74d1 in ggadget::TextFrame::GetSimpleExtents(double*, double*) () from /usr/lib/libggadget-1.0.so.0
#8  0x00007f9206918869 in ggadget::ButtonElement::GetDefaultSize(double*, double*) const () from /usr/lib/libggadget-1.0.so.0
#9  0x00007f920690f31d in ggadget::BasicElement::Layout() () from /usr/lib/libggadget-1.0.so.0
#10 0x00007f920694b39e in ggadget::Elements::Layout() () from /usr/lib/libggadget-1.0.so.0
#11 0x00007f920690f17b in ggadget::BasicElement::Layout() () from /usr/lib/libggadget-1.0.so.0
#12 0x00007f9206945a84 in ggadget::DivElement::Layout() () from /usr/lib/libggadget-1.0.so.0
#13 0x00007f920694b39e in ggadget::Elements::Layout() () from /usr/lib/libggadget-1.0.so.0
#14 0x00007f920690f17b in ggadget::BasicElement::Layout() () from /usr/lib/libggadget-1.0.so.0
#15 0x00007f9206945a84 in ggadget::DivElement::Layout() () from /usr/lib/libggadget-1.0.so.0
#16 0x00007f920694b39e in ggadget::Elements::Layout() () from /usr/lib/libggadget-1.0.so.0
#17 0x00007f92069ea4c3 in ggadget::View::Layout() () from /usr/lib/libggadget-1.0.so.0
#18 0x00007f9206d1f25d in ggadget::qt::QtViewWidget::Impl::paintEvent(QPaintEvent*) () from /usr/lib/libggadget-qt-1.0.so.0
#19 0x00007f9236b1cf8e in QWidget::event (this=0x2faff20, event=0x7fff4affbd50) at kernel/qwidget.cpp:8346
#20 0x00007f9236acc024 in QApplicationPrivate::notify_helper (this=0x78e1d0, receiver=0x2faff20, e=0x7fff4affbd50) at kernel/qapplication.cpp:4445
#21 0x00007f9236ad095a in QApplication::notify (this=<value optimized out>, receiver=0x2faff20, e=0x7fff4affbd50) at kernel/qapplication.cpp:4324
#22 0x00007f92383be6d6 in KApplication::notify (this=0x77ec10, receiver=0x2faff20, event=0x7fff4affbd50) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007f9237707aec in QCoreApplication::notifyInternal (this=0x77ec10, receiver=0x2faff20, event=0x7fff4affbd50) at kernel/qcoreapplication.cpp:732
#24 0x00007f9236b19dcd in sendSpontaneousEvent (this=0x2faff90, pdev=0x2ff1c48, rgn=..., offset=..., flags=5, sharedPainter=0x0, backingStore=0x2fb9370) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#25 QWidgetPrivate::drawWidget (this=0x2faff90, pdev=0x2ff1c48, rgn=..., offset=..., flags=5, sharedPainter=0x0, backingStore=0x2fb9370) at kernel/qwidget.cpp:5433
#26 0x00007f9236cdde4b in QWidgetBackingStore::sync (this=0x2fb9370) at painting/qbackingstore.cpp:1333
#27 0x00007f9236cde199 in QWidgetBackingStore::sync (this=0x2fb9370, exposedWidget=0x2faff20, exposedRegion=...) at painting/qbackingstore.cpp:1130
#28 0x00007f9236b493a2 in QETWidget::translatePaintEvent (this=0x2faff20, event=<value optimized out>) at kernel/qapplication_x11.cpp:5152
#29 0x00007f9236b4a37b in QApplication::x11ProcessEvent (this=0x77ec10, event=0x7fff4affcab0) at kernel/qapplication_x11.cpp:3464
#30 0x00007f9236b72302 in x11EventSourceDispatch (s=0x791c10, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#31 0x00007f922ed2dd0d in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#32 0x00007f922ed2e4f8 in ?? () from /lib/libglib-2.0.so.0
#33 0x00007f922ed2e789 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#34 0x00007f92377329cf in QEventDispatcherGlib::processEvents (this=0x78dfc0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#35 0x00007f9236b71f9e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f9237706ed2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007f923770710c in QEventLoop::exec (this=0x7fff4affcdb0, flags=...) at kernel/qeventloop.cpp:201
#38 0x00007f923770b51b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#39 0x00007f923a5ed5d7 in kdemain (argc=1, argv=0x7fff4affd178) at ../../../../plasma/desktop/shell/main.cpp:118
#40 0x00007f923a24ad1e in __libc_start_main (main=0x400740 <main(int, char**)>, argc=1, ubp_av=0x7fff4affd178, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff4affd168) at libc-start.c:226
#41 0x0000000000400669 in _start ()

Possible duplicates by query: bug 262066, bug 261584, bug 256870, bug 255267, bug 255182.

Reported using DrKonqi
Comment 1 Aaron J. Seigo 2011-01-13 18:44:26 UTC
bug in google gadgets lib. please report to that project. thanks.
Comment 2 Anant 2011-01-14 10:57:23 UTC
No clue how to report it to google gadgets lib??? Any pointers???

Anyway, if it's causing Plasma to crash, I'd think it would be a bug in plasma as well. No matter how mis-behaved google gadgets lib is, it shouldn't cause plasma to crash....
Comment 3 Dario Andres 2011-01-29 13:59:15 UTC
[Comment from a bug triager]
It is already reported to Google Gadgets (described at bug 251923)

About Plasma crashing due to plugins: look at bug 199754.

Regards

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