Bug 32816 - xfreerdp 1.0.1 crashes when it becomes a target of 'remote control'
xfreerdp 1.0.1 crashes when it becomes a target of 'remote control'
Status: CLOSED DUPLICATE of bug 34274
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal
: UCC 2.0
Assigned To: Felix Botner
Moritz Muehlenhoff
https://bugs.launchpad.net/ubuntu/+so...
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-08 10:47 CEST by Janis Meybohm
Modified: 2014-06-12 09:20 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2013-10-08 10:47:23 CEST
Ticket#: 2013100821001518

If "remote control" (W2k8 "helpdesk"-feature) is activated, the users xfreerdp 1.0.1 crashes. This problem is fixed with xfreerdp 1.0.2.

xfreerdp 1.0.2 therefore does not connect properly to W2k3 Terminal Servers via the RDP session script. xfreerdp starts, a black screen is visible, then the user is thrown back to the lightdm prompt. Connections to W2k8 work fine though.

A manual connection (direct call via lxde) works to both W2k3 and W2k8.
Comment 1 Moritz Muehlenhoff univentionstaff 2013-10-08 11:17:02 CEST
The helpdesk feature triggering the bug doesn't exist in 2003.
Comment 2 Janis Meybohm univentionstaff 2013-10-18 11:28:30 CEST
Looks like xfreerdp 1.0.2 crashes when connecting to w2k3 with sound enabled (--plugin rdpsnd). If the sound plugin is not loaded, the connection works fine:

ucr set rdp/disable-sound=true
Comment 3 Janis Meybohm univentionstaff 2013-10-23 10:22:15 CEST
(In reply to Moritz Muehlenhoff from comment #1)
> The helpdesk feature triggering the bug doesn't exist in 2003.

My bad! This feature also exists in windows 2003 and the bug can also be triggered with this version.
Comment 4 Janis Meybohm univentionstaff 2013-10-24 10:45:29 CEST
(In reply to Janis Meybohm from comment #0)
> Ticket#: 2013100821001518
> 
> If "remote control" (W2k8 "helpdesk"-feature) is activated, the users
> xfreerdp 1.0.1 crashes. This problem is fixed with xfreerdp 1.0.2.
It is not fixed with "our" version of freerdp-x11-1.0.2!

Tagging errata as both available freerdp Versions in UCC are affected and the problem occures with both, Windows 2003 and Windows 2008 terminal servers.

Tested versions:
freerdp-x11-1.0.1-1ubuntu2.2 
freerdp-x11-1.0.2-1ubuntu1˜ubuntu12.04.1˜ppa1 (kde 4.11 scope)
Comment 5 Michael Grandjean univentionstaff 2013-11-08 11:04:28 CET
(In reply to Janis Meybohm from comment #4)
> Tested versions:
> freerdp-x11-1.0.1-1ubuntu2.2 
> freerdp-x11-1.0.2-1ubuntu1˜ubuntu12.04.1˜ppa1 (kde 4.11 scope)

freerdp-x11-1.0.2-2ubuntu1 from trusty (Ubuntu 14.04) does not work either.

There is a version in our UCC Cool Solution repository (1.1.0~beta1+git20130621) that seems to work fine, though (tested with Windows Server 2008 R2).
Comment 6 Moritz Muehlenhoff univentionstaff 2014-01-07 10:59:47 CET
The crash is related to changes between the color depth of the session user and the remote side. The affected code is in xf_gdi_memblt(), but I couldn't isolate a specific commit fixing the issue, there are too many underlying changes and refactorings in the 1.1 trunk.

Updating to the current 1.1 trunk is not an option, the risk of regressions is too high.

I found a workaround: Passing --no-bmp-cache to the xfreerdp call fixes the crash and has no noticable performance degration.
Comment 7 Moritz Muehlenhoff univentionstaff 2014-01-08 14:09:42 CET
(In reply to Moritz Muehlenhoff from comment #6)
> I found a workaround: Passing --no-bmp-cache to the xfreerdp call fixes the
> crash and has no noticable performance degration.

That workaround fixes my setup, but it can still be reproduced with the affected installation.

This fix is already backported to Precise:
https://github.com/FreeRDP/FreeRDP/commit/4bda6b5
Comment 8 Moritz Muehlenhoff univentionstaff 2014-04-16 11:13:05 CEST
This will be fixed in UCC 2.0 in conjunction with Bug 34274
Comment 9 Felix Botner univentionstaff 2014-04-17 15:00:48 CEST
works with the latest version of the NeutrinoRDP client from 

http://www.xrdp.org/index.php?option=com_content&view=article&id=28:building-neutrinordp-client-on-centos-debian&catid=2:documents&Itemid=7
Comment 10 Felix Botner univentionstaff 2014-05-09 16:29:16 CEST

*** This bug has been marked as a duplicate of bug 34274 ***
Comment 11 Moritz Muehlenhoff univentionstaff 2014-05-12 09:04:26 CEST
Dupe, as fixed with the move towards neutrinordp. I've added a note on Bug 34274 to ensure it's tested.
Comment 12 Moritz Muehlenhoff univentionstaff 2014-06-12 09:20:03 CEST
UCC 2.0 has been released:
 http://docs.univention.de/release-notes-ucc-2.0.html

If this error occurs again, please use "Clone This Bug".