Bug 343376

Summary: KRDC crashes when connecting to Mac server
Product: [Applications] krdc Reporter: Louis Zuckerman <me>
Component: VNCAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED UPSTREAM    
Severity: grave CC: tails
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Crash report

Description Louis Zuckerman 2015-01-27 17:01:49 UTC
Every time I try to connect to my Mac (Yosemite 10.10.1) using VNC the application crashes.  I get asked for username and password then KRDC dies.  Same thing happens if I enter the valid credentials, invalid credentials, or cancel without providing any credentials.

Using KRDC 4.14.1.

Reproducible: Always

Steps to Reproduce:
Connect to mac VNC server
Enter any password or cancel without a password


Actual Results:  
KRDC crashes

Expected Results:  
KRDC should have showed the Mac desktop.

I've been using KRDC with Ubuntu Precise (12.04) for years without any problems.  Yesterday I switched to Ubuntu Utopic (14.10) and now KRDC crashes every time I try to connect to my Mac.
Comment 1 Louis Zuckerman 2015-01-27 17:03:05 UTC
Created attachment 90706 [details]
Crash report

Here is the stacktrace & crash report generated by KDE. The automatic bug submission did not work.
Comment 2 Louis Zuckerman 2015-01-27 17:05:03 UTC
I found the same bug reported in Debian, here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758635
Comment 3 Louis Zuckerman 2015-01-27 17:26:59 UTC
The bug is in libvncserver, here https://github.com/LibVNC/libvncserver/issues/45
The fix is here https://github.com/maxnet/libvncserver/commit/4674d4632b9ffc6779d9c9f79b8ebb53c12e29b2

I applied this patch to the libvncserver source package in Ubuntu Utopic, rebuild and installed the package, and now KRDC works!