Bug 179156

Summary: Moving systemtray around the desktop (outside of panel) crashes plasma with signal 11 (SIGSEGV)
Product: [Unmaintained] plasma4 Reporter: Cassiano Leal <cassianoleal>
Component: widget-systemtrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: andresbajotierra, christian.gonzalez, echidnaman, kde, matthew.linux, paragw
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Cassiano Leal 2008-12-30 18:01:43 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Using svn packages from kde42.debian.net.

I took the systray out of the panel and was moving it around. Plasma then crashed.

Follows the backtrace:

Application: Plasma Workspace (plasma), signal SIGSEGV
[Current thread is 0 (LWP 4840)]

Thread 4 (Thread 0xa9b66b90 (LWP 4851)):
#0  0xb7f21424 in __kernel_vsyscall ()
#1  0xb5750075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb7e2a99d in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb6856542 in QWaitCondition::wait (this=0x9fc2458, mutex=0x9fc2454, time=4294967295) at thread/qwaitcondition_unix.cpp:82
#4  0xb5933312 in QHostInfoAgent::run (this=0x9fc2448) at kernel/qhostinfo.cpp:241
#5  0xb685552e in QThreadPrivate::start (arg=0x9fc2448) at thread/qthread_unix.cpp:185
#6  0xb574c510 in start_thread () from /lib/i686/cmov/libpthread.so.0
#7  0xb7e1c79e in clone () from /lib/i686/cmov/libc.so.6

Thread 3 (Thread 0xa9323b90 (LWP 4857)):
#0  0xb7f21424 in __kernel_vsyscall ()
#1  0xb5750075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb7e2a99d in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb6856542 in QWaitCondition::wait (this=0x9ddfdb0, mutex=0x9ddfdac, time=4294967295) at thread/qwaitcondition_unix.cpp:82
#4  0xa9cd83c2 in RenderThread::run (this=0x9ddfda4) at ../../../../plasma/wallpapers/image/renderthread.cpp:91
#5  0xb685552e in QThreadPrivate::start (arg=0x9ddfda4) at thread/qthread_unix.cpp:185
#6  0xb574c510 in start_thread () from /lib/i686/cmov/libpthread.so.0
#7  0xb7e1c79e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xa8b22b90 (LWP 5066)):
#0  0xb7f21424 in __kernel_vsyscall ()
#1  0xb5750075 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb7e2a99d in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb6856542 in QWaitCondition::wait (this=0x9dfaf30, mutex=0x9dfaf2c, time=4294967295) at thread/qwaitcondition_unix.cpp:82
#4  0xa9cd83c2 in RenderThread::run (this=0x9dfaf24) at ../../../../plasma/wallpapers/image/renderthread.cpp:91
#5  0xb685552e in QThreadPrivate::start (arg=0x9dfaf24) at thread/qthread_unix.cpp:185
#6  0xb574c510 in start_thread () from /lib/i686/cmov/libpthread.so.0
#7  0xb7e1c79e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb535e6e0 (LWP 4840)):
[KCrash Handler]
#6  QWidget::mapToParent (this=0x0, pos=@0xbff3d040) at kernel/qwidget.cpp:3645
#7  0xb6c1a723 in QWidget::mapTo (this=0x12, parent=0xa274d18, pos=@0xbff3d0ec) at kernel/qwidget.cpp:3601
#8  0xa9d0e5ce in SystemTray::X11EmbedPainter::performUpdates (this=0xa1ffad8) at ../../../../plasma/applets/systemtray/protocols/fdo/x11embedpainter.cpp:135
#9  0xa9d0ed5b in SystemTray::X11EmbedPainter::qt_metacall (this=0xa1ffad8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbff3d1c8) at ./x11embedpainter.moc:68
#10 0xb6959bd0 in QMetaObject::activate (sender=0xa1fd344, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3031
#11 0xb695a952 in QMetaObject::activate (sender=0xa1fd344, m=0xb6a280a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101
#12 0xb6994857 in QTimer::timeout (this=0xa1fd344) at .moc/release-shared/moc_qtimer.cpp:126
#13 0xb696057e in QTimer::timerEvent (this=0xa1fd344, e=0xbff3d65c) at kernel/qtimer.cpp:257
#14 0xb69546af in QObject::event (this=0xa1fd344, e=0xbff3d65c) at kernel/qobject.cpp:1120
#15 0xb6bd379c in QApplicationPrivate::notify_helper (this=0x9b8d700, receiver=0xa1fd344, e=0xbff3d65c) at kernel/qapplication.cpp:3803
#16 0xb6bdb61e in QApplication::notify (this=0x9b71a98, receiver=0xa1fd344, e=0xbff3d65c) at kernel/qapplication.cpp:3393
#17 0xb77aaa0d in KApplication::notify (this=0x9b71a98, receiver=0xa1fd344, event=0xbff3d65c) at ../../kdeui/kernel/kapplication.cpp:307
#18 0xb69450d1 in QCoreApplication::notifyInternal (this=0x9b71a98, receiver=0xa1fd344, event=0xbff3d65c) at kernel/qcoreapplication.cpp:587
#19 0xb6973031 in QTimerInfoList::activateTimers (this=0x9b96684) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#20 0xb696f680 in timerSourceDispatch (source=0x9b96650) at kernel/qeventdispatcher_glib.cpp:160
#21 0xb5798398 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0xb579ba33 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0x09b90898 in ?? ()
#24 0x00000000 in ?? ()
Comment 1 Dario Andres 2009-02-05 13:02:17 UTC
Have you experienced this again with an updated build or 4.2.0 stable ?
Comment 2 Cassiano Leal 2009-02-05 15:33:06 UTC
No. Just tried it and it works!

