Bug 314504 - KRDC crashes when connecting to a VNC server
Summary: KRDC crashes when connecting to a VNC server
Status: RESOLVED DOWNSTREAM
Alias: None
Product: krdc
Classification: Applications
Component: VNC (show other bugs)
Version: 4.10.0
Platform: openSUSE Linux
: NOR critical
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
: 315326 316778 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-06 10:19 UTC by Víctor Fernández
Modified: 2013-10-20 10:44 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch to revert krdc from 4.10.1 to 4.9.5 (27.48 KB, patch)
2013-03-12 20:42 UTC, Hans-Peter Jansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Víctor Fernández 2013-02-06 10:19:08 UTC
After updating to KDE SC 4.10, whenever I connect to my VNC server, KRDC crashes. This did not happen in KDE SC 4.9.

It crashes in thread 2. Backtrace:

Thread 2 (Thread 0x7fffe40dd700 (LWP 6134)):
#0  _gnutls_free_auth_info (session=session@entry=0x7fffe5c92520 <VncClientThread::credentialHandler(_rfbClient*, int)>) at gnutls_auth.c:309
#1  0x00007fffe558e455 in gnutls_deinit (session=0x7fffe5c92520 <VncClientThread::credentialHandler(_rfbClient*, int)>) at gnutls_state.c:427
#2  0x00007fffe5a7f825 in FreeTLS (client=client@entry=0x7fffe3885010) at tls.c:529
#3  0x00007fffe5a7eadb in rfbClientCleanup (client=client@entry=0x7fffe3885010) at vncviewer.c:366
#4  0x00007fffe5a7ec55 in rfbInitClient (client=0x7fffe3885010, argc=<optimized out>, argv=<optimized out>) at vncviewer.c:334
#5  0x00007fffe5c9381a in VncClientThread::run (this=0xba8fb0) at /usr/src/debug/kdenetwork-4.10.0/krdc/vnc/vncclientthread.cpp:401
#6  0x00007ffff522f08c in QThreadPrivate::start (arg=0xba8fb0) at thread/qthread_unix.cpp:338
#7  0x00007ffff2d33e0e in start_thread (arg=0x7fffe40dd700) at pthread_create.c:305
#8  0x00007ffff4be52cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fffeb4e5780 (LWP 6131)):
#0  0x00007ffff5e02319 in QPixmap::pixmapData (this=<optimized out>) at image/qpixmap.cpp:2161
#1  0x00007ffff5efe5a9 in QRasterPaintEngine::drawPixmap (this=0x6e81a0, r=..., pixmap=..., sr=...) at painting/qpaintengine_raster.cpp:2085
#2  0x00007ffff5e82a6b in QPainter::drawPixmap (this=0x7fffffffb610, r=..., pm=..., sr=...) at painting/qpainter.cpp:5521
#3  0x00007ffff602429e in drawPixmap (sh=<optimized out>, sw=<optimized out>, sy=<optimized out>, sx=<optimized out>, pm=..., y=<optimized out>, 
    x=<optimized out>, this=0x7fffffffb610) at ../../src/gui/painting/qpainter.h:879
#4  QStyle::drawItemPixmap (this=this@entry=0x7626b0, painter=painter@entry=0x7fffffffb610, rect=..., alignment=alignment@entry=132, pixmap=...)
    at styles/qstyle.cpp:561
#5  0x00007ffff60476d7 in QCommonStyle::drawControl (this=0x7626b0, element=<optimized out>, opt=0x7fffffffb380, p=0x7fffffffb610, widget=<optimized out>)
    at styles/qcommonstyle.cpp:1620
#6  0x00007fffeada02ea in Oxygen::Style::drawToolButtonLabelControl (this=0x7626b0, option=0x7fffffffb520, painter=0x7fffffffb610, widget=<optimized out>)
    at /usr/src/debug/kde-workspace-4.10.0/kstyles/oxygen/oxygenstyle.cpp:7265
#7  0x00007fffeadb8409 in Oxygen::Style::drawToolButtonComplexControl (this=0x7626b0, option=0x7fffffffb630, painter=0x7fffffffb610, widget=0xa03810)
    at /usr/src/debug/kde-workspace-4.10.0/kstyles/oxygen/oxygenstyle.cpp:7970
#8  0x00007fffead9b63e in Oxygen::Style::drawComplexControl (this=0x7626b0, element=QStyle::CC_ToolButton, option=0x7fffffffb630, painter=0x7fffffffb610, 
    widget=0xa03810) at /usr/src/debug/kde-workspace-4.10.0/kstyles/oxygen/oxygenstyle.cpp:1169
#9  0x00007ffff61a7b65 in drawComplexControl (opt=..., cc=QStyle::CC_ToolButton, this=0x7fffffffb610) at ../../src/gui/painting/qstylepainter.h:94
#10 QToolButton::paintEvent (this=0xa03810) at widgets/qtoolbutton.cpp:553
#11 0x00007ffff5d820de in QWidget::event (this=0xa03810, event=0x7fffffffbef0) at kernel/qwidget.cpp:8532
#12 0x00007ffff5d3285c in QApplicationPrivate::notify_helper (this=this@entry=0x6616a0, receiver=receiver@entry=0xa03810, e=e@entry=0x7fffffffbef0)
    at kernel/qapplication.cpp:4562
#13 0x00007ffff5d36cda in QApplication::notify (this=0x7fffffffdab0, receiver=0xa03810, e=0x7fffffffbef0) at kernel/qapplication.cpp:4423
#14 0x00007ffff6a46a96 in KApplication::notify (this=0x7fffffffdab0, receiver=0xa03810, event=0x7fffffffbef0)
    at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#15 0x00007ffff532abfe in QCoreApplication::notifyInternal (this=0x7fffffffdab0, receiver=0xa03810, event=0x7fffffffbef0) at kernel/qcoreapplication.cpp:946
#16 0x00007ffff5d7dca4 in sendSpontaneousEvent (event=0x7fffffffbef0, receiver=0xa03810) at ../../src/corelib/kernel/qcoreapplication.h:234
#17 QWidgetPrivate::drawWidget (this=this@entry=0x9e3870, pdev=pdev@entry=0x9785f0, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=
    0x0, backingStore=backingStore@entry=0x814580) at kernel/qwidget.cpp:5598
