Bug 233780 - Crash When I use VNC , pushing the disconnect button
Summary: Crash When I use VNC , pushing the disconnect button
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: VNC (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on: 185464
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-08 23:11 UTC by Lissandro Sosa
Modified: 2010-10-17 17:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lissandro Sosa 2010-04-08 23:11:50 UTC
Application: krdc (4.4.2 (KDE 4.4.2) "release 231")
KDE Platform Version: 4.4.2 (KDE 4.4.2) "release 231"
Qt Version: 4.6.2
Operating System: Linux 2.6.31.12-0.2-default x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
Crash When I use VNC , pushing the disconnect button

This is the somes problems I have before

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

Thread 3 (Thread 0x7f6d4790b910 (LWP 8551)):
#0  0x00007f6d55068fee in ?? () from /lib64/libc.so.6
#1  0x00007f6d55004599 in ?? () from /lib64/libc.so.6
#2  0x00007f6d55002961 in free () from /lib64/libc.so.6
#3  0x00007f6d518f6713 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f6d5578b9af in QEventDispatcherGlib::~QEventDispatcherGlib (this=0xc24b00, __in_chrg=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:366
#5  0x00007f6d5566d364 in QThreadPrivate::finish (arg=<value optimized out>) at thread/qthread_unix.cpp:284
#6  0x00007f6d5566d77d in ~__pthread_cleanup_class (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/include/pthread.h:535
#7  QThreadPrivate::start (this=<value optimized out>, __in_chrg=<value optimized out>) at thread/qthread_unix.cpp:253
#8  0x00007f6d5354d65d in start_thread () from /lib64/libpthread.so.0
#9  0x00007f6d5505be1d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6d46930910 (LWP 21280)):
[KCrash Handler]
#5  0x00007f6d54ffdf7a in ?? () from /lib64/libc.so.6
#6  0x00007f6d54fff5d8 in ?? () from /lib64/libc.so.6
#7  0x00007f6d5500296c in free () from /lib64/libc.so.6
#8  0x00007f6d548dfd14 in inflateEnd () from /lib64/libz.so.1
#9  0x00007f6d4afbdeb4 in rfbClientCleanup (client=0x123a2f0) at vncviewer.c:309
#10 0x00007f6d4b1cf3f3 in VncClientThread::run (this=0xecb7a0) at /usr/src/debug/kdenetwork-4.4.2/krdc/vnc/vncclientthread.cpp:308
#11 0x00007f6d5566d775 in QThreadPrivate::start (arg=0xecb7a0) at thread/qthread_unix.cpp:248
#12 0x00007f6d5354d65d in start_thread () from /lib64/libpthread.so.0
#13 0x00007f6d5505be1d in clone () from /lib64/libc.so.6
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6d585b1750 (LWP 5820)):
#0  0x00007f6d55068fee in ?? () from /lib64/libc.so.6
#1  0x00007f6d55004599 in ?? () from /lib64/libc.so.6
#2  0x00007f6d55002961 in free () from /lib64/libc.so.6
#3  0x00007f6d55777286 in QObject::~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:928
#4  0x00007f6d5611844e in QWidget::~QWidget (this=0xc30290, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1485
#5  0x00007f6d5577037c in QObjectPrivate::deleteChildren (this=0xc54310) at kernel/qobject.cpp:1986
#6  0x00007f6d56118eb5 in QWidget::~QWidget (this=0xa026e0, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1469
#7  0x0000000000426878 in RemoteViewScrollArea::~RemoteViewScrollArea (this=0x7f6d552e1e60, __in_chrg=<value optimized out>) at /usr/src/debug/kdenetwork-4.4.2/krdc/mainwindow.h:173
#8  0x00007f6d557716ed in QObject::event (this=0xa026e0, e=0xe55df0) at kernel/qobject.cpp:1231
#9  0x00007f6d561117cf in QWidget::event (this=0xa026e0, event=0xe55df0) at kernel/qwidget.cpp:8455
#10 0x00007f6d564b65b6 in QFrame::event (this=0xa026e0, e=0xe55df0) at widgets/qframe.cpp:557
#11 0x00007f6d5654196b in QAbstractScrollArea::event (this=0xa026e0, e=0xe55df0) at widgets/qabstractscrollarea.cpp:989
#12 0x00007f6d560bbe1c in QApplicationPrivate::notify_helper (this=0x655140, receiver=0xa026e0, e=0xe55df0) at kernel/qapplication.cpp:4300
#13 0x00007f6d560c23fb in QApplication::notify (this=0x7fff8872b730, receiver=0xa026e0, e=0xe55df0) at kernel/qapplication.cpp:4183
#14 0x00007f6d56d4f506 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#15 0x00007f6d5576198c in QCoreApplication::notifyInternal (this=0x7fff8872b730, receiver=0xa026e0, event=0xe55df0) at kernel/qcoreapplication.cpp:704
#16 0x00007f6d55764107 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#17 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#18 0x00007f6d5578b373 in sendPostedEvents () at kernel/qcoreapplication.h:220
#19 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:276
#20 0x00007f6d518f6dee in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f6d518fa7b8 in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f6d518fa8e0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f6d5578aeb3 in QEventDispatcherGlib::processEvents (this=0x63d830, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#24 0x00007f6d5616a51e in QGuiEventDispatcherGlib::processEvents (this=0x7f6d552e1e60, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#25 0x00007f6d557602a2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#26 0x00007f6d5576067c in QEventLoop::exec (this=0x7fff8872b670, flags=) at kernel/qeventloop.cpp:201
#27 0x00007f6d557643cb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#28 0x000000000042778b in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdenetwork-4.4.2/krdc/main.cpp:103

Reported using DrKonqi
Comment 1 Tomasz Chmielewski 2010-04-09 17:43:06 UTC
Lots of similar or identical reports: #226304, #227501, #229295, #231773, #233780, #209932, #220262, perhaps others when you search for "krdc" and then "crash".

For me, it's very trivial to reproduce - connect a few sessions (VNC, RDP), close the tab, connect to the same IP where you just closed the tab... Do it for a while, krdc will crash pretty fast.
Comment 2 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 3 Urs Wolfer 2010-09-19 13:55:08 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 4 Urs Wolfer 2010-10-17 17:42:13 UTC
Closing as fixed since nobody can reproduce this crashes anymore with the fixes from KRDC 4.5.