Bug 242544 - KRDC crashes when closing
Summary: KRDC crashes when closing
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: VNC (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on: 185464
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-23 01:30 UTC by dave
Modified: 2010-10-17 17:45 UTC (History)
0 users

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 dave 2010-06-23 01:30:15 UTC
Application: krdc (4.4.2 (KDE 4.4.2))
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
Happens everytime I have an active vnc connection open and I click on "Disconnect."

The crash can be reproduced every time.

 -- Backtrace:
Application: KRDC (krdc), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f8d42e18760 (LWP 5288))]

Thread 4 (Thread 0x7f8d30cf3710 (LWP 5289)):
#0  0x00007f8d3f810f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8d3bc084a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f8d3bc088fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f8d3ff64566 in QEventDispatcherGlib::processEvents (this=0xa4f480, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f8d3ff39992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f8d3ff39d6c in QEventLoop::exec (this=0x7f8d30cf2db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f8d3fe43d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f8d3ff1a178 in QInotifyFileSystemWatcherEngine::run (this=0xa5d5e0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f8d3fe46775 in QThreadPrivate::start (arg=0xa5d5e0) at thread/qthread_unix.cpp:248
#9  0x00007f8d3dcab9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f8d3f81d6cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f8d2affd710 (LWP 5299)):
[KCrash Handler]
#5  QBasicAtomicInt::deref (this=0xaf6168, image=...) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:133
#6  QImage::operator= (this=0xaf6168, image=...) at image/qimage.cpp:1319
#7  0x00007f8d36feeb4c in VncClientThread::setImage (this=0xaf6150, img=<value optimized out>) at ../../../krdc/vnc/vncclientthread.cpp:218
#8  0x00007f8d36feec04 in VncClientThread::updatefb (cl=<value optimized out>, x=356, y=740, w=32, h=5) at ../../../krdc/vnc/vncclientthread.cpp:93
#9  0x00007f8d36ddacd3 in HandleRFBServerMessage (client=0xf26a50) at rfbproto.c:1506
#10 0x00007f8d36fef235 in VncClientThread::run (this=0xaf6150) at ../../../krdc/vnc/vncclientthread.cpp:292
#11 0x00007f8d3fe46775 in QThreadPrivate::start (arg=0xaf6150) at thread/qthread_unix.cpp:248
#12 0x00007f8d3dcab9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#13 0x00007f8d3f81d6cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8d2b7fe710 (LWP 5310)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8d3fe4772b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x7f8d2c0013e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x7f8d2c0013e0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f8d3fe43680 in QSemaphore::acquire (this=0x7f8d2b7fd9b0, n=1) at thread/qsemaphore.cpp:142
#4  0x00007f8d3ff4dfc0 in blocking_activate (sender=0xab2e00, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7f8d2b7fda30) at kernel/qobject.cpp:3192
#5  QMetaObject::activate (sender=0xab2e00, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7f8d2b7fda30) at kernel/qobject.cpp:3269
#6  0x00007f8d36fedfa3 in VncClientThread::imageUpdated (this=0x7f8d2c001a0c, _t1=244, _t2=308, _t3=720, _t4=0) at ./moc_vncclientthread.cpp:106
#7  0x00007f8d36feec18 in VncClientThread::emitUpdated (cl=<value optimized out>, x=244, y=308, w=720, h=16) at ../../../krdc/vnc/vncclientthread.cpp:233
#8  VncClientThread::updatefb (cl=<value optimized out>, x=244, y=308, w=720, h=16) at ../../../krdc/vnc/vncclientthread.cpp:95
#9  0x00007f8d36ddacd3 in HandleRFBServerMessage (client=0x147cb10) at rfbproto.c:1506
#10 0x00007f8d36fef235 in VncClientThread::run (this=0xab2e00) at ../../../krdc/vnc/vncclientthread.cpp:292
#11 0x00007f8d3fe46775 in QThreadPrivate::start (arg=0xab2e00) at thread/qthread_unix.cpp:248
#12 0x00007f8d3dcab9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#13 0x00007f8d3f81d6cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8d42e18760 (LWP 5288)):
#0  0x00007f8d3f810f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f8d3a2eb29a in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f8d3a2eb7d7 in ?? () from /usr/lib/libxcb.so.1
#3  0x00007f8d3a2eba85 in xcb_writev () from /usr/lib/libxcb.so.1
#4  0x00007f8d3e7ed6fa in _XSend () from /usr/lib/libX11.so.6
#5  0x00007f8d3e7edc45 in _XFlush () from /usr/lib/libX11.so.6
#6  0x00007f8d3e7e50d8 in _XData32 () from /usr/lib/libX11.so.6
#7  0x00007f8d3e7c16b7 in ?? () from /usr/lib/libX11.so.6
#8  0x00007f8d3e7c1724 in _XFlushGCCache () from /usr/lib/libX11.so.6
#9  0x00007f8d3e7d9d25 in XPutImage () from /usr/lib/libX11.so.6
#10 0x00007f8d40aae656 in qt_x11_drawImage (rect=<value optimized out>, pos=..., image=<value optimized out>, hd=<value optimized out>, gc=<value optimized out>, dpy=<value optimized out>, 
    visual=0x71bc00, depth=24) at painting/qpaintengine_x11.cpp:1870