#18 0x00007ffff5d7e79f in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x980cb0, pdev=pdev@entry=0x9785f0, siblings=..., index=<optimized out>, 
    index@entry=9, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x814580)
    at kernel/qwidget.cpp:5807
#19 0x00007ffff5d7e5e4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x980cb0, pdev=pdev@entry=0x9785f0, siblings=..., index=9, index@entry=10, 
    rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x814580) at kernel/qwidget.cpp:5794
#20 0x00007ffff5d7e5e4 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x980cb0, pdev=pdev@entry=0x9785f0, siblings=..., index=10, index@entry=11, 
    rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x814580) at kernel/qwidget.cpp:5794
#21 0x00007ffff5d7e5e4 in QWidgetPrivate::paintSiblingsRecursive (this=0x980cb0, pdev=0x9785f0, siblings=..., index=11, rgn=..., offset=..., flags=4, 
    sharedPainter=0x0, backingStore=0x814580) at kernel/qwidget.cpp:5794
#22 0x00007ffff5d7d835 in QWidgetPrivate::drawWidget (this=this@entry=0x980cb0, pdev=pdev@entry=0x9785f0, rgn=..., offset=..., flags=flags@entry=4, 
    sharedPainter=sharedPainter@entry=0x0, backingStore=backingStore@entry=0x814580) at kernel/qwidget.cpp:5651
#23 0x00007ffff5d7e79f in QWidgetPrivate::paintSiblingsRecursive (this=0x85f640, pdev=0x9785f0, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=
    4, sharedPainter=0x0, backingStore=0x814580) at kernel/qwidget.cpp:5807
#24 0x00007ffff5d7d835 in QWidgetPrivate::drawWidget (this=0x85f640, pdev=0x9785f0, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, backingStore=
    0x814580) at kernel/qwidget.cpp:5651
#25 0x00007ffff5f481a8 in QWidgetBackingStore::sync (this=0x814580) at painting/qbackingstore.cpp:1373
#26 0x00007ffff5d72940 in QWidgetPrivate::syncBackingStore (this=this@entry=0x85f640) at kernel/qwidget.cpp:1896
#27 0x00007ffff5d82584 in QWidget::event (this=0x7b9220, event=0xc5b240) at kernel/qwidget.cpp:8679
#28 0x00007ffff614655b in QMainWindow::event (this=0x7b9220, event=0xc5b240) at widgets/qmainwindow.cpp:1478
#29 0x00007ffff6b38ab8 in KXmlGuiWindow::event (this=0x7b9220, ev=0xc5b240) at /usr/src/debug/kdelibs-4.10.0/kdeui/xmlgui/kxmlguiwindow.cpp:126
#30 0x00007ffff5d3285c in QApplicationPrivate::notify_helper (this=this@entry=0x6616a0, receiver=receiver@entry=0x7b9220, e=e@entry=0xc5b240)
    at kernel/qapplication.cpp:4562
#31 0x00007ffff5d36cda in QApplication::notify (this=0x7fffffffdab0, receiver=0x7b9220, e=0xc5b240) at kernel/qapplication.cpp:4423
#32 0x00007ffff6a46a96 in KApplication::notify (this=0x7fffffffdab0, receiver=0x7b9220, event=0xc5b240)
    at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#33 0x00007ffff532abfe in QCoreApplication::notifyInternal (this=0x7fffffffdab0, receiver=receiver@entry=0x7b9220, event=event@entry=0xc5b240)
    at kernel/qcoreapplication.cpp:946
#34 0x00007ffff532e561 in sendEvent (event=0xc5b240, receiver=0x7b9220) at kernel/qcoreapplication.h:231
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x637b10) at kernel/qcoreapplication.cpp:1570
#36 0x00007ffff5358f83 in sendPostedEvents () at kernel/qcoreapplication.h:236
#37 postEventSourceDispatch (s=0x65cee0) at kernel/qeventdispatcher_glib.cpp:279
#38 0x00007ffff13d13b5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#39 0x00007ffff13d16e8 in ?? () from /usr/lib64/libglib-2.0.so.0
#40 0x00007ffff13d17a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#41 0x00007ffff5359116 in QEventDispatcherGlib::processEvents (this=0x63cff0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#42 0x00007ffff5dd2bee in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007ffff532994f in QEventLoop::processEvents (this=this@entry=0x7fffffffd910, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007ffff5329bd8 in QEventLoop::exec (this=0x7fffffffd910, flags=...) at kernel/qeventloop.cpp:204
#45 0x00007ffff532e878 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#46 0x0000000000416760 in main (argc=<optimized out>, argv=0x7fffffffdc08) at /usr/src/debug/kdenetwork-4.10.0/krdc/main.cpp:104
(gdb) 

Reproducible: Always

Steps to Reproduce:
1. Connect to a VNC server
Actual Results:  
KRDC crashes immediately

Expected Results:  
KRDC should not crash
Comment 1 Víctor Fernández 2013-02-06 10:23:49 UTC
The RPM is krdc-4.10.0-270.1.x86_64 from the openSUSE KDE:Release:410 repo.
Comment 2 Urs Wolfer 2013-02-06 10:25:52 UTC
What version of gnutls are you using? What type of VNC server are you connecting to? At what moment is it crashing exactly?

Please run kdebugdialog from Konsole and enable KRDC (all items). Then run KRDC from  Konsole and post the output here (please check that there is no private information included).
Comment 3 Víctor Fernández 2013-02-06 10:31:23 UTC
- libgnutls28-3.0.20-1.1.2.x86_64
- The VNC server is tightvnc-1.3.10-8.1.4.x86_64, also in openSUSE.
- It crashes right when connecting. I double-click the server in the recent list, getting the Host Configuration dialog. When I click OK in that dialog, KRDC crashes and its window disappears.
Comment 4 Víctor Fernández 2013-02-06 10:33:17 UTC
Here is the output of KRDC after enabling debug messages:

