Bug 345794

Summary: Crash when starting VNC connection while RDP connection is active
Product: [Applications] krdc Reporter: Claus Reibenstein <cr>
Component: VNCAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Claus Reibenstein 2015-04-02 08:21:42 UTC
When I try to establish a VNC connection while a RDP connection is active, KRDC crashes immediately. This is always reproducible.

Reproducible: Always

Steps to Reproduce:
1. Open a RDP connection
2. Select "Neue Verbindung" (should be "New connection" or similar in English version)
3. Open a VNC connection

Actual Results:  
KRDC crashes immediately.

Expected Results:  
Both connections should co-exist.

Application: krdc (4.8.5 (4.8.5))
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-79-generic x86_64
Distribution: Ubuntu 12.04.5 LTS

-- Backtrace:
Application: KRDC (krdc), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5d898a0780 (LWP 5143))]

Thread 3 (Thread 0x7f5d73840700 (LWP 5144)):
#0  __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:55
#1  __pthread_mutex_unlock (mutex=0x7f5d6c000a60) at pthread_mutex_unlock.c:290
#2  0x00007f5d830395e1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5d82ffdaae in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5d82ffdf96 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5d82ffe124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f5d86bfe426 in QEventDispatcherGlib::processEvents (this=0x7f5d6c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007f5d86bcdc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f5d86bcded7 in QEventLoop::exec (this=0x7f5d7383fdd0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f5d86accfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007f5d86bad9ff in QInotifyFileSystemWatcherEngine::run (this=0x1c1fc20) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007f5d86acffcb in QThreadPrivate::start (arg=0x1c1fc20) at thread/qthread_unix.cpp:298
#12 0x00007f5d834cae9a in start_thread (arg=0x7f5d73840700) at pthread_create.c:308
#13 0x00007f5d864888bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5d7223f700 (LWP 5412)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5d86ad04db in wait (time=18446744073709551615, this=0x7f5d6800d6e0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7f5d68003a50, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f5d86acc314 in QSemaphore::acquire (this=0x7f5d7223e980, n=1) at thread/qsemaphore.cpp:144
#4  0x00007f5d86be377c in QMetaObject::activate (sender=0x1ef8d70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7f5d7223e9f0) at kernel/qobject.cpp:3525
#5  0x00007f5d75bd7ad7 in VncClientThread::imageUpdated (this=<optimized out>, _t1=0, _t2=0, _t3=1440, _t4=900) at ./moc_vncclientthread.cpp:129
#6  0x00007f5d75bd7fc8 in emitUpdated (h=900, w=1440, y=0, x=0, this=0x1ef8d70) at ../../../krdc/vnc/vncclientthread.cpp:321
#7  VncClientThread::updatefb (cl=0x7f5d7449b010, x=0, y=0, w=1440, h=900) at ../../../krdc/vnc/vncclientthread.cpp:154
#8  0x00007f5d7599f043 in HandleRFBServerMessage () from /usr/lib/libvncclient.so.0
#9  0x00007f5d75bd8b54 in VncClientThread::run (this=0x1ef8d70) at ../../../krdc/vnc/vncclientthread.cpp:390
#10 0x00007f5d86acffcb in QThreadPrivate::start (arg=0x1ef8d70) at thread/qthread_unix.cpp:298
#11 0x00007f5d834cae9a in start_thread (arg=0x7f5d7223f700) at pthread_create.c:308
#12 0x00007f5d864888bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5d898a0780 (LWP 5143)):
[KCrash Handler]
#6  0x00000000004254f4 in MainWindow::statusChanged (this=0x15b5070, status=RemoteView::Authenticating) at ../../krdc/mainwindow.cpp:445
#7  0x000000000042b3a6 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=0x15b5070, _c=<optimized out>) at ./mainwindow.moc:123
#8  MainWindow::qt_static_metacall (_o=0x15b5070, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./mainwindow.moc:104
#9  0x00007f5d86be3281 in QMetaObject::activate (sender=0x1ef8d10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff166984b0) at kernel/qobject.cpp:3547
#10 0x00007f5d88bac4f1 in RemoteView::statusChanged (this=<optimized out>, _t1=RemoteView::Authenticating) at ./moc_remoteview.cpp:206
#11 0x00007f5d88bac540 in RemoteView::setStatus (this=0x1ef8d10, s=RemoteView::Connected) at ../../../krdc/core/remoteview.cpp:83
#12 0x00007f5d75bdbe43 in VncView::updateImage (this=0x1ef8d10, x=0, y=0, w=<optimized out>, h=<optimized out>) at ../../../krdc/vnc/vncview.cpp:330
#13 0x00007f5d86be8446 in QObject::event (this=0x1ef8d10, e=<optimized out>) at kernel/qobject.cpp:1195
#14 0x00007f5d87618b7b in QWidget::event (this=0x1ef8d10, event=0x7f5d6800d750) at kernel/qwidget.cpp:8821
#15 0x00007f5d875c8894 in notify_helper (e=0x7f5d6800d750, receiver=0x1ef8d10, this=0x14e2580) at kernel/qapplication.cpp:4559
#16 QApplicationPrivate::notify_helper (this=0x14e2580, receiver=0x1ef8d10, e=0x7f5d6800d750) at kernel/qapplication.cpp:4531
#17 0x00007f5d875cd713 in QApplication::notify (this=0x7fff16699260, receiver=0x1ef8d10, e=0x7f5d6800d750) at kernel/qapplication.cpp:4420
#18 0x00007f5d883023f6 in KApplication::notify (this=0x7fff16699260, receiver=0x1ef8d10, event=0x7f5d6800d750) at ../../kdeui/kernel/kapplication.cpp:311
#19 0x00007f5d86bcee9c in QCoreApplication::notifyInternal (this=0x7fff16699260, receiver=0x1ef8d10, event=0x7f5d6800d750) at kernel/qcoreapplication.cpp:876
#20 0x00007f5d86bd2c6a in sendEvent (event=0x7f5d6800d750, receiver=0x1ef8d10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x14bb520) at kernel/qcoreapplication.cpp:1500
#22 0x00007f5d86bfdf93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#23 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#24 0x00007f5d82ffdd13 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
Comment 1 Urs Wolfer 2015-04-02 20:23:53 UTC
Can you really reproduce this crash always?
Comment 2 Claus Reibenstein 2015-04-07 07:01:05 UTC
Just tried to repoduce it, and, for the very first time, it did _not_ crash. I opened 3 RDP and 2 VNC connections, and everything worked fine.

Has there been an update recently that fixed the problem?
Comment 3 Andrew Crouthamel 2018-10-31 04:00:57 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2018-11-15 10:52:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2018-11-30 04:04:53 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!