Bug 201043 - KRDC crashes on VNC session logout
Summary: KRDC crashes on VNC session logout
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: VNC (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
: 220453 225125 (view as bug list)
Depends on: 185464
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-22 00:28 UTC by Adam Jimerson
Modified: 2010-10-17 17:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Jimerson 2009-07-22 00:28:42 UTC
Version:           4.2.4 (KDE 4.2.4) "release 2" (using 4.2.4 (KDE 4.2.4) "release 2", KDE:42 / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.23-0.1-default

After logging out of a VNC session KRDC crashes and produces this backtrace

Application: KRDC (krdc), signal SIGSEGV
0x00007fb85993ece1 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7fb85da7c750 (LWP 23282))]

Thread 2 (Thread 0x7fb84f023950 (LWP 23283)):
#0  0x00007fb85a37ad59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fb85a5ebf29 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fb85a5e7db0 in QSemaphore::acquire(int) () from /usr/lib64/libQtCore.so.4
#3  0x00007fb85a6e75b7 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#4  0x000000000041eec1 in _start ()

Thread 1 (Thread 0x7fb85da7c750 (LWP 23282)):
[KCrash Handler]
#5  0x00007fb85b55ecc0 in QFrame::frameWidth() const () from /usr/lib64/libQtGui.so.4
#6  0x000000000042d853 in _start ()

This is what I get from konsole output

krdc(23311): Attempt to use QAction "remote_desktop_dockwidget" with KXMLGUIFactory!
QWidget::setMaximumSize: (/VncView) Negative sizes (-2147483648,-2147483648) are not possible
QWidget::setMaximumSize: (/VncView) Negative sizes (-2147483648,-2147483648) are not possible
QWidget::setMaximumSize: (/VncView) Negative sizes (-2147483648,-2147483648) are not possible
KCrash: Application 'krdc' crashing...
sock_file=/home/vendion/.kde4/socket-Big-O/kdeinit4__0
Comment 1 Dario Andres 2009-07-22 15:13:40 UTC
- Can you reproduce the crash at will always? If you can, please install the "kdenetwork4-debuginfo" package and try to paste here a new (and hopefully complete) backtrace. Thanks!
Comment 2 Adam Jimerson 2009-07-23 02:07:32 UTC
Yes it does happen every time and I'm sorry that it was not a complete backtrace I have installed to requested package and hopefully this one is complete:

Application: KRDC (krdc), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
0x00007f32bd463ce1 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f32c15a0750 (LWP 14506))]

Thread 2 (Thread 0x7f32b2b41950 (LWP 14509)):
#0  0x00007f32bde9fd59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f32be110f29 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007f32be10cdb0 in QSemaphore::acquire(int) () from /usr/lib64/libQtCore.so.4
#3  0x00007f32be20c5b7 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#4  0x000000000041eec1 in VncClientThread::imageUpdated (this=0x7f32ac00269c, _t1=0, _t2=0, _t3=26, _t4=-1409276304) at /usr/src/debug/kdenetwork-4.2.4/build/krdc/moc_vncclientthread.cpp:98
#5  0x000000000041f44a in VncClientThread::updatefb (cl=<value optimized out>, x=0, y=0, w=26, h=28) at /usr/src/debug/kdenetwork-4.2.4/krdc/vnc/vncclientthread.cpp:229
#6  0x00007f32c063fef7 in HandleRFBServerMessage () from /usr/lib64/libvncclient.so.0
#7  0x000000000041fff5 in VncClientThread::run (this=0x7fba30) at /usr/src/debug/kdenetwork-4.2.4/krdc/vnc/vncclientthread.cpp:288
#8  0x00007f32be10ff72 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007f32bde9c070 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f32bd49510d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f32c15a0750 (LWP 14506)):
[KCrash Handler]
#5  0x00007f32bf083cc0 in QFrame::frameWidth() const () from /usr/lib64/libQtGui.so.4
#6  0x000000000042d853 in MainWindow::resizeTabWidget (this=0x6eb710, w=1024, h=768) at /usr/src/debug/kdenetwork-4.2.4/krdc/mainwindow.cpp:425
#7  0x0000000000433279 in MainWindow::qt_metacall (this=0x6eb710, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffc95e73b0)
    at /usr/src/debug/kdenetwork-4.2.4/build/krdc/mainwindow.moc:130