~> krdc
krdc(6305)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-vfernandez/ksycoca4"
krdc(6305) MainWindow::loadAllPlugins: "### Plugin RDP found ###"
krdc(6305) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(6305) MainWindow::loadAllPlugins: # Description: "Allows managing RDP sessions through KRDC"
krdc(6305) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(6305) MainWindow::loadAllPlugins: # Sorting: 60
krdc(6305) MainWindow::loadAllPlugins: "### Plugin VNC found ###"
krdc(6305) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(6305) MainWindow::loadAllPlugins: # Description: "Allows managing VNC sessions through KRDC"
krdc(6305) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(6305) MainWindow::loadAllPlugins: # Sorting: 20
krdc(6305) MainWindow::loadAllPlugins: "# Plugin Test found, however it's not activated, skipping..."
krdc(6305) RemoteDesktopsModel::RemoteDesktopsModel: Browsing for zeroconf hosts.
krdc(6305)/kdeui (kdelibs): Attempt to use QAction "remote_desktop_dockwidget" with KXMLGUIFactory! 
krdc(6305) MainWindow::updateActionStatus: -1
krdc(6305)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised
krdc(6305)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "Europe/Vienna"
krdc(6305)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readZoneTab: readZoneTab( "/usr/share/zoneinfo/zone.tab" )
krdc(6305) MainWindow::tabChanged: 0
krdc(6305) MainWindow::updateActionStatus: 0
krdc(6305) main: ########## KRDC ready: 127 ms ##########
krdc(6305) MainWindow::newConnection: "Found plugin to handle url (vnc://10.17.133.31:5901): VncView"
krdc(6305) HostPreferences::showDialogIfNeeded: Show config dialog again
krdc(6305) HostPreferences::showDialog: HostPreferences config dialog accepted
krdc(6305) MainWindow::tabChanged: -1
krdc(6305) MainWindow::updateActionStatus: -1
krdc(6305)/krdc (VNC backend) VncView::scaleResize: 1280 926
krdc(6305) MainWindow::tabChanged: 0
krdc(6305) MainWindow::updateActionStatus: 0
krdc(6305) MainWindow::tabChanged: 0
krdc(6305) MainWindow::updateActionStatus: 0
krdc(6305) MainWindow::statusChanged: -2
krdc(6305) MainWindow::statusChanged: -1
krdc(6305) MainWindow::statusChanged: 0
krdc(6305)/krdc (VNC backend) VncClientThread::run: --------------------- trying init ---------------------
krdc(6305)/krdc (VNC backend) VncClientThread::outputHandler: "Error reading from TLS: The request is invalid.."
krdc(6305)/krdc (VNC backend) VncClientThread::outputHandler: "read (4: Interrupted system call)"
krdc: Fatal IO error: client killed
~>
Comment 5 Víctor Fernández 2013-02-06 10:37:06 UTC
BTW, RDP works fine. I have another instance of KRDC connected to a RDP server and it's running fine. However, when I open a new instance and connect to VNC, the problem happens.
Comment 6 Urs Wolfer 2013-02-07 19:24:25 UTC
Thanks a lot for your information.

I have no idea at the moment... it also could be an issue with the TLS library.

RDP support in KRDC is based on another library.
Comment 7 ilmc888 2013-02-13 12:27:55 UTC
I can confirm this, I get exactly the same backtrace (crashes in gnutls called by libvncclient.so) when trying to connect to a tightvnc server.

Client:
opensuse 12.2 (kde 4.10)
krdc-4.10.0-270.1
LibVNCServer-0.9.8-git201104301110-14.4.1
gnutls-3.0.20-1.1.2

Server:
opensuse 12.2 Tumbleweed (kde 4.9.4)
tightvnc-1.3.10-8.1.4