Thanks again for all the great work!
Comment 3 Dario Andres 2009-03-26 00:09:23 UTC
*** Bug 180645 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Thomas 2009-03-26 12:59:13 UTC
This is still a problem, as the duplicate bug was reported against KDE 4.2.60 and we've been getting reports about this at Kubuntu since 4.2.1.
Comment 5 paragw 2009-05-05 01:51:21 UTC
Application: Plasma Workspace (plasma), signal SIGSEGV
0x00007f9be6ae5d21 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 4145)]

Thread 5 (Thread 0x7f9bcdd0d950 (LWP 4152)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f9be75c7939 in QWaitCondition::wait (this=0x120b350, mutex=0x120b348, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f9bead834cc in QHostInfoAgent::run (this=0x120b330) at kernel/qhostinfo.cpp:260
#3  0x00007f9be75c6952 in QThreadPrivate::start (arg=0x120b330) at thread/qthread_unix.cpp:189
#4  0x00007f9be3f1b3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#5  0x00007f9be6b23fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9bc4396950 (LWP 4154)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f9be75c614b in QMutexPrivate::wait (this=0xa566d0, timeout=-1) at thread/qmutex_unix.cpp:80
#2  0x00007f9be75c1926 in QMutex::lock (this=0xa56598) at thread/qmutex.cpp:169
#3  0x00007f9be79c3e95 in qDBusRemoveWatch (watch=0xa5ff30, data=<value optimized out>) at qdbusthreaddebug_p.h:183
#4  0x00007f9be0580ebb in ?? () from /lib/libdbus-1.so.3
#5  0x00007f9be056abab in ?? () from /lib/libdbus-1.so.3
#6  0x00007f9be0580594 in ?? () from /lib/libdbus-1.so.3
#7  0x00007f9be0580609 in ?? () from /lib/libdbus-1.so.3
#8  0x00007f9be057e497 in ?? () from /lib/libdbus-1.so.3
#9  0x00007f9be057f9b1 in ?? () from /lib/libdbus-1.so.3
#10 0x00007f9be058015e in ?? () from /lib/libdbus-1.so.3
#11 0x00007f9be0580337 in ?? () from /lib/libdbus-1.so.3
#12 0x00007f9be057e5e4 in ?? () from /lib/libdbus-1.so.3
#13 0x00007f9be056b1ae in ?? () from /lib/libdbus-1.so.3
#14 0x00007f9be056b28a in ?? () from /lib/libdbus-1.so.3
#15 0x00007f9be056b349 in ?? () from /lib/libdbus-1.so.3
#16 0x00007f9be056c391 in dbus_connection_send_with_reply () from /lib/libdbus-1.so.3
#17 0x00007f9be056c4f1 in dbus_connection_send_with_reply_and_block () from /lib/libdbus-1.so.3
#18 0x00007f9be79d338c in QDBusConnectionPrivate::sendWithReply (this=0xa56550, message=@0x7f9bc4391300, sendMode=0, timeout=-1) at ./qdbus_symbols_p.h:133
#19 0x00007f9be79bc853 in QDBusConnection::call (this=0xa58810, message=@0x5, mode=4294967295, timeout=10839792) at qdbusconnection.cpp:516
#20 0x00007f9be79da5cf in QDBusAbstractInterface::callWithArgumentList (this=0xa586c0, mode=QDBus::Block, method=<value optimized out>, args=@0x7f9bc4391420) at qdbusabstractinterface.cpp:402
#21 0x00007f9be79dab29 in QDBusAbstractInterface::internalConstCall (this=0x80, mode=5, method=@0xffffffffffffffff, args=@0xa566f0) at qdbusabstractinterface.cpp:724
#22 0x00007f9be79bf353 in QDBusConnectionInterface::isServiceRegistered (this=0xa586c0, serviceName=<value optimized out>) at qdbusconnectioninterface.cpp:207
#23 0x00007f9be9f5bc04 in KToolInvocation::klauncher () from /usr/lib/libkdecore.so.5
#24 0x00007f9beb1ab432 in KIO::Slave::createSlave () from /usr/lib/libkio.so.5
#25 0x00007f9beb1a4f53 in ?? () from /usr/lib/libkio.so.5
#26 0x00007f9beb1a647f in ?? () from /usr/lib/libkio.so.5
#27 0x00007f9beb1a64c8 in ?? () from /usr/lib/libkio.so.5
#28 0x00007f9beb1a6754 in KIO::Scheduler::qt_metacall () from /usr/lib/libkio.so.5
#29 0x00007f9be76c51f2 in QMetaObject::activate (sender=0x7f9bc80c1a28, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffffffffffff) at kernel/qobject.cpp:3069
#30 0x00007f9be76bf4d3 in QObject::event (this=0x7f9bc80c1a28, e=0x80) at kernel/qobject.cpp:1082
#31 0x00007f9be7df483d in QApplicationPrivate::notify_helper (this=0xa66cd0, receiver=0x7f9bc80c1a28, e=0x7f9bc4392100) at kernel/qapplication.cpp:4084
#32 0x00007f9be7dfca2a in QApplication::notify (this=0xa5d340, receiver=0x7f9bc80c1a28, e=0x7f9bc4392100) at kernel/qapplication.cpp:4049
#33 0x00007f9bea4b126b in KApplication::notify () from /usr/lib/libkdeui.so.5
#34 0x00007f9be76af75c in QCoreApplication::notifyInternal (this=0xa5d340, receiver=0x7f9bc80c1a28, event=0x7f9bc4392100) at kernel/qcoreapplication.cpp:602
#35 0x00007f9be76dc7f6 in QTimerInfoList::activateTimers (this=0x26ec700) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#36 0x00007f9be76d8f0d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:164
#37 0x00007f9be22eb20a in IA__g_main_context_dispatch (context=0x270da60) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#38 0x00007f9be22ee8e0 in g_main_context_iterate (context=0x270da60, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#39 0x00007f9be22eea7c in IA__g_main_context_iteration (context=0x270da60, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#40 0x00007f9be76d8e6f in QEventDispatcherGlib::processEvents (this=0x2705490, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323
#41 0x00007f9be76ae002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1002888384}) at kernel/qeventloop.cpp:149
#42 0x00007f9be76ae3cd in QEventLoop::exec (this=0x7f9bc4392380, flags={i = -1002888304}) at kernel/qeventloop.cpp:200
#43 0x00007f9beb19039c in KIO::NetAccess::enter_loop () from /usr/lib/libkio.so.5
#44 0x00007f9beb1909d6 in KIO::NetAccess::synchronousRunInternal () from /usr/lib/libkio.so.5
#45 0x00007f9beb19100e in KIO::NetAccess::synchronousRun () from /usr/lib/libkio.so.5
#46 0x00007f9bce153605 in Update_Thread::downloadFile (this=<value optimized out>, url=
      {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 12608}, alloc = 0, size = 0, data = 0x7f9be79a541a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 648}, alloc = 0, size = 0, data = 0x7f9be79a543a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x7f9bc43946b0, static codecForCStrings = 0x0}, data=0x13cad40) at /home/parag/cwp-0.9.9/plasma-cwp-update-thread.cpp:1191
