Bug 185464 - Deadlock in KRDC VNC plugin
Summary: Deadlock in KRDC VNC plugin
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: VNC (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks: 201043 205966 220262 220456 225125 227501 229295 230478 233780 234267 235412 235550 236275 242544 242822
  Show dependency treegraph
 
Reported: 2009-02-24 19:18 UTC by Tony White
Modified: 2010-10-17 17:40 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 Tony White 2009-02-24 19:18:58 UTC
Version:           4.2.00 (using KDE 4.2.0)
Compiler:          gcc4 
OS:                Linux
Installed from:    Mandriva RPMs

I tried to open a vnc connection that works. It occurs randomly.

Application: KRDC (krdc), signal SIGABRT
[Current thread is 1 (Thread 0xb5e506d0 (LWP 19997))]

Thread 3 (Thread 0xb440cb90 (LWP 20622)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb66f5829 in __lll_lock_wait () from /lib/i686/libpthread.so.0
#2  0xb66f0d93 in _L_lock_89 () from /lib/i686/libpthread.so.0
#3  0xb66f07ea in pthread_mutex_lock () from /lib/i686/libpthread.so.0
#4  0xb6877ab6 in pthread_mutex_lock () from /lib/i686/libc.so.6
#5  0xb6a22d43 in QMutexPrivate::wait (this=0x9bde2c0, timeout=-1) at thread/qmutex_unix.cpp:71
#6  0xb6a1e1f3 in QMutex::lock (this=0x9baffb4) at thread/qmutex.cpp:164
#7  0x080622fa in QMutexLocker::relock (this=0xb440bf80) at /usr/lib/qt4/include/QtCore/qmutex.h:115
#8  0x08061155 in VncClientThread::setImage (this=0x9baff8c, img=@0xb440bfbc) at /usr/src/debug/kdenetwork-4.2.0/krdc/vnc/vncclientthread.cpp:213
#9  0x08061ecc in VncClientThread::updatefb (cl=0xb3bb4008, x=128, y=224, w=32, h=32) at /usr/src/debug/kdenetwork-4.2.0/krdc/vnc/vncclientthread.cpp:92
#10 0xb7c6f34a in HandleRFBServerMessage () from /usr/lib/libvncclient.so.0
#11 0x08061005 in VncClientThread::run (this=0x9baff8c) at /usr/src/debug/kdenetwork-4.2.0/krdc/vnc/vncclientthread.cpp:288
#12 0xb6a2380f in QThreadPrivate::start (arg=0x9baff8c) at thread/qthread_unix.cpp:184
#13 0xb66ef315 in start_thread () from /lib/i686/libpthread.so.0
#14 0xb686a26e in clone () from /lib/i686/libc.so.6

Thread 2 (Thread 0xb3bb3b90 (LWP 20749)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb66f2c45 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb68778ed in pthread_cond_wait () from /lib/i686/libc.so.6
#3  0xb6a2491b in QWaitCondition::wait (this=0x9be92cc, mutex=0x9be92c8, time=4294967295) at thread/qwaitcondition_unix.cpp:82
#4  0xb6a2018e in QSemaphore::acquire (this=0xb3bb31b0, n=1) at thread/qsemaphore.cpp:138
#5  0xb6b36298 in QMetaObject::activate (sender=0x9bd5814, from_signal_index=13, to_signal_index=13, argv=0x0) at kernel/qobject.cpp:2976
#6  0xb6b379b5 in QMetaObject::activate (sender=0x9bd5814, m=0x807d600, local_signal_index=2, argv=0x0) at kernel/qobject.cpp:3127
#7  0x080609b7 in VncClientThread::passwordRequest (this=0x9bd5814) at /usr/src/debug/kdenetwork-4.2.0/build/krdc/moc_vncclientthread.cpp:113
#8  0x08061c84 in VncClientThread::passwdHandler (cl=0xb335b008) at /usr/src/debug/kdenetwork-4.2.0/krdc/vnc/vncclientthread.cpp:117
#9  0xb7c681f9 in InitialiseRFBConnection () from /usr/lib/libvncclient.so.0
#10 0xb7c7352c in rfbInitClient () from /usr/lib/libvncclient.so.0
#11 0x08060faa in VncClientThread::run (this=0x9bd5814) at /usr/src/debug/kdenetwork-4.2.0/krdc/vnc/vncclientthread.cpp:271
#12 0xb6a2380f in QThreadPrivate::start (arg=0x9bd5814) at thread/qthread_unix.cpp:184
#13 0xb66ef315 in start_thread () from /lib/i686/libpthread.so.0
#14 0xb686a26e in clone () from /lib/i686/libc.so.6

Thread 1 (Thread 0xb5e506d0 (LWP 19997)):
[KCrash Handler]
#6  0xffffe430 in __kernel_vsyscall ()
#7  0xb67b7c00 in raise () from /lib/i686/libc.so.6
#8  0xb67b9668 in abort () from /lib/i686/libc.so.6
#9  0xb67f8f73 in ?? () from /lib/i686/libc.so.6
#10 0x00000000 in ?? ()
Comment 1 Urs Wolfer 2009-02-28 10:12:15 UTC
Do you have any steps to reproduce this crash? What VNC server do you use?
Comment 2 Tony White 2009-03-02 01:31:12 UTC
Regular vncserver and it happens randomly just using krdc to connect to a server. Normals steps of just adding the server by name it connects, Disconnect use the link created on the left in history to connect to the server.
I didn't do anything unusual.
I followed the manual to create the connection.
Comment 3 psibernetic 2009-04-04 09:52:29 UTC
I have same error report from The KDE Crash Handler.

This happens to me when I am in VNC server mode and want to go full screen. I am connecting to another PC with tightVNC Server running in service mode. The server and this client are on same network and subnet.

My dump follows:

Application: KRDC (krdc), signal SIGABRT

Thread 1 (Thread 0xb606d6c0 (LWP 6260)):
[KCrash Handler]
#6  0xb8031430 in __kernel_vsyscall ()
#7  0xb67858a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6787268 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb6a2a795 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb6a2a872 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb6a2a8cc in qt_assert_x () from /usr/lib/libQtCore.so.4
#12 0x0807d865 in _start ()
Comment 4 Urs Wolfer 2009-04-05 13:26:05 UTC
Backtrace is not usable, please see:
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 5 Tim Riemenschneider 2009-04-26 02:13:07 UTC
krdc crashed on me, too. The VNC in question is RealVNC 4.0 on Windows 2000.

krdc keeps on crashing after a while (it used to work with this server....)
Used version is debian-packages 4:3.5.10-2

Backtrace:
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb6cd46d0 (LWP 29326)]
[KCrash handler]
#6  0xb80d3424 in __kernel_vsyscall ()
#7  0xb79ec640 in raise () from /lib/i686/cmov/libc.so.6
#8  0xb79ee008 in abort () from /lib/i686/cmov/libc.so.6
#9  0xb79e55ce in __assert_fail () from /lib/i686/cmov/libc.so.6
#10 0xb7c98127 in process_responses (dpy=0x8d7f0b0, wait_for_first_event=0, 
    current_error=0x0, current_request=0) at ../../src/xcb_io.c:242
#11 0xb7c98a86 in _XEventsQueued (dpy=0x8d7f0b0, mode=2)
    at ../../src/xcb_io.c:256
#12 0xb7c81398 in XPending (dpy=0x8d7f0b0) at ../../src/Pending.c:56
#13 0xb720edba in QEventLoop::processEvents (this=0x8daa258, flags=4)
    at kernel/qeventloop_x11.cpp:150
#14 0xb727d1a0 in QEventLoop::enterLoop (this=0x8daa258)
    at kernel/qeventloop.cpp:201
#15 0xb727d066 in QEventLoop::exec (this=0x8daa258)
    at kernel/qeventloop.cpp:148
#16 0xb7264e5f in QApplication::exec (this=0xbfcf122c)
    at kernel/qapplication.cpp:2761
#17 0x080703ed in ?? ()
#18 0xbfcf122c in ?? ()
#19 0xbfcf122c in ?? ()
#20 0x00000000 in ?? ()
Comment 6 Urs Wolfer 2009-07-12 17:16:43 UTC
Ping, please provide the requested information. Without that I will not be able
to fix it.
Comment 7 Urs Wolfer 2010-06-12 11:10:24 UTC
Can anybody confirm if this bug is fixed (fix applied for KDE SC 4.5 Beta 2)?
Comment 8 Urs Wolfer 2010-09-19 13:47:19 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 9 Urs Wolfer 2010-10-17 17:40:25 UTC
Closing as fixed since nobody can reproduce this crashes anymore with the fixes from KRDC 4.5.