Seems this might be a (packaging?) issue on opensuse. Nevertheless, I'll try to get a backtrace soon if it might be useful.
Comment 8 Urs Wolfer 2013-02-13 12:35:57 UTC
Please report this bug also against opensuse since only opensuse users are reporting this crash.
Comment 9 Víctor Fernández 2013-02-13 14:34:37 UTC
As requested, I have posted it in bugzilla.novell.com as well:
https://bugzilla.novell.com/show_bug.cgi?id=803534
Comment 10 Urs Wolfer 2013-02-17 15:21:46 UTC
*** Bug 315326 has been marked as a duplicate of this bug. ***
Comment 11 Jörg Afflerbach 2013-02-27 15:21:07 UTC
Here, KRDC 4.10 (krdc-4.10.0-270.3.x86_64 on openSUSE 12.2.) also crashes immediately when I try to connect to a xvnc [http://www.karlrunge.com/x11vnc/] server. Conencting with vncviewer works without problems.

Backtrace:
#0  _gnutls_free_auth_info (session=session@entry=0x7fffe5ca6520 <VncClientThread::credentialHandler(_rfbClient*, int)>) at gnutls_auth.c:309
#1  0x00007fffe5573455 in gnutls_deinit (session=0x7fffe5ca6520 <VncClientThread::credentialHandler(_rfbClient*, int)>) at gnutls_state.c:427
#2  0x00007fffe5a64825 in FreeTLS () from /usr/lib64/libvncclient.so.0
#3  0x00007fffe5a63adb in rfbClientCleanup () from /usr/lib64/libvncclient.so.0
#4  0x00007fffe5a63c55 in rfbInitClient () from /usr/lib64/libvncclient.so.0
#5  0x00007fffe5ca781a in VncClientThread::run (this=0xa055f0) at /usr/src/debug/kdenetwork-4.10.0/krdc/vnc/vncclientthread.cpp:401
#6  0x00007ffff522f08c in ?? () from /usr/lib64/libQtCore.so.4
#7  0x00007ffff2d33e0e in start_thread () from /lib64/libpthread.so.0
#8  0x00007ffff4be52bd in clone () from /lib64/libc.so.6
Comment 12 Hans-Peter Jansen 2013-03-12 20:41:13 UTC
Dear Urs,

found this and the downstream bug, since I suffer from this, too. Since I have to use krdc every day, this is rather essential for me to have it working. Let me take the opportunity here to thank you for this nice tool. Great work, Urs, thank you very much.

But now for the not so shinny side of things:

Interestingly, if we just install the 4.9.5 krdc package, build against the very same libs, all is well. The same holds true, if I revert all changes to krdc (patch supplied), hence the issue is definitely in the changes of krdc between 4.9.5 and 4.10.1. 

You can view the full build and try the package from:
https://build.opensuse.org/project/monitor?project=home%3Afrispete%3AKDE
if you like.

Here's the kdebug output from some runs:
defective 4.10.1:

~> LANG=C krdc
krdc(19366)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-hp/ksycoca4"
krdc(19366) MainWindow::loadAllPlugins: "### Plugin VNC found ###"
krdc(19366) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(19366) MainWindow::loadAllPlugins: # Description: "Erlaubt die Verwaltung von VNC-Sitzungen �ber KRDC"
krdc(19366) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(19366) MainWindow::loadAllPlugins: # Sorting: 20
krdc(19366) MainWindow::loadAllPlugins: "### Plugin RDP found ###"
krdc(19366) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(19366) MainWindow::loadAllPlugins: # Description: "Erlaubt die Verwaltung von RDP-Sitzungen �ber KRDC"
krdc(19366) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(19366) MainWindow::loadAllPlugins: # Sorting: 60
krdc(19366) MainWindow::loadAllPlugins: "# Plugin Test found, however it's not activated, skipping..."
krdc(19366) RemoteDesktopsModel::RemoteDesktopsModel: Browsing for zeroconf hosts.
krdc(19366)/kdeui (kdelibs): Attempt to use QAction "remote_desktop_dockwidget" with KXMLGUIFactory! 
krdc(19366) MainWindow::updateActionStatus: -1
krdc(19366)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised
krdc(19366)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "Europe/Berlin"
krdc(19366)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readZoneTab: readZoneTab( "/usr/share/zoneinfo/zone.tab" )
krdc(19366) MainWindow::tabChanged: 0
krdc(19366) MainWindow::updateActionStatus: 0
krdc(19366) main: ########## KRDC ready: 274 ms ##########
krdc(19366) MainWindow::newConnection: "Found plugin to handle url (vnc://192.168.23.107:5900): VncView"
krdc(19366) HostPreferences::showDialogIfNeeded: No config found, create new
krdc(19366) HostPreferences::showDialog: HostPreferences config dialog accepted
krdc(19366) MainWindow::tabChanged: -1
krdc(19366) MainWindow::updateActionStatus: -1
krdc(19366)/krdc (VNC backend) VncView::scaleResize: 1920 1200
krdc(19366) MainWindow::tabChanged: 0
krdc(19366) MainWindow::updateActionStatus: 0
krdc(19366) MainWindow::tabChanged: 0
krdc(19366) MainWindow::updateActionStatus: 0
krdc(19366) MainWindow::statusChanged: -2
krdc(19366) MainWindow::statusChanged: -1
krdc(19366) MainWindow::statusChanged: 0
krdc(19366)/krdc (VNC backend) VncClientThread::run: --------------------- trying init ---------------------
krdc(19366)/krdc (VNC backend) VncClientThread::outputHandler: "Error reading from TLS: The request is invalid.."
krdc(19366)/krdc (VNC backend) VncClientThread::outputHandler: "read (4: Interrupted system call)"
KCrash: Application 'krdc' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
krdc: Fatal IO error: client killed
sock_file=/home/hp/.kde/socket-xrated/kdeinit4__0

krdc 4.9.5 (in a fully updated 4.10.1 environment):
~> LANG=C krdc
krdc(21381)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-hp/ksycoca4"
krdc(21381) MainWindow::loadAllPlugins: "### Plugin VNC found ###"
krdc(21381) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(21381) MainWindow::loadAllPlugins: # Description: "Erlaubt die Verwaltung von VNC-Sitzungen �ber KRDC"
krdc(21381) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(21381) MainWindow::loadAllPlugins: # Sorting: 20
krdc(21381) MainWindow::loadAllPlugins: "### Plugin RDP found ###"
krdc(21381) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(21381) MainWindow::loadAllPlugins: # Description: "Erlaubt die Verwaltung von RDP-Sitzungen �ber KRDC"
krdc(21381) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(21381) MainWindow::loadAllPlugins: # Sorting: 60
krdc(21381) MainWindow::loadAllPlugins: "# Plugin Test found, however it's not activated, skipping..."
krdc(21381) RemoteDesktopsModel::RemoteDesktopsModel: Browsing for zeroconf hosts.
krdc(21381)/kdeui (kdelibs): Attempt to use QAction "remote_desktop_dockwidget" with KXMLGUIFactory! 
krdc(21381) MainWindow::updateActionStatus: -1
krdc(21381)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised
krdc(21381)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "Europe/Berlin"
krdc(21381)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readZoneTab: readZoneTab( "/usr/share/zoneinfo/zone.tab" )
krdc(21381) MainWindow::tabChanged: 0
krdc(21381) MainWindow::updateActionStatus: 0
krdc(21381) main: ########## KRDC ready: 394 ms ##########
krdc(21381) MainWindow::newConnection: "Found plugin to handle url (vnc://192.168.23.107:5900): VncView"
krdc(21381) HostPreferences::showDialogIfNeeded: No config found, create new
krdc(21381) HostPreferences::showDialog: HostPreferences config dialog accepted
krdc(21381) MainWindow::tabChanged: -1
krdc(21381) MainWindow::updateActionStatus: -1
krdc(21381)/krdc (VNC backend) VncView::scaleResize: 1920 1200
krdc(21381) MainWindow::tabChanged: 0
krdc(21381) MainWindow::updateActionStatus: 0
krdc(21381) MainWindow::tabChanged: 0
krdc(21381) MainWindow::updateActionStatus: 0
krdc(21381) MainWindow::statusChanged: -2
krdc(21381) MainWindow::statusChanged: -1
krdc(21381) MainWindow::statusChanged: 0
krdc(21381)/krdc (VNC backend) VncClientThread::run: --------------------- trying init ---------------------
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server supports protocol version 3.8 (viewer 3.8)"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "We have 1 security types to read"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "0) Received security type 2"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "Selecting security type 2 (0/1 in the list)"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "Selected Security Scheme 2"
krdc(21381)/krdc (VNC backend) VncClientThread::passwdHandler: password request "[
0: /usr/lib64/libkdecore.so.5(kRealBacktrace(int)+0x38) [0x7f136f67fc58]
1: /usr/lib64/kde4/krdc_vncplugin.so(+0xbfed) [0x7f1360141fed]
2: /usr/lib64/libvncclient.so.0(+0x12ded) [0x7f135fef9ded]
3: /usr/lib64/libvncclient.so.0(InitialiseRFBConnection+0x365) [0x7f135fefa225]
4: /usr/lib64/libvncclient.so.0(rfbInitClient+0x65) [0x7f135fefbc45]
5: /usr/lib64/kde4/krdc_vncplugin.so(+0xd1f8) [0x7f13601431f8]
6: /usr/lib64/libQtCore.so.4(+0x820bc) [0x7f136f1200bc]
7: /lib64/libpthread.so.0(+0x7e0e) [0x7f136cc24e0e]
8: /lib64/libc.so.6(clone+0x6d) [0x7f136ead62cd]
]
"
krdc(21381)/krdc (VNC backend) VncView::requestPassword: request password
krdc(21381) MainWindow::statusChanged: 1
krdc(21381) RemoteView::readWalletPassword: Wallet OK
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "VNC connection failed: password check failed!"
krdc(21381)/krdc (VNC backend) VncClientThread::run: --------------------- trying init ---------------------
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server supports protocol version 3.8 (viewer 3.8)"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "We have 1 security types to read"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "0) Received security type 2"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "Selecting security type 2 (0/1 in the list)"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "Selected Security Scheme 2"
krdc(21381)/krdc (VNC backend) VncClientThread::passwdHandler: password request "[
0: /usr/lib64/libkdecore.so.5(kRealBacktrace(int)+0x38) [0x7f136f67fc58]
1: /usr/lib64/kde4/krdc_vncplugin.so(+0xbfed) [0x7f1360141fed]
2: /usr/lib64/libvncclient.so.0(+0x12ded) [0x7f135fef9ded]
3: /usr/lib64/libvncclient.so.0(InitialiseRFBConnection+0x365) [0x7f135fefa225]
4: /usr/lib64/libvncclient.so.0(rfbInitClient+0x65) [0x7f135fefbc45]
5: /usr/lib64/kde4/krdc_vncplugin.so(+0xd1f8) [0x7f13601431f8]
6: /usr/lib64/libQtCore.so.4(+0x820bc) [0x7f136f1200bc]
7: /lib64/libpthread.so.0(+0x7e0e) [0x7f136cc24e0e]
8: /lib64/libc.so.6(clone+0x6d) [0x7f136ead62cd]
]
"
krdc(21381)/krdc (VNC backend) VncView::requestPassword: request password
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "VNC authentication succeeded"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "Desktop name "xrated:0""
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "Connected to VNC server, using protocol version 3.8"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server default format:"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "32 bits per pixel."
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "Least significant byte first in each pixel."
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "TRUE colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0"
krdc(21381)/krdc (VNC backend) VncClientThread::newclient: Client created
krdc(21381)/krdc (VNC backend) VncClientThread::run: --------------------- Starting main VNC event loop ---------------------
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "client2server supported messages (bit flags)"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "00: 00ff 0081 0000 0000 - 0000 0000 0000 0000"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "08: 0000 0000 0000 0000 - 0000 0000 0000 0000"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "10: 0000 0000 0000 0000 - 0000 0000 0000 0000"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "18: 0000 0000 0000 0000 - 0000 0000 0000 0004"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "server2client supported messages (bit flags)"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "00: 001f 0080 0000 0000 - 0000 0000 0000 0000"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "08: 0000 0000 0000 0000 - 0000 0000 0000 0000"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "10: 0000 0000 0000 0000 - 0000 0000 0000 0000"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "18: 0000 0000 0000 0000 - 0000 0000 0000 0004"
krdc(21381)/krdc (VNC backend) VncClientThread::outputHandler: "Connected to Server "unknown (x11vnc 0.9.13)""
krdc(21381) MainWindow::statusChanged: 1
krdc(21381) MainWindow::statusChanged: 2
krdc(21381) MainWindow::statusChanged: 3
krdc(21381) BookmarkManager::addHistoryBookmark: Add new history bookmark.
krdc(21381)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-hp/ksycoca4"
krdc(21381)/kio (bookmarks) KBookmark::updateAccessMetadata: KBookmark::updateAccessMetadata  "/0/79"   "vnc://192.168.23.107:5900"
krdc(21381)/kio (bookmarks) KBookmarkManager::saveAs: KBookmarkManager::save  "/home/hp/.kde/share/apps/krdc/bookmarks.xml"
krdc(21381) RemoteView::saveWalletPassword: Write wallet password
krdc(21381)/krdc (VNC backend) VncView::updateImage: Updating framebuffer size
krdc(21381)/krdc (VNC backend) VncView::updateImage: Resizing:  2560 1600
krdc(21381) MainWindow::resizeTabWidget: tabwidget resize, view size: w:  2560 , h:  1600
krdc(21381) MainWindow::resizeTabWidget: new window size:  QSize(2564, 1668)  available space: QSize(2560, 1557)
krdc(21381) MainWindow::resizeTabWidget: remote desktop needs more space than available -> show window maximized
krdc(21381)/krdc (VNC backend) VncView::scaleResize: 1920 1200
krdc(21381) KBookmarkManager::notifyChanged: KBookmarkManager::notifyChanged (  "/0" )
krdc(21381)/kio (bookmarks) KBookmarkMenu::slotBookmarksChanged: KBookmarkMenu::slotBookmarksChanged(  "/0"
krdc(21381) RemoteDesktopsModel::bookmarksChanged:
krdc(21381)/krdc (VNC backend) VncView::scaleResize: 2552 1462
krdc(21381)/krdc (VNC backend) VncClientThread::cuttext: "192.168.23.107:5900"
krdc(21381)/krdc (VNC backend) VncView::clipboardDataChanged:
krdc(21381)/krdc (VNC backend) VncClientThread::cuttext: "192.168.23.107:5900"
krdc(21381)/krdc (VNC backend) VncView::clipboardDataChanged:
krdc(21381)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:

4.10.1 reverted to 4.9.5:
~> LANG=C krdc
krdc(10573)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-hp/ksycoca4"
krdc(10573) MainWindow::loadAllPlugins: "### Plugin VNC found ###"
krdc(10573) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(10573) MainWindow::loadAllPlugins: # Description: "Erlaubt die Verwaltung von VNC-Sitzungen �ber KRDC"
krdc(10573) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(10573) MainWindow::loadAllPlugins: # Sorting: 20
krdc(10573) MainWindow::loadAllPlugins: "### Plugin RDP found ###"
krdc(10573) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(10573) MainWindow::loadAllPlugins: # Description: "Erlaubt die Verwaltung von RDP-Sitzungen �ber KRDC"
krdc(10573) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(10573) MainWindow::loadAllPlugins: # Sorting: 60
krdc(10573) MainWindow::loadAllPlugins: "# Plugin Test found, however it's not activated, skipping..."
krdc(10573) RemoteDesktopsModel::RemoteDesktopsModel: Browsing for zeroconf hosts.
krdc(10573)/kdeui (kdelibs): Attempt to use QAction "remote_desktop_dockwidget" with KXMLGUIFactory! 
krdc(10573) MainWindow::updateActionStatus: -1
krdc(10573)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised
krdc(10573)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "Europe/Berlin"
krdc(10573)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readZoneTab: readZoneTab( "/usr/share/zoneinfo/zone.tab" )
krdc(10573) MainWindow::tabChanged: 0
krdc(10573) MainWindow::updateActionStatus: 0
krdc(10573) main: ########## KRDC ready: 273 ms ##########
krdc(10573) MainWindow::newConnection: "Found plugin to handle url (vnc://192.168.23.107:5900): VncView"
krdc(10573) HostPreferences::showDialogIfNeeded: Show config dialog again
krdc(10573) HostPreferences::showDialog: HostPreferences config dialog accepted
krdc(10573) MainWindow::tabChanged: -1
krdc(10573) MainWindow::updateActionStatus: -1
krdc(10573)/krdc (VNC backend) VncView::scaleResize: 1698 943
krdc(10573) MainWindow::tabChanged: 0
krdc(10573) MainWindow::updateActionStatus: 0
krdc(10573) MainWindow::tabChanged: 0
krdc(10573) MainWindow::updateActionStatus: 0
krdc(10573) MainWindow::statusChanged: -2
krdc(10573) MainWindow::statusChanged: -1
krdc(10573) MainWindow::statusChanged: 0
krdc(10573)/krdc (VNC backend) VncClientThread::run: --------------------- trying init ---------------------
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server supports protocol version 3.8 (viewer 3.8)"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "We have 1 security types to read"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "0) Received security type 2"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "Selecting security type 2 (0/1 in the list)"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "Selected Security Scheme 2"
krdc(10573)/krdc (VNC backend) VncClientThread::passwdHandler: password request "[
0: /usr/lib64/libkdecore.so.5(kRealBacktrace(int)+0x38) [0x7fefe1e18c58]
1: /usr/lib64/kde4/krdc_vncplugin.so(+0xbfed) [0x7fefd28dafed]
2: /usr/lib64/libvncclient.so.0(+0x12ded) [0x7fefd26c5ded]
3: /usr/lib64/libvncclient.so.0(InitialiseRFBConnection+0x365) [0x7fefd26c6225]
4: /usr/lib64/libvncclient.so.0(rfbInitClient+0x65) [0x7fefd26c7c45]
5: /usr/lib64/kde4/krdc_vncplugin.so(+0xd1f8) [0x7fefd28dc1f8]
6: /usr/lib64/libQtCore.so.4(+0x820bc) [0x7fefe18b90bc]
7: /lib64/libpthread.so.0(+0x7e0e) [0x7fefdf3bde0e]
8: /lib64/libc.so.6(clone+0x6d) [0x7fefe126f2cd]
]
"
krdc(10573)/krdc (VNC backend) VncView::requestPassword: request password
krdc(10573) MainWindow::statusChanged: 1
krdc(10573) RemoteView::readWalletPassword: Wallet OK
krdc(10573) RemoteView::readWalletPassword: Password read OK
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "VNC authentication succeeded"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "Desktop name "xrated:0""
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "Connected to VNC server, using protocol version 3.8"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server default format:"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "32 bits per pixel."
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "Least significant byte first in each pixel."
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "TRUE colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0"
krdc(10573)/krdc (VNC backend) VncClientThread::newclient: Client created
krdc(10573)/krdc (VNC backend) VncClientThread::run: --------------------- Starting main VNC event loop ---------------------
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "client2server supported messages (bit flags)"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "00: 00ff 0081 0000 0000 - 0000 0000 0000 0000"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "08: 0000 0000 0000 0000 - 0000 0000 0000 0000"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "10: 0000 0000 0000 0000 - 0000 0000 0000 0000"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "18: 0000 0000 0000 0000 - 0000 0000 0000 0004"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "server2client supported messages (bit flags)"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "00: 001f 0080 0000 0000 - 0000 0000 0000 0000"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "08: 0000 0000 0000 0000 - 0000 0000 0000 0000"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "10: 0000 0000 0000 0000 - 0000 0000 0000 0000"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "18: 0000 0000 0000 0000 - 0000 0000 0000 0004"
krdc(10573)/krdc (VNC backend) VncClientThread::outputHandler: "Connected to Server "unknown (x11vnc 0.9.13)""
krdc(10573) MainWindow::statusChanged: 1
krdc(10573) MainWindow::statusChanged: 2
krdc(10573) MainWindow::statusChanged: 3
krdc(10573) BookmarkManager::addHistoryBookmark: Found URL. Move it at the history start.
krdc(10573)/kio (bookmarks) KBookmark::updateAccessMetadata: KBookmark::updateAccessMetadata  "/0/0"   "vnc://192.168.23.107:5900"
krdc(10573)/kio (bookmarks) KBookmarkManager::saveAs: KBookmarkManager::save  "/home/hp/.kde/share/apps/krdc/bookmarks.xml"
krdc(10573) RemoteView::saveWalletPassword: Write wallet password
krdc(10573)/krdc (VNC backend) VncView::updateImage: Updating framebuffer size
krdc(10573)/krdc (VNC backend) VncView::updateImage: Resizing:  2560 1600
krdc(10573) MainWindow::resizeTabWidget: tabwidget resize, view size: w:  2560 , h:  1600
krdc(10573) MainWindow::resizeTabWidget: new window size:  QSize(2564, 1668)  available space: QSize(2560, 1557)
krdc(10573) MainWindow::resizeTabWidget: remote desktop needs more space than available -> show window maximized
krdc(10573)/krdc (VNC backend) VncView::scaleResize: 1698 943
krdc(10573)/krdc (VNC backend) VncView::scaleResize: 2552 1462
krdc(10573) KBookmarkManager::notifyChanged: KBookmarkManager::notifyChanged (  "/0" )
krdc(10573)/kio (bookmarks) KBookmarkMenu::slotBookmarksChanged: KBookmarkMenu::slotBookmarksChanged(  "/0"
krdc(10573) RemoteDesktopsModel::bookmarksChanged:
krdc(10573)/krdc (VNC backend) VncClientThread::cuttext: "/var/tmp/build-root/home/abuild/rpmbuild/RPMS/x86_64/krfb-4.10.1-0.x86_64.rpm"
krdc(10573)/krdc (VNC backend) VncView::clipboardDataChanged:
krdc(10573)/krdc (VNC backend) VncClientThread::cuttext: "/var/tmp/build-root/home/abuild/rpmbuild/RPMS/x86_64/krfb-4.10.1-0.x86_64.rpm"
krdc(10573)/krdc (VNC backend) VncView::clipboardDataChanged:
krdc(10573)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:

Let me know, if there's something to help you here.
Comment 13 Hans-Peter Jansen 2013-03-12 20:42:33 UTC
Created attachment 77992 [details]
patch to revert krdc from 4.10.1 to 4.9.5
Comment 14 Urs Wolfer 2013-03-13 06:31:32 UTC
Hans-Peter, thanks for the detailed report.

It's correct that the 4.9 version should run without issues since that version does not require the TLS libs.

In 4.10, we need TLS for a new authentication algorithm. Since only OpenSUSE people are reporting this crash, it's clearly an issue on their side. It's a pity that OpenSUSE just ignores this crash reports. Already many people have confirmed this crash.
Comment 15 Hans-Peter Jansen 2013-03-13 21:48:33 UTC
Before pointing fingers, let's try to do our homework, okay?

Today, I've tried to get a handle on it. I've build several versions of LibVNCServer, which seems to be the culprit in combination with the tls library (openssl and/or gnutls):
starting from a 0.9.8 git version 201104301110 (openSUSE 12.2 default), via a 0.9.9 release version (from upcoming openSUSE 12.3) up to 0.9.10 git from today. 
Since 0.9.9, openSUSE builds it with openSSL.
I haven't checked any possible combination (since KDE 4.10.1 was rebuilt on OBS today, I couldn't build kdenetwork4 before its deps were finished, as I always build locally against public repos).

