Bug 248518

Summary: VNC client crashes when disconnecting from remote host
Product: [Applications] krdc Reporter: Squall <sf_sepultura>
Component: VNCAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Squall 2010-08-20 15:30:30 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-24-generic i686
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
The crash happens just as "Disconnect" button is clicked every time

The crash can be reproduced every time.

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

Thread 2 (Thread 0xb5f16b70 (LWP 2684)):
[KCrash Handler]
#6  0x04c2fc6b in FillRectangle (client=<value optimized out>, x=<value optimized out>, y=359, w=16, h=16, colour=598581) at rfbproto.c:140
#7  0x04c3f18d in HandleHextile32 (client=0x865fab0) at hextile.c:67
#8  HandleRFBServerMessage (client=0x865fab0) at rfbproto.c:1357
#9  0x060b4245 in VncClientThread::run (this=0x85c7f0c) at ../../../krdc/vnc/vncclientthread.cpp:292
#10 0x06a3232e in QThreadPrivate::start (arg=0x85c7f0c) at thread/qthread_unix.cpp:248
#11 0x0030396e in start_thread (arg=0xb5f16b70) at pthread_create.c:300
#12 0x03817a4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb786d710 (LWP 2683)):
#0  0x00d51422 in __kernel_vsyscall ()
#1  0x03809b86 in *__GI___poll (fds=0x389fff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x00d2cd60 in ?? () from /usr/lib/libxcb.so.1
#3  0x00d2d2cb in ?? () from /usr/lib/libxcb.so.1
#4  0x00d2d667 in xcb_writev () from /usr/lib/libxcb.so.1
#5  0x0459bd79 in _XSend () from /usr/lib/libX11.so.6
#6  0x0459c3d9 in _XFlush () from /usr/lib/libX11.so.6
#7  0x0047ab00 in XRenderComposite () from /usr/lib/libXrender.so.1
#8  0x02947260 in QX11PaintEngine::drawTiledPixmap (this=0x8496ed0, r=..., pixmap=..., p=...) at painting/qpaintengine_x11.cpp:2156
#9  0x0289d19c in QPainter::drawTiledPixmap (this=0xbfd5cd50, r=..., pixmap=..., sp=...) at painting/qpainter.cpp:6455
#10 0x0341a473 in QPainter::drawTiledPixmap (this=0x83186e0, p=0xbfd5cd50, clipRect=..., widget=0x8322db0, window=0x8322db0, pal=..., y_shift=-23, gradientHeight=64)
    at /usr/include/qt4/QtGui/qpainter.h:796
#11 OxygenHelper::renderWindowBackground (this=0x83186e0, p=0xbfd5cd50, clipRect=..., widget=0x8322db0, window=0x8322db0, pal=..., y_shift=-23, gradientHeight=64)
    at ../../../kstyles/oxygen/lib/helper.cpp:114
#12 0x034554cf in OxygenHelper::renderWindowBackground (this=0x83186e0, p=0xffffffff, clipRect=..., widget=0x8322db0, pal=..., gradientHeight=<value optimized out>, y_shift=<value optimized out>)
    at ../../../kstyles/oxygen/lib/helper.h:69