#11 0x00007f8d40ab1dbd in QX11PaintEngine::drawImage (this=<value optimized out>, r=<value optimized out>, image=..., sr=<value optimized out>, flags=<value optimized out>)
    at painting/qpaintengine_x11.cpp:1891
#12 0x00007f8d40a0f7c5 in QPainter::drawImage (this=<value optimized out>, targetRect=..., image=..., sourceRect=..., flags=) at painting/qpainter.cpp:5683
#13 0x00007f8d36ff3899 in QPainter::drawImage (this=0xab2da0, event=0x7fff573c8b60) at /usr/include/qt4/QtGui/qpainter.h:882
#14 VncView::paintEvent (this=0xab2da0, event=0x7fff573c8b60) at ../../../krdc/vnc/vncview.cpp:453
#15 0x00007f8d40905162 in QWidget::event (this=0xab2da0, event=0x7fff573c8b60) at kernel/qwidget.cpp:8144
#16 0x00007f8d408af22c in QApplicationPrivate::notify_helper (this=0x715500, receiver=0xab2da0, e=0x7fff573c8b60) at kernel/qapplication.cpp:4300
#17 0x00007f8d408b56fb in QApplication::notify (this=0x7fff573cbe30, receiver=0xab2da0, e=0x7fff573c8b60) at kernel/qapplication.cpp:4183
#18 0x00007f8d415ba526 in KApplication::notify (this=0x7fff573cbe30, receiver=0xab2da0, event=0x7fff573c8b60) at ../../kdeui/kernel/kapplication.cpp:302
#19 0x00007f8d3ff3b06c in QCoreApplication::notifyInternal (this=0x7fff573cbe30, receiver=0xab2da0, event=0x7fff573c8b60) at kernel/qcoreapplication.cpp:704
#20 0x00007f8d4090d7dd in QCoreApplication::sendSpontaneousEvent (this=0xbc5fe0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x8ce5c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#21 QWidgetPrivate::drawWidget (this=0xbc5fe0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x8ce5c0)
    at kernel/qwidget.cpp:5339