0.9.8 (gnutls 3.0.20): failed:
krdc(24576)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server supports protocol version 3.8 (viewer 3.8)"
krdc(24576)/krdc (VNC backend) VncClientThread::outputHandler: "We have 1 security types to read"
krdc(24576)/krdc (VNC backend) VncClientThread::outputHandler: "0) Received security type 2"
krdc(24576)/krdc (VNC backend) VncClientThread::outputHandler: "Unknown authentication scheme from VNC server: 2"

0.9.8 (openssl 1.0.1e): succeeded, but:
krdc(12666)/krdc (VNC backend) VncClientThread::cuttext: "krdc(24576)/krdc (VNC backend) VncClientThread::outputHandler: "VNC server supports protocol version 3.8 (viewer 3.8)"
krdc(24576)/krdc (VNC backend) VncClientThread::outputHandler: "We have 1 security types to read"
krdc(24576)/krdc (VNC backend) VncClientThread::outputHandler: "0) Received security type 2"
krdc(24576)/krdc (VNC backend) VncClientThread::outputHandler: "Unknown authentication scheme from VNC server: 2"

Could it be, that krdc runs without encryption in this case?
Which reminds me on what I've been missing with krdc: a display of the current security level.

I finally succeeded with 0.9.10 and openssl 1.0.1e. 
Even 0.9.9 with openssl 1.0.1e does fine. Which versions of gnutls are known to work with which version of LibVNCServer?
Comment 16 Urs Wolfer 2013-03-14 07:21:11 UTC
Thanks a lot for your investigations.