#13 0x03463296 in OxygenStyle::eventFilter (this=0x83101c8, obj=0x8322db0, ev=0xbfd5d244) at ../../../kstyles/oxygen/oxygen.cpp:6369
#14 0x06b33cda in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8180b00, receiver=0x8322db0, event=0xbfd5d244) at kernel/qcoreapplication.cpp:819
#15 0x027244b9 in QApplicationPrivate::notify_helper (this=0x8180b00, receiver=0x8322db0, e=0xbfd5d244) at kernel/qapplication.cpp:4296
#16 0x0272b0f9 in QApplication::notify (this=0xbfd5dfd0, receiver=0x8322db0, e=0xbfd5d244) at kernel/qapplication.cpp:4265
#17 0x01083f2a in KApplication::notify (this=0xbfd5dfd0, receiver=0x8322db0, event=0xbfd5d244) at ../../kdeui/kernel/kapplication.cpp:302
#18 0x06b34a3b in QCoreApplication::notifyInternal (this=0xbfd5dfd0, receiver=0x8322db0, event=0xbfd5d244) at kernel/qcoreapplication.cpp:704
#19 0x0278b9d6 in QCoreApplication::sendSpontaneousEvent (this=0x8324c60, pdev=0x8499724, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x84996d8)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#20 QWidgetPrivate::drawWidget (this=0x8324c60, pdev=0x8499724, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x84996d8) at kernel/qwidget.cpp:5339
#21 0x029627d7 in QWidgetBackingStore::sync (this=0x84996d8) at painting/qbackingstore.cpp:1283
#22 0x0277bb93 in QWidgetPrivate::syncBackingStore (this=0x8324c60) at kernel/qwidget.cpp:1672
#23 0x02782e76 in QWidget::event (this=0x8322db0, event=0x87ed670) at kernel/qwidget.cpp:8291
#24 0x02b9dbc7 in QMainWindow::event (this=0x8322db0, event=0x87ed670) at widgets/qmainwindow.cpp:1433
#25 0x01175b04 in KMainWindow::event (this=0x8322db0, ev=0x87ed670) at ../../kdeui/widgets/kmainwindow.cpp:1103
#26 0x011bd88f in KXmlGuiWindow::event (this=0x8322db0, ev=0x87ed670) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:131
#27 0x027244dc in QApplicationPrivate::notify_helper (this=0x8180b00, receiver=0x8322db0, e=0x87ed670) at kernel/qapplication.cpp:4300
#28 0x0272b0f9 in QApplication::notify (this=0xbfd5dfd0, receiver=0x8322db0, e=0x87ed670) at kernel/qapplication.cpp:4265
#29 0x01083f2a in KApplication::notify (this=0xbfd5dfd0, receiver=0x8322db0, event=0x87ed670) at ../../kdeui/kernel/kapplication.cpp:302
#30 0x06b34a3b in QCoreApplication::notifyInternal (this=0xbfd5dfd0, receiver=0x8322db0, event=0x87ed670) at kernel/qcoreapplication.cpp:704
#31 0x06b37473 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x816c550) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#32 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x816c550) at kernel/qcoreapplication.cpp:1345
#33 0x06b375dd in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#34 0x06b60adf in QCoreApplication::sendPostedEvents (s=0x8182f10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#35 postEventSourceDispatch (s=0x8182f10) at kernel/qeventdispatcher_glib.cpp:276
#36 0x04c9a5e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#37 0x04c9e2d8 in ?? () from /lib/libglib-2.0.so.0
#38 0x04c9e4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#39 0x06b605d5 in QEventDispatcherGlib::processEvents (this=0x816c090, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#40 0x027e4135 in QGuiEventDispatcherGlib::processEvents (this=0x816c090, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x06b33059 in QEventLoop::processEvents (this=0xbfd5df34, flags=) at kernel/qeventloop.cpp:149
#42 0x06b334aa in QEventLoop::exec (this=0xbfd5df34, flags=...) at kernel/qeventloop.cpp:201
#43 0x06b3769f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#44 0x02724577 in QApplication::exec () at kernel/qapplication.cpp:3579
#45 0x0806befc in main (argc=3, argv=0xbfd5e1b4) at ../../krdc/main.cpp:103

Possible duplicates by query: bug 240761, bug 234267.

Reported using DrKonqi
Comment 1 Urs Wolfer 2010-09-19 14:17:04 UTC
We have fixed some crashes in the VNC plugin recently. Can you still reproduce
this issue with a recent version of KRDC (from KDE SC 4.5 or later)?
Comment 2 Urs Wolfer 2010-10-17 17:47:29 UTC
Closing as fixed since nobody can reproduce this crashes anymore with the fixes from KRDC 4.5.