#22 0x00007f8d4090e478 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=0, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x8ce5c0) at kernel/qwidget.cpp:5452
#23 0x00007f8d4090d53a in QWidgetPrivate::drawWidget (this=0xaafb30, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x8ce5c0) at kernel/qwidget.cpp:5388
#24 0x00007f8d4090e478 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=0, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x8ce5c0) at kernel/qwidget.cpp:5452
#25 0x00007f8d4090d53a in QWidgetPrivate::drawWidget (this=0xc4f490, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x8ce5c0) at kernel/qwidget.cpp:5388
#26 0x00007f8d4090e478 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=3, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x8ce5c0) at kernel/qwidget.cpp:5452
#27 0x00007f8d4090d53a in QWidgetPrivate::drawWidget (this=0x82fce0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x8ce5c0) at kernel/qwidget.cpp:5388
#28 0x00007f8d4090e478 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=0, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x8ce5c0) at kernel/qwidget.cpp:5452
#29 0x00007f8d4090d53a in QWidgetPrivate::drawWidget (this=0x82faa0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x8ce5c0) at kernel/qwidget.cpp:5388
#30 0x00007f8d4090e478 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=9, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x8ce5c0) at kernel/qwidget.cpp:5452
#31 0x00007f8d4090d53a in QWidgetPrivate::drawWidget (this=0x7e8ec0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x8ce5c0) at kernel/qwidget.cpp:5388
#32 0x00007f8d40ac78c5 in QWidgetBackingStore::sync (this=0x8ce5c0) at painting/qbackingstore.cpp:1291
#33 0x00007f8d408feb60 in QWidgetPrivate::syncBackingStore (this=0x7e8ec0) at kernel/qwidget.cpp:1672
#34 0x00007f8d40905865 in QWidget::event (this=0x7e8ce0, event=0x7fff573caee0) at kernel/qwidget.cpp:8291
#35 0x00007f8d40cc7cab in QMainWindow::event (this=0x7e8ce0, event=0x7fff573caee0) at widgets/qmainwindow.cpp:1433
#36 0x00007f8d416d16f3 in KXmlGuiWindow::event (this=0x7fff573c7970, ev=0x1) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:131
#37 0x00007f8d408af22c in QApplicationPrivate::notify_helper (this=0x715500, receiver=0x7e8ce0, e=0x7fff573caee0) at kernel/qapplication.cpp:4300
#38 0x00007f8d408b56fb in QApplication::notify (this=0x7fff573cbe30, receiver=0x7e8ce0, e=0x7fff573caee0) at kernel/qapplication.cpp:4183
#39 0x00007f8d415ba526 in KApplication::notify (this=0x7fff573cbe30, receiver=0x7e8ce0, event=0x7fff573caee0) at ../../kdeui/kernel/kapplication.cpp:302
#40 0x00007f8d3ff3b06c in QCoreApplication::notifyInternal (this=0x7fff573cbe30, receiver=0x7e8ce0, event=0x7fff573caee0) at kernel/qcoreapplication.cpp:704
#41 0x00007f8d40ac4c47 in QCoreApplication::sendEvent (widget=0x7e8ce0, updateImmediately=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#42 sendUpdateRequest (widget=0x7e8ce0, updateImmediately=<value optimized out>) at painting/qbackingstore.cpp:503
#43 0x00007f8d40ac80c6 in QWidgetBackingStore::markDirty (this=0x8ce5c0, rect=..., widget=0xab2da0, updateImmediately=true, invalidateBuffer=false) at painting/qbackingstore.cpp:667
#44 0x00007f8d4090148b in QWidget::repaint (this=0xab2da0, rect=...) at kernel/qwidget.cpp:10034
#45 0x00007f8d409014f9 in QWidget::repaint (this=0x7fff573c7970, x=<value optimized out>, y=<value optimized out>, w=-1, h=0) at kernel/qwidget.cpp:10011
#46 0x00007f8d36ff2d2e in VncView::updateImage (this=0xab2da0, x=244, y=308, w=<value optimized out>, h=<value optimized out>) at ../../../krdc/vnc/vncview.cpp:372
#47 0x00007f8d36ff3559 in VncView::qt_metacall (this=0xab2da0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f8d2c001560) at ./moc_vncview.cpp:84
#48 0x00007f8d3ff4ad49 in QObject::event (this=0xab2da0, e=0x7f8d2c001510) at kernel/qobject.cpp:1248
#49 0x00007f8d40904bdf in QWidget::event (this=0xab2da0, event=0x7f8d2c001510) at kernel/qwidget.cpp:8455
#50 0x00007f8d408af22c in QApplicationPrivate::notify_helper (this=0x715500, receiver=0xab2da0, e=0x7f8d2c001510) at kernel/qapplication.cpp:4300
#51 0x00007f8d408b56fb in QApplication::notify (this=0x7fff573cbe30, receiver=0xab2da0, e=0x7f8d2c001510) at kernel/qapplication.cpp:4183
#52 0x00007f8d415ba526 in KApplication::notify (this=0x7fff573cbe30, receiver=0xab2da0, event=0x7f8d2c001510) at ../../kdeui/kernel/kapplication.cpp:302
#53 0x00007f8d3ff3b06c in QCoreApplication::notifyInternal (this=0x7fff573cbe30, receiver=0xab2da0, event=0x7f8d2c001510) at kernel/qcoreapplication.cpp:704
#54 0x00007f8d3ff3d7e7 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x6fdc30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#55 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x6fdc30) at kernel/qcoreapplication.cpp:1345
#56 0x00007f8d3ff649d3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#57 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#58 0x00007f8d3bc048c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#59 0x00007f8d3bc08748 in ?? () from /lib/libglib-2.0.so.0
#60 0x00007f8d3bc088fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#61 0x00007f8d3ff64513 in QEventDispatcherGlib::processEvents (this=0x6fd380, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#62 0x00007f8d4095f46e in QGuiEventDispatcherGlib::processEvents (this=0x7fff573c7970, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#63 0x00007f8d3ff39992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#64 0x00007f8d3ff39d6c in QEventLoop::exec (this=0x7fff573cbd70, flags=) at kernel/qeventloop.cpp:201
#65 0x00007f8d3ff3daab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#66 0x00000000004277cb in main (argc=<value optimized out>, argv=<value optimized out>) at ../../krdc/main.cpp:103

Reported using DrKonqi
Comment 1 Urs Wolfer 2010-06-29 18:22:36 UTC
Please try KDE SC 4.5; this bug might be fixed there.
Comment 2 Urs Wolfer 2010-10-17 17:45:08 UTC
Closing as fixed since nobody can reproduce this crashes anymore with the fixes from KRDC 4.5.