AFAIK, VNC only uses encryption for transferring authentication details (and only if is supported by the server).

I do not know which versions of gnutls are supported with LibVncServer, but I'm using gnutls 3.1.9 and openssl 1.0.1.e without problems.

Probably the newly released OpenSUSE has updated versions of all related libs which fixes this issue?
Comment 17 Hans-Peter Jansen 2013-03-14 09:58:27 UTC
> I do not know which versions of gnutls are supported with LibVncServer, but I'm using gnutls 3.1.9 and openssl 1.0.1.e without problems. 

Could you check your LibVncServer package build please for what versions are used: eg.

~> ldd /usr/lib64/libvncclient.so.0
        linux-vdso.so.1 (0x00007fffc2dff000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f83644be000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f83642a8000)
        libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00007f836405b000)
        libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007f8363df1000)
        libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007f8363a1e000)
        libgcrypt.so.11 => /usr/lib64/libgcrypt.so.11 (0x00007f836379e000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f83633f9000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f836492e000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f83631f5000)
        libgpg-error.so.0 => /usr/lib64/libgpg-error.so.0 (0x00007f8362ff0000)

Mine is using openssl only.

it's possible, that either one or the other or both are linked in (and unfortunately, it's not obvious, which one is finally used) :-(

I made a submit request for KDE 4.10, which might be accepted. Then we can close this bug.
And yes, 12.3 carries this exact version.

Thanks.
Comment 18 Urs Wolfer 2013-03-14 10:06:07 UTC
I'm using Arch Linux stock libs.

ldd /usr/lib64/libvncclient.so.0
        linux-vdso.so.1 (0x00007fff285ff000)
        libnsl.so.1 => /usr/lib/libnsl.so.1 (0x00007fd074809000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fd0745ed000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007fd0743d7000)
        libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007fd074185000)
        libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007fd073f6e000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007fd073d02000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007fd0738f7000)
        libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x00007fd07367a000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007fd073475000)
        libgnutls.so.28 => /usr/lib/libgnutls.so.28 (0x00007fd073167000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007fd072dba000)
        /usr/lib64/ld-linux-x86-64.so.2 (0x00007fd074c71000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fd072bb6000)
        librt.so.1 => /usr/lib/librt.so.1 (0x00007fd0729ad000)
        libp11-kit.so.0 => /usr/lib/libp11-kit.so.0 (0x00007fd072799000)
        libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0x00007fd072586000)
        libnettle.so.4 => /usr/lib/libnettle.so.4 (0x00007fd07235a000)
        libhogweed.so.2 => /usr/lib/libhogweed.so.2 (0x00007fd072147000)
        libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007fd071ed1000)