#8  0x00007f32be20c454 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#9  0x000000000042baba in RemoteView::framebufferSizeChanged (this=0x0, _t1=1024, _t2=768) at /usr/src/debug/kdenetwork-4.2.4/build/krdc/moc_remoteview.cpp:152
#10 0x0000000000421474 in VncView::updateImage (this=0x7fb9d0, x=0, y=<value optimized out>, w=<value optimized out>, h=<value optimized out>)
    at /usr/src/debug/kdenetwork-4.2.4/krdc/vnc/vncview.cpp:360
#11 0x0000000000422b21 in VncView::qt_metacall (this=0x7fb9d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f32ac002970)
    at /usr/src/debug/kdenetwork-4.2.4/build/krdc/moc_vncview.cpp:77
#12 0x00007f32be207105 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#13 0x00007f32bed85e46 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#14 0x00007f32bed341bd in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#15 0x00007f32bed3bf8a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#16 0x00007f32bfb0257b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#17 0x00007f32be1f8091 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#18 0x00007f32be1f8d3a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#19 0x00007f32be220863 in ?? () from /usr/lib64/libQtCore.so.4
#20 0x00007f32bcb130fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f32bcb168cd in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f32bcb16a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f32be2204ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#24 0x00007f32bedc49bf in ?? () from /usr/lib64/libQtGui.so.4
#25 0x00007f32be1f69a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#26 0x00007f32be1f6b2d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#27 0x00007f32be1f8ffd in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#28 0x0000000000433fc2 in main (argc=3, argv=0x7fffc95e8428) at /usr/src/debug/kdenetwork-4.2.4/krdc/main.cpp:95
Comment 3 Urs Wolfer 2009-08-09 22:49:58 UTC
Adam Jimerson: Please also install Qt debug packges. These debug symbols are missing.
Comment 4 Adam Jimerson 2009-08-10 17:03:03 UTC
Here it is with the QT debug packages as well.

Application: KRDC (krdc), signal: Segmentation fault
[Current thread is 1 (Thread 0x7facecfcd750 (LWP 30598))]

Thread 2 (Thread 0x7facdd11d950 (LWP 30599)):
#0  0x00007face9752d59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007face99c3e29 in QWaitCondition::wait (this=0x7facd8000c68, mutex=0x7facd8000c60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007face99bfc70 in QSemaphore::acquire (this=0x7facdd11cb70, n=1) at thread/qsemaphore.cpp:143
#3  0x00007face9ac0f8f in QMetaObject::activate (sender=0x70acf0, from_signal_index=11, to_signal_index=11, argv=0x7facdd11cbf0) at kernel/qobject.cpp:3034
#4  0x00007face158dea3 in VncClientThread::imageUpdated (this=0x7facd80009ec, _t1=0, _t2=0, _t3=5, _t4=-671086144) at /usr/src/debug/kdenetwork-4.3.0/build/krdc/vnc/moc_vncclientthread.cpp:100
#5  0x00007face158e47c in VncClientThread::updatefb (cl=0x1006700, x=0, y=0, w=5, h=2) at /usr/src/debug/kdenetwork-4.3.0/krdc/vnc/vncclientthread.cpp:232
#6  0x00007face137aef7 in HandleRFBServerMessage () from /usr/lib64/libvncclient.so.0
#7  0x00007face158efbd in VncClientThread::run (this=0x70acf0) at /usr/src/debug/kdenetwork-4.3.0/krdc/vnc/vncclientthread.cpp:291
#8  0x00007face99c2e75 in QThreadPrivate::start (arg=0x70acf0) at thread/qthread_unix.cpp:188
#9  0x00007face974f070 in start_thread () from /lib64/libpthread.so.0
#10 0x00007face8d4810d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7facecfcd750 (LWP 30598)):
[KCrash Handler]
#5  QFrame::frameWidth (this=0x0) at widgets/qframe.cpp:437
#6  0x00000000004274ab in MainWindow::resizeTabWidget (this=0x6e0340, w=1024, h=768) at /usr/src/debug/kdenetwork-4.3.0/krdc/mainwindow.cpp:432
#7  0x0000000000427999 in MainWindow::qt_metacall (this=0x6e0340, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffab6515d0)
    at /usr/src/debug/kdenetwork-4.3.0/build/krdc/mainwindow.moc:130
