Bug 229944

Summary: Crash When I close a VNC Sesion with Disconnect Button
Product: [Applications] krdc Reporter: Lissandro Sosa <lissandro.sosa>
Component: VNCAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lissandro Sosa 2010-03-08 13:46:20 UTC
Application: krdc (4.4.1 (KDE 4.4.1) "release 225")
KDE Platform Version: 4.4.1 (KDE 4.4.1) "release 225"
Qt Version: 4.6.2
Operating System: Linux 2.6.31.12-0.1-default x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
Crash When I close a VNC Sesion with Disconnect Button let me only my rpd sesion open without borders!

this happen sometimes when i use the disconnect button!

The crash can be reproduced some of the time.

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

Thread 2 (Thread 0x7fca10f23910 (LWP 5355)):
[KCrash Handler]
#5  0x00007fca1ef8f9f3 in isSignalConnected (signal_index=<value optimized out>, this=<value optimized out>) at kernel/qobject_p.h:225
#6  QMetaObject::activate (signal_index=<value optimized out>, this=<value optimized out>) at kernel/qobject.cpp:3218
#7  0x00007fca14fe6f63 in HostPreferences::walletSupport() () from /usr/lib64/kde4/krdc_vncplugin.so
#8  0x00007fca14fe7bd8 in HostPreferences::walletSupport() () from /usr/lib64/kde4/krdc_vncplugin.so
#9  0x00007fca14dd32d3 in HandleRFBServerMessage (client=0x7fca106cb010) at rfbproto.c:1506
#10 0x00007fca14fe81f5 in HostPreferences::walletSupport() () from /usr/lib64/kde4/krdc_vncplugin.so
#11 0x00007fca1ee88775 in QThreadPrivate::start (arg=0xb57c40) at thread/qthread_unix.cpp:248
#12 0x00007fca1cd6865d in start_thread () from /lib64/libpthread.so.0
#13 0x00007fca1e876e1d in clone () from /lib64/libc.so.6
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fca21dd17f0 (LWP 3209)):
#0  0x00007fca1e86dd03 in poll () from /lib64/libc.so.6
#1  0x00007fca18dab91a in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007fca18dabe57 in ?? () from /usr/lib64/libxcb.so.1
#3  0x00007fca18dac115 in xcb_writev () from /usr/lib64/libxcb.so.1
#4  0x00007fca1d85b03a in _XSend () from /usr/lib64/libX11.so.6
#5  0x00007fca1d847703 in ?? () from /usr/lib64/libX11.so.6
#6  0x00007fca1d8478ae in XPutImage () from /usr/lib64/libX11.so.6
#7  0x00007fca1f9d1321 in QX11PixmapData::fromImage (this=0x7fca0c0188d0, img=<value optimized out>, flags=<value optimized out>) at image/qpixmap_x11.cpp:612
#8  0x00007fca1f9bca3e in QPixmap::fromImage (image=..., flags=) at image/qpixmap.cpp:1999
#9  0x00007fca1fa1ff48 in QPaintEngine::drawImage (this=0x98f980, r=..., image=..., sr=..., flags=<value optimized out>) at painting/qpaintengine.cpp:623
#10 0x00007fca1fadab32 in QX11PaintEngine::drawImage (this=0x98f980, r=..., image=..., sr=..., flags=) at painting/qpaintengine_x11.cpp:1893
#11 0x00007fca1fa351ff in QPainterPrivate::draw_helper (this=0x7fca0c00b9d0, originalPath=<value optimized out>, op=<value optimized out>) at painting/qpainter.cpp:484
#12 0x00007fca1fa3c79a in QPainter::drawRoundedRect (this=0x7fffc30ea540, rect=<value optimized out>, xRadius=<value optimized out>, yRadius=<value optimized out>, mode=<value optimized out>)
    at painting/qpainter.cpp:4136
#13 0x00007fca16ebd53a in ?? () from /usr/lib64/kde4/plugins/styles/oxygen.so
#14 0x00007fca16ebe9b8 in ?? () from /usr/lib64/kde4/plugins/styles/oxygen.so
#15 0x00007fca16ec2da1 in ?? () from /usr/lib64/kde4/plugins/styles/oxygen.so
#16 0x00007fca16eaa8ec in ?? () from /usr/lib64/kde4/plugins/styles/oxygen.so
#17 0x00007fca205e7462 in KStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const () from /usr/lib64/libkdeui.so.5
#18 0x00007fca16eafc23 in ?? () from /usr/lib64/kde4/plugins/styles/oxygen.so
#19 0x00007fca1fbead52 in QCommonStyle::drawControl (this=0x6a73d0, element=<value optimized out>, opt=0x7fffc30ea3a0, p=0x7fffc30ea540, widget=0x881c50) at styles/qcommonstyle.cpp:1696
#20 0x00007fca205e6122 in KStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const () from /usr/lib64/libkdeui.so.5
#21 0x00007fca16eafc23 in ?? () from /usr/lib64/kde4/plugins/styles/oxygen.so
#22 0x00007fca1fd3ffc5 in drawControl (opt=<value optimized out>, ce=<value optimized out>, this=<value optimized out>) at ../../src/gui/painting/qstylepainter.h:89
#23 QTabBar::paintEvent (opt=<value optimized out>, ce=<value optimized out>, this=<value optimized out>) at widgets/qtabbar.cpp:1542
#24 0x00007fca1f930d52 in QWidget::event (this=0x881c50, event=0x7fffc30eae10) at kernel/qwidget.cpp:8144
#25 0x00007fca1fd3e80a in QTabBar::event (this=0x881c50, event=0x7fffc30eae10) at widgets/qtabbar.cpp:1457
#26 0x00007fca1f8dae1c in QApplicationPrivate::notify_helper (this=0x655260, receiver=0x881c50, e=0x7fffc30eae10) at kernel/qapplication.cpp:4300
#27 0x00007fca1f8e13fb in QApplication::notify (this=0x7fffc30eca50, receiver=0x881c50, e=0x7fffc30eae10) at kernel/qapplication.cpp:4183
#28 0x00007fca2056e456 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#29 0x00007fca1ef7c98c in QCoreApplication::notifyInternal (this=0x7fffc30eca50, receiver=0x881c50, event=0x7fffc30eae10) at kernel/qcoreapplication.cpp:704
#30 0x00007fca1f9393bd in sendSpontaneousEvent (event=<value optimized out>, receiver=<value optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:218
#31 QWidgetPrivate::drawWidget (event=<value optimized out>, receiver=<value optimized out>) at kernel/qwidget.cpp:5339
#32 0x00007fca1f93a058 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=1, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x984ad0) at kernel/qwidget.cpp:5452
#33 0x00007fca1f93911a in QWidgetPrivate::drawWidget (this=0x87f740, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=
    0x984ad0) at kernel/qwidget.cpp:5388