Comment 19 Hans-Peter Jansen 2013-03-14 11:12:40 UTC
and this is using both tls implementations. Which version of LibVNCServer is this exactly (and where can I check, which patches this might include)?
Comment 20 Urs Wolfer 2013-03-14 18:47:06 UTC
I'm using a clean version (without patches) of LibVncServer: 0.9.9.
Comment 21 Urs Wolfer 2013-03-15 14:52:00 UTC
*** Bug 316778 has been marked as a duplicate of this bug. ***
Comment 22 Christophe Marin 2013-03-22 15:25:05 UTC
(In reply to comment #19)
> and this is using both tls implementations. Which version of LibVNCServer is
> this exactly (and where can I check, which patches this might include)?

opensuse 12.2 version with patches: https://build.opensuse.org/package/show?package=LibVNCServer&project=openSUSE%3A12.2 (this one fails afaiu this report)

opensuse 12.3 https://build.opensuse.org/package/show?package=LibVNCServer&project=openSUSE%3A12.3 (from reading the comments, I'm not sure this one was tested)

opensuse factory https://build.opensuse.org/package/show?package=LibVNCServer&project=openSUSE%3AFactory
Comment 23 Jörg Afflerbach 2013-03-23 12:05:51 UTC
Thanks very much, Christophe! I can confirm that the patched openSUSE 12.2 package (x64) works fine for me.
Comment 24 Christophe Marin 2013-03-23 14:39:48 UTC
(In reply to comment #23)
> Thanks very much, Christophe! I can confirm that the patched openSUSE 12.2
> package (x64) works fine for me.

hm ? which patched package ? The patches were already there when this report was created and didn't change since comment #11.
Comment 25 Jörg Afflerbach 2013-03-23 15:52:28 UTC
Hmm, maybe I get you wrong?

The offical update repo provides the package (14.4.1) with TLS support:
http://download.opensuse.org/update/12.2/x86_64/LibVNCServer-0.9.8_git201104301110-14.4.1.x86_64.rpm
whereas the original 12.2 package (14.1.4 – not 14.4.1!) comes without TLS and therefore works. Here is what I do:

$ wget -q 'http://download.opensuse.org/update/12.2/x86_64/LibVNCServer-0.9.8_git201104301110-14.4.1.x86_64.rpm'

$ sudo rpm -U --force LibVNCServer-0.9.8_git201104301110-14.4.1.x86_64.rpm

 $ rpm -q --changelog LibVNCServer | head -n2
* Mo Nov 12 2012 gber@opensuse.org
- enable support for gnutls (bnc#775609)

$  krdc # Try to connect via VNC
QDBusObjectPath: invalid path ""
krdc(1918)/kdeui (kdelibs): Attempt to use QAction "remote_desktop_dockwidget" with KXMLGUIFactory! 
KCrash: Application 'krdc' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/joe/.kde4/socket-leibniz/kdeinit4__0
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
krdc: Fatal IO error: client killed

$ wget -q 'http://download.opensuse.org/distribution/12.2/repo/oss/suse/x86_64/LibVNCServer-0.9.8_git201104301110-14.1.4.x86_64.rpm'

$ sudo rpm -U LibVNCServer-0.9.8_git201104301110-14.1.4.x86_64.rpm
        package LibVNCServer-0.9.8_git201104301110-14.4.1.x86_64 (which is newer than LibVNCServer-0.9.8_git201104301110-14.1.4.x86_64) is already installed

$ sudo rpm -U --force LibVNCServer-0.9.8_git201104301110-14.1.4.x86_64.rpm

$ rpm -q --changelog LibVNCServer | head -n2
* Mi Nov 30 2011 coolo@suse.com
- add automake as buildrequire to avoid implicit dependency

$ krdc # Try again to connect via VNC -- no crash this time
QDBusObjectPath: invalid path ""
krdc(3072)/kdeui (kdelibs): Attempt to use QAction "remote_desktop_dockwidget" with KXMLGUIFactory! 
krdc(3072)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Comment 26 Christophe Marin 2013-03-23 17:20:39 UTC
ok, so plain 12.2 works and the one from 12.2 update repo fails. interesting.
Comment 27 kubik_39 2013-03-23 18:04:57 UTC
(In reply to comment #22)
Thanks a lo Christophe but it dose not work for opensuse 12.3.
Hope you Will fix this issue.
Kubik.
Comment 28 Urs Wolfer 2013-10-20 10:44:59 UTC
I'm closing this issue since the one in OpenSUSE's bugtracker is closed as well (https://bugzilla.novell.com/show_bug.cgi?id=803534).