#47 0x00007f9bce15e870 in Update_Thread::collectAndParseData (this=0x1429110) at /home/parag/cwp-0.9.9/plasma-cwp-update-thread.cpp:754
#48 0x00007f9bce15f68c in Update_Thread::run (this=0x1429110) at /home/parag/cwp-0.9.9/plasma-cwp-update-thread.cpp:88
#49 0x00007f9be75c6952 in QThreadPrivate::start (arg=0x1429110) at thread/qthread_unix.cpp:189
#50 0x00007f9be3f1b3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#51 0x00007f9be6b23fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#52 0x0000000000000000 in ?? ()
Current language:  auto; currently asm

Thread 3 (Thread 0x7f9bbe230950 (LWP 4408)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f9be75c7939 in QWaitCondition::wait (this=0xd22988, mutex=0xd22980, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f9bce3b4bae in ?? () from /usr/lib/kde4/plasma_wallpaper_weather.so
#3  0x00007f9be75c6952 in QThreadPrivate::start (arg=0xd22970) at thread/qthread_unix.cpp:189
#4  0x00007f9be3f1b3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#5  0x00007f9be6b23fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9bbda2f950 (LWP 4413)):
#0  0x00007f9be6b1c742 in select () from /lib/libc.so.6
#1  0x00007f9be768df06 in QProcessManager::run (this=0xa55370) at io/qprocess_unix.cpp:305
#2  0x00007f9be75c6952 in QThreadPrivate::start (arg=0xa55370) at thread/qthread_unix.cpp:189
#3  0x00007f9be3f1b3ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007f9be6b23fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9bec22f760 (LWP 4145)):
[KCrash Handler]
#5  0x0000000002d28cb0 in ?? ()
#6  0x00007f9be79c3b84 in QDBusConnectionPrivate::timerEvent (this=0xa56550, e=<value optimized out>) at ./qdbus_symbols_p.h:172
#7  0x00007f9be76bf4d3 in QObject::event (this=0xa56550, e=0x0) at kernel/qobject.cpp:1082
#8  0x00007f9be7df483d in QApplicationPrivate::notify_helper (this=0xa66cd0, receiver=0xa56550, e=0x7ffff4270670) at kernel/qapplication.cpp:4084
#9  0x00007f9be7dfca2a in QApplication::notify (this=0xa5d340, receiver=0xa56550, e=0x7ffff4270670) at kernel/qapplication.cpp:4049
#10 0x00007f9bea4b126b in KApplication::notify () from /usr/lib/libkdeui.so.5
#11 0x00007f9be76af75c in QCoreApplication::notifyInternal (this=0xa5d340, receiver=0xa56550, event=0x7ffff4270670) at kernel/qcoreapplication.cpp:602
#12 0x00007f9be76dc7f6 in QTimerInfoList::activateTimers (this=0xa6a3a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#13 0x00007f9be76d8f0d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:164
#14 0x00007f9be22eb20a in IA__g_main_context_dispatch (context=0xa69520) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#15 0x00007f9be22ee8e0 in g_main_context_iterate (context=0xa69520, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#16 0x00007f9be22eea7c in IA__g_main_context_iteration (context=0xa69520, may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#17 0x00007f9be76d8e6f in QEventDispatcherGlib::processEvents (this=0xa1dea0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323
#18 0x00007f9be7e8cc9f in QGuiEventDispatcherGlib::processEvents (this=0x1, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#19 0x00007f9be76ae002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -198768416}) at kernel/qeventloop.cpp:149
#20 0x00007f9be76ae3cd in QEventLoop::exec (this=0x7ffff4270920, flags={i = -198768336}) at kernel/qeventloop.cpp:200
#21 0x00007f9be76b0694 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#22 0x00007f9bebe109bb in kdemain () from /usr/lib/libkdeinit4_plasma.so
#23 0x00007f9be6a5c5a6 in __libc_start_main (main=0x400890 <_start+240>, argc=1, ubp_av=0x7ffff4270c28, init=0x4008c0 <__libc_csu_init>, fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7ffff4270c18) at libc-start.c:220
#24 0x00000000004007c9 in _start ()
Current language:  auto; currently c
Comment 6 Dario Andres 2009-05-12 19:50:43 UTC
@paragw@excite.com: your crash seems to be different. Can you please file a new bug report including that backtrace, your KDE4 version and Linux distribution and what were doing when you got the crash. Also, if you find a way to reproduce it, please tell us. Thanks
Comment 7 Nicolas L. 2009-05-13 00:20:54 UTC
i am not able to reproduce  this issue with kde 4.2.85. i can remove the system tray from the plasma bar and put it back w/o any crash.

Dario as the reporter on comment  2 tells that the bug is fixed, can we close it ?
Comment 8 Dario Andres 2009-05-13 01:56:06 UTC
I wonder about the duplicate that comment 4 mentions.
Comment 9 Cassiano Leal 2009-05-13 16:16:27 UTC
I was able to move the tray to the desktop and back to the panel with no issues. I guess the bug can be closed.
Thanks for the fix.
Comment 10 Dario Andres 2009-05-13 17:08:25 UTC
Just for testing:

Here using:

Qt: 4.5.1 (qt-copy  958974)
KDE: 4.2.85 (KDE 4.2.85 (KDE 4.3 Beta1))
kdelibs svn rev. 967040 / kdebase svn rev. 967041
on ArchLinux i686 - Kernel 2.6.29.2

I can also move the Systray to the Desktop and back to the panel without crasing.

Closing as WORKSFORME.
Comment 11 Christian González 2009-05-14 12:42:27 UTC
Dario, could you as well confirm that you can shrink down the panel to a minimum size without getting a plasma crash?
This was Bug 180645 , marked as duplicate of this here - the launchpad bug
https://bugs.launchpad.net/ubuntu/+source/kdebase-workspace/+bug/338458
links to this one here too, but I'm not sure if it's really the same, and can't test it.
Comment 12 Dario Andres 2009-05-15 01:02:49 UTC
Here using:

Qt: 4.5.1 (qt-copy  958974)
KDE: 4.2.85 (KDE 4.2.85 (KDE 4.3 Beta1))
kdelibs svn rev. 967040 / kdebase svn rev. 967041
on ArchLinux i686 - Kernel 2.6.29.2

I can reduce the panel height to minimum without crashing. You are right, that was another bug report (I can't remember which) which was also fixed. However the backtraces are the same so I marked it as duplicate of this. 

Bug 191822 is also related to all this