#34 0x00007fca1f93a058 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=0x984ad0) at kernel/qwidget.cpp:5452
#35 0x00007fca1f939e89 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=18, rgn=<value optimized out>, 
    offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x984ad0) at kernel/qwidget.cpp:5439
#36 0x00007fca1f93911a in QWidgetPrivate::drawWidget (this=0x729170, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=
    0x984ad0) at kernel/qwidget.cpp:5388
#37 0x00007fca1faf1115 in QWidgetBackingStore::sync (this=0x984ad0) at painting/qbackingstore.cpp:1291
#38 0x00007fca1f92acc0 in QWidgetPrivate::syncBackingStore (this=0x729170) at kernel/qwidget.cpp:1672
#39 0x00007fca1f931455 in QWidget::event (this=0x728f90, event=0xcc4e10) at kernel/qwidget.cpp:8291
#40 0x00007fca1fcf0d4b in QMainWindow::event (this=0x728f90, event=0xcc4e10) at widgets/qmainwindow.cpp:1433
#41 0x00007fca20635a13 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libkdeui.so.5
#42 0x00007fca1f8dae1c in QApplicationPrivate::notify_helper (this=0x655260, receiver=0x728f90, e=0xcc4e10) at kernel/qapplication.cpp:4300
#43 0x00007fca1f8e13fb in QApplication::notify (this=0x7fffc30eca50, receiver=0x728f90, e=0xcc4e10) at kernel/qapplication.cpp:4183
#44 0x00007fca2056e456 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#45 0x00007fca1ef7c98c in QCoreApplication::notifyInternal (this=0x7fffc30eca50, receiver=0x728f90, event=0xcc4e10) at kernel/qcoreapplication.cpp:704
#46 0x00007fca1ef7f107 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#47 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#48 0x00007fca1efa6373 in sendPostedEvents () at kernel/qcoreapplication.h:220
#49 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:276
#50 0x00007fca1b11fdee in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#51 0x00007fca1b1237b8 in ?? () from /usr/lib64/libglib-2.0.so.0
#52 0x00007fca1b1238e0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#53 0x00007fca1efa5eb3 in QEventDispatcherGlib::processEvents (this=0x63de10, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#54 0x00007fca1f98951e in QGuiEventDispatcherGlib::processEvents (this=0x7fffc30e2a70, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#55 0x00007fca1ef7b2a2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#56 0x00007fca1ef7b67c in QEventLoop::exec (this=0x7fffc30ec990, flags=) at kernel/qeventloop.cpp:201
#57 0x00007fca1ef7f3cb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#58 0x00000000004277cb in _start ()

Reported using DrKonqi
Comment 1 Urs Wolfer 2010-03-14 22:51:30 UTC
Do you get the same backtrace (crashlog) all the time when KRDC crashes?
Comment 2 Lissandro Sosa 2010-03-15 00:45:13 UTC
I dont know if is the some backtrace, when KRDC crash, in the Dr. Konqui report is 3 stars full.

I can tried again and verify the backtrace to compare, but this crash happen to me randomly, and ever when I push the disconnect Button in the app!!
Comment 3 Tony Murray 2010-05-26 18:37:10 UTC
SVN commit 1130864 by murrant:

Workaround for a common crash when disconnecting a VNC connection.

This is included in KDE SC 4.5 Beta 2.  Please test and confirm.  The patch can be found here: 
http://reviewboard.kde.org/r/4041/diff/raw/

REVIEW: 4041
CCBUG: 220262
CCBUG: 220456
CCBUG: 220688
CCBUG: 229295
CCBUG: 229944
CCBUG: 230478
CCBUG: 231773
CCBUG: 232762
CCBUG: 233780


 M  +15 -16    mainwindow.cpp  
 M  +3 -3      vnc/vncclientthread.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1130864
Comment 4 Urs Wolfer 2010-10-17 18:06:14 UTC

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