RDP compositor fails to establish connection (unable to checkDescriptor)
Submitted by Michael Hanselmann (hansmi)
Assigned to Wayland bug list
Description
Created attachment 89742 Debug log
TL;DR: RDP compositor fails with “unable to checkDescriptor for {RDP peer context address}”
Operating system: Debian GNU/Linux 7.2 (wheezy)
Manually compiled components:
FreeRDP commit d2a9df1ce0 (last commit on stable-1.1 branch as of this writing)
xkbcommon 0.3.2
Mesa 9.2.3
Wayland 1.3.0
Weston 1.3.1
I have tried using xfreerdp, rdesktop and Microsoft's Remote Desktop application for Mac OS X as clients. When connecting, Weston logs “unable to checkDescriptor for {RDP peer context address}” and nothing else happens. When I connect a second time, Weston crashes due to a double-free. From looking at the code I think it's an issue in the interaction between the RDP compositor and FreeRDP, but I'm not sure. Below you find the standard output. A debug log is attached.
$ ./weston --backend=rdp-backend.so --port=3391 --rdp-tls-cert=../tls.pem --rdp-tls-key=../tls.pem --width=800 --height=600
Date: 2013-11-25 CET
[13:32:50.064] weston 1.3.1
http://wayland.freedesktop.org/
Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.3.1
Build:
[13:32:50.066] OS: Linux, 3.2.0-4-686-pae, #1 SMP Debian 3.2.51-1, i686
[13:32:50.067] Using config file '/home/[…]/.config/weston.ini'
[13:32:50.068] Loading module '[…]/data/wayland/install/lib/weston/rdp-backend.so'
[13:32:50.083] using FreeRDP version 1.1.0
[13:32:50.085] TLS support activated
Listening on 0.0.0.0 port 3391.
bind: Address already in use
[13:32:50.088] Loading module '[…]/data/wayland/install/lib/weston/desktop-shell.so'
[13:32:50.090] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
[13:32:50.091] libwayland: using socket /tmp/1000-runtime-dir/wayland-0
[13:32:50.117] launching '[…]/data/wayland/install/libexec/weston-desktop-shell'
[13:32:52.023] launching '[…]/data/wayland/install/libexec/weston-keyboard'
Client Security: NLA:0 TLS:1 RDP:0
Server Security: NLA:0 TLS:1 RDP:1
Negotiated Security: NLA:0 TLS:1 RDP:0
SSL_CTX_use_RSAPrivateKey_file failed
PrivateKeyFile: ../tls.pem
[13:32:52.040] unable to checkDescriptor for 0x8bd6b98
Attachment 89742, "Debug log":
log2.txt
Version: 1.3.0