#8  0x00007face9ac0e32 in QMetaObject::activate (sender=0x70ac90, from_signal_index=<value optimized out>, to_signal_index=27, argv=0xff2c50) at kernel/qobject.cpp:3113
#9  0x00007facec02c34c in RemoteView::framebufferSizeChanged (this=0x0, _t1=1024, _t2=768) at /usr/src/debug/kdenetwork-4.3.0/build/krdc/core/moc_remoteview.cpp:154
#10 0x00007face1594638 in VncView::updateImage (this=0x70ac90, x=0, y=<value optimized out>, w=<value optimized out>, h=<value optimized out>)
    at /usr/src/debug/kdenetwork-4.3.0/krdc/vnc/vncview.cpp:366
#11 0x00007face1594899 in VncView::qt_metacall (this=0x70ac90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7facd8000a30)
    at /usr/src/debug/kdenetwork-4.3.0/build/krdc/vnc/moc_vncview.cpp:78
#12 0x00007face9abbff8 in QObject::event (this=0x70ac90, e=0x7facd8000ca0) at kernel/qobject.cpp:1111
#13 0x00007facea67632d in QWidget::event (this=0x70ac90, event=0x7facd8000ca0) at kernel/qwidget.cpp:7951
#14 0x00007facea625b0d in QApplicationPrivate::notify_helper (this=0x653eb0, receiver=0x70ac90, e=0x7facd8000ca0) at kernel/qapplication.cpp:4065
#15 0x00007facea62dd9a in QApplication::notify (this=0x7fffab652240, receiver=0x70ac90, e=0x7facd8000ca0) at kernel/qapplication.cpp:4030
#16 0x00007faceb4a071b in KApplication::notify (this=0x7fffab652240, receiver=0x70ac90, event=0x7facd8000ca0) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#17 0x00007face9aac04c in QCoreApplication::notifyInternal (this=0x7fffab652240, receiver=0x70ac90, event=0x7facd8000ca0) at kernel/qcoreapplication.cpp:610
#18 0x00007face9aaccca in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x63b0d0) at kernel/qcoreapplication.h:213
#19 0x00007face9ad5823 in postEventSourceDispatch (s=<value optimized out>) at kernel/qcoreapplication.h:218
#20 0x00007face5e320fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007face5e358cd in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007face5e35a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007face9ad54af in QEventDispatcherGlib::processEvents (this=0x63a900, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:328
#24 0x00007facea6bd03f in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#25 0x00007face9aaa8d2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1419435696}) at kernel/qeventloop.cpp:149
#26 0x00007face9aaaca4 in QEventLoop::exec (this=0x7fffab652190, flags={i = -1419435616}) at kernel/qeventloop.cpp:201
#27 0x00007face9aacf94 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#28 0x0000000000428abf in main (argc=3, argv=0x7fffab652778) at /usr/src/debug/kdenetwork-4.3.0/krdc/main.cpp:101
Comment 5 Urs Wolfer 2009-12-28 21:32:22 UTC
*** Bug 220453 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2010-02-04 02:41:58 UTC
From bug 225125:
KRDC VNC with a tunnel SSH crashes while working in firefox at that time
Comment 7 Dario Andres 2010-02-04 02:42:01 UTC
*** Bug 225125 has been marked as a duplicate of this bug. ***
Comment 8 Urs Wolfer 2010-06-12 11:09:39 UTC
Can anybody confirm if this bug is fixed (fix applied for KDE SC 4.5 Beta 2)?
Comment 9 Urs Wolfer 2010-09-19 13:47:01 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 10 Urs Wolfer 2010-10-17 17:40:33 UTC
Closing as fixed since nobody can reproduce this crashes anymore with the fixes from KRDC 4.5.