Bug 285207

Summary: krdc segfaults immediatly after establishing a connection
Product: [Applications] krdc Reporter: rob <ryampolsky>
Component: RDPAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED NOT A BUG    
Severity: crash CC: cfeck
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description rob 2011-10-28 20:27:27 UTC
Version:           unspecified (using KDE 4.6.5) 
OS:                Linux

krdc used to work fine on my PCLinuxOS system, but several kde versions ago, it stopped.  I'm able to open an RDP connection to my work WinXP system, but as soon as I log on to Windows, krdc segfaults, and the remote connection is gone.  Here's the segfault as logged in /var/log/messages:

Oct 28 16:16:01 localhost klogd: rdesktop[12063]: segfault at 90b ip b724c456 sp bfdb3aa4 error 4 in libc-2.13.so[b71d2000+161000]

For what it's worth, remmina can connect to the same XP box.  I just like krdc better ;)


Reproducible: Always

Steps to Reproduce:
Open krdc.  Select remote connection to open.  Provide userid and password when prompted, and it appears to try to paint the desktop window, but then the window goes blank and I'm back at the krdc main window. Sometimes I get the XP login dialog, sometimes I think krdc prompts me for the info.  But that may just have been after I attempted to start over by renaming my .kde4/share/krdc directory.

Actual Results:  
segfault

Expected Results:  
rdp session
Comment 1 Christoph Feck 2011-11-01 16:34:18 UTC
Does the Dr. Konqi crash dialog window show up when this happens?
Comment 2 rob 2011-11-01 16:38:14 UTC
No Konqi dialog.  Just the /var/log/messages entry.  Should there be a core dump somewhere I can attach?
Comment 3 Christoph Feck 2011-11-01 19:58:22 UTC
Oh, now I see, it is actually "rdesktop" that crashed, not krdc. Please report this bug to rdesktop developers via http://www.rdesktop.org/
Comment 4 rob 2011-11-01 23:54:51 UTC
Do you know if remmina uses rdesktop as well?

Also, does krdc require a specific version of rdesktop to work right?
Comment 5 rob 2011-11-02 12:43:35 UTC
F.Y.I.  I just tried rdesktop from the command line signing on to the same XP machine.  It worked.  I used no command line options (and got a too small, non-resizeable window), but no crash.

Any idea what options krdc passes to rdesktop?
Comment 6 rob 2011-11-06 15:07:57 UTC
OK, I got it to work by disabling the 'local sound' option.  I selected 'disable sound', and can connect without crashing now.  But several KDE4 versions ago I didn't have to do this.  So, could this be the result of changes to the KDE multimedia layer?  I'm running PCLinuxOS, starting with the 2010 release and accepting all KDE updates since.  Again, it krdc worked fine at the base level for this release, and I don't remember which KDE (or rdesktop) update broke it.
Comment 7 Christoph Feck 2011-11-07 23:09:38 UTC
Can you check if updating/changing Phonon and Phonon backend makes any difference?
Comment 8 rob 2011-11-11 22:11:33 UTC
Not sure if, how, and how safe swapping Phonon back-ends is.  I'm on PCLinuxOS 2010 with all the updates.  That has me at kde 4.6.5 for most things, but my phonon versions are:

phonon-xine-4.4.4-1pclos2011
libphonon4-4.5.0-2pclos2011
libphononexperimental4-4.5.0-2pclos2011

and xine is:
libxine1-1.1.19-4pclos2010

Should these phonon components have been updated along with all the other kde4 stuff?
Comment 9 Urs Wolfer 2012-12-23 18:25:45 UTC
KRDC uses freerdp instead of rdesktop starting from KDE SC 4.11.

If you still can reproduce this issue in 4.11, please report it again.

Thanks for your support in this issue anyways.