You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Sebastian Luna Valero <se...@gmail.com> on 2019/07/03 08:16:01 UTC

LDAP users automatically disconnected in RDP sessions

Hi,

I am using guacamole 1.0.0 on Ubuntu 18.04. When I connect an LDAP user
with RDP, the session gets automatically disconnected after a few seconds.

AFAIK, this setup was working correctly until the apt-get upgrade below
[5]. I have also added the relevant output of other important log files on
this system.

In the syslog output [4] I find this line:
guacd[2097]: WaitForSingleObject: unknown handle type 9737140978076182297

Not sure what it means, but does it explain the issue?

Many thanks in advance for your help!

Best regards,
Sebastian

[1] xrdp log:

[INFO ] Socket 12: AF_INET6 connection received from ::ffff:10.2.0.208 port
50338
[DEBUG] Closed socket 12 (AF_INET6 ::ffff:10.2.0.208 port 3389)
[DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[DEBUG] TLSv1.2 enabled
[DEBUG] TLSv1.1 enabled
[DEBUG] TLSv1 enabled
[DEBUG] Security layer: requested 0, selected 0
[INFO ] connected client computer name: Guacamole RDP
[INFO ] Non-TLS connection established from ::ffff:10.2.0.208 port 50338:
encrypted with standard RDP security
[DEBUG] xrdp_000056eb_wm_login_mode_event_00000001
[INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[WARN ] local keymap file for 0x00000409 found and doesn't match built in
keymap, using local keymap file
[DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[INFO ] xrdp_wm_log_msg: sesman connect ok
[DEBUG] xrdp_wm_log_msg: sending login info to session manager, please
wait...
[DEBUG] return value from xrdp_mm_connect 0
[INFO ] xrdp_wm_log_msg: login successful for display 10
[DEBUG] xrdp_wm_log_msg: started connecting
[INFO ] lib_mod_log_peer: xrdp_pid=22251 connected to X11rdp_pid=31588
X11rdp_uid=73822 X11rdp_gid=6000 client_ip=::ffff:10.2.0.208
client_port=50338
[DEBUG] xrdp_wm_log_msg: connected ok
[DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[DEBUG] Closed socket 16 (AF_INET6 ::1 port 39626)
[INFO ] The following channel is allowed: cliprdr (0)
[DEBUG] The allow channel list now initialized for this session
[DEBUG] Closed socket 12 (AF_INET6 ::ffff:10.2.0.208 port 3389)
[DEBUG] xrdp_mm_module_cleanup
[DEBUG] Closed socket 17 (AF_UNIX)
[DEBUG] Closed socket 18 (AF_UNIX)

[2] xrdp-sesman log:

[INFO ] A connection received from ::1 port 39626
[INFO ] ++ reconnected session: username sluna, display :10.0, session_pid
31586, ip ::ffff:10.2.0.208:50338 - socket: 12
[DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)

[3] Tomcat log:

[http-nio-8080-exec-6] INFO  o.a.g.r.auth.AuthenticationService - User
"sluna" successfully authenticated from [10.2.0.208, 10.2.0.208].
[http-nio-8080-exec-3] INFO  o.a.g.r.auth.AuthenticationService - User
"sluna" successfully authenticated from [10.2.0.212, 10.2.0.208].
[http-nio-8080-exec-1] INFO  o.a.g.environment.LocalEnvironment -
GUACAMOLE_HOME is "/etc/guacamole".
[http-nio-8080-exec-1] INFO  o.a.g.tunnel.TunnelRequestService - User
"sluna" connected to connection "RDP amiga-ui".
[Thread-160] INFO  o.a.g.tunnel.TunnelRequestService - User "sluna"
disconnected from connection "RDP amiga-ui". Duration: 7720 milliseconds

[4] Syslog:

guacd[2097]: WaitForSingleObject: unknown handle type 9737140978076182297
kernel: [77606.505720] traps: guacd[22247] general protection
ip:7f49951b8207 sp:7f4983ffd360 error:0 in libc-2.27.so[7f4995121000+1e7000]
guacd[2097]: message repeated 6 times: [ WaitForSingleObject: unknown
handle type 9737140978076182297]
guacd[2097]: Connection "$ba6e1200-0f97-4f03-9cc6-08c32f5b407f" removed.
guacd[2097]: guacd[2097]: INFO:#011Connection
"$ba6e1200-0f97-4f03-9cc6-08c32f5b407f" removed.
xrdp[22251]: (22251)(140100677732160)[DEBUG] Closed socket 12 (AF_INET6
::ffff:10.2.0.208 port 3389)
xrdp[22251]: (22251)(140100677732160)[DEBUG] xrdp_mm_module_cleanup
xrdp[22251]: (22251)(140100677732160)[DEBUG] Closed socket 17 (AF_UNIX)
xrdp[22251]: (22251)(140100677732160)[DEBUG] Closed socket 18 (AF_UNIX)

[5] Apt log:

Start-Date: 2019-07-01  10:47:32
Commandline: apt-get upgrade
Upgrade: libpython3.6-minimal:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04.1),
gstreamer1.0-alsa:amd64 (1.14.1-1ubuntu1~ubuntu18.04.2,
1.14.4-1ubuntu1.1~ubuntu18.04.1), libcups2:amd64 (2.2.7-1ubuntu2.5,
2.2.7-1ubuntu2.6), gedit:amd64 (3.28.1-1ubuntu1.1, 3.28.1-1ubuntu1.2),
python3-distutils:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04), gvfs-backends:amd64
(1.36.1-0ubuntu1.3, 1.36.1-0ubuntu1.3.2), libnet-ssleay-perl:amd64
(1.84-1build1, 1.84-1ubuntu0.1), xserver-common:amd64 (2:1.19.6-1ubuntu4.2,
2:1.19.6-1ubuntu4.3), gstreamer1.0-plugins-base-apps:amd64
(1.14.1-1ubuntu1~ubuntu18.04.2, 1.14.4-1ubuntu1.1~ubuntu18.04.1),
gvfs-bin:amd64 (1.36.1-0ubuntu1.3, 1.36.1-0ubuntu1.3.2), openssl:amd64
(1.1.0g-2ubuntu4.3, 1.1.1-1ubuntu2.1~18.04.3), ruby2.5:amd64
(2.5.1-1ubuntu1.2, 2.5.1-1ubuntu1.4), xserver-xorg-core:amd64
(2:1.19.6-1ubuntu4.2, 2:1.19.6-1ubuntu4.3), zabbix-agent:amd64
(1:4.0.9-3+bionic, 1:4.0.10-1+bionic), libsystemd0:amd64 (237-3ubuntu10.21,
237-3ubuntu10.23), gstreamer1.0-tools:amd64 (1.14.1-1~ubuntu18.04.2,
1.14.4-1~ubuntu18.04.1), openvpn:amd64 (2.4.4-2ubuntu1.2,
2.4.4-2ubuntu1.3), gstreamer1.0-plugins-good:amd64
(1.14.1-1ubuntu1~ubuntu18.04.1, 1.14.4-1ubuntu1~ubuntu18.04.1),
libtomcat8-java:amd64 (8.5.39-1ubuntu1~18.04.1, 8.5.39-1ubuntu1~18.04.2),
python2.7-minimal:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04),
snapd:amd64 (2.38+18.04, 2.39.2+18.04), libpython3.6-stdlib:amd64
(3.6.7-1~18.04, 3.6.8-1~18.04.1), libpython2.7:amd64
(2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), python2.7:amd64
(2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04), libpython3.6:amd64
(3.6.7-1~18.04, 3.6.8-1~18.04.1), python3.6:amd64 (3.6.7-1~18.04,
3.6.8-1~18.04.1), open-vm-tools:amd64 (2:10.3.5-7~ubuntu0.18.04.1,
2:10.3.10-1~ubuntu0.18.04.1), xserver-xorg-legacy:amd64
(2:1.19.6-1ubuntu4.2, 2:1.19.6-1ubuntu4.3), udev:amd64 (237-3ubuntu10.21,
237-3ubuntu10.23), gstreamer1.0-plugins-base:amd64
(1.14.1-1ubuntu1~ubuntu18.04.2, 1.14.4-1ubuntu1.1~ubuntu18.04.1),
cups-server-common:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6),
libwww-perl:amd64 (6.31-1, 6.31-1ubuntu0.1), cups-common:amd64
(2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), tomcat8-admin:amd64
(8.5.39-1ubuntu1~18.04.1, 8.5.39-1ubuntu1~18.04.2), libpq5:amd64
(11.3-1.pgdg18.04+1, 11.4-1.pgdg18.04+1),
libgstreamer-plugins-good1.0-0:amd64 (1.14.1-1ubuntu1~ubuntu18.04.1,
1.14.4-1ubuntu1~ubuntu18.04.1), libudev1:amd64 (237-3ubuntu10.21,
237-3ubuntu10.23), libio-socket-ssl-perl:amd64 (2.056-1,
2.060-3~ubuntu18.04.1), gstreamer1.0-pulseaudio:amd64
(1.14.1-1ubuntu1~ubuntu18.04.1, 1.14.4-1ubuntu1~ubuntu18.04.1),
python3.6-minimal:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04.1),
xserver-xephyr:amd64 (2:1.19.6-1ubuntu4.2, 2:1.19.6-1ubuntu4.3),
gstreamer1.0-gtk3:amd64 (1.14.1-1ubuntu1~ubuntu18.04.1,
1.14.4-1ubuntu1~ubuntu18.04.1), gvfs-libs:amd64 (1.36.1-0ubuntu1.3,
1.36.1-0ubuntu1.3.2), gvfs-fuse:amd64 (1.36.1-0ubuntu1.3,
1.36.1-0ubuntu1.3.2), postgresql-11:amd64 (11.3-1.pgdg18.04+1,
11.4-1.pgdg18.04+1), python3-cryptography:amd64 (2.1.4-1ubuntu1.2,
2.1.4-1ubuntu1.3), cups-ppdc:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6),
libcupsmime1:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), libruby2.5:amd64
(2.5.1-1ubuntu1.2, 2.5.1-1ubuntu1.4), tomcat8-common:amd64
(8.5.39-1ubuntu1~18.04.1, 8.5.39-1ubuntu1~18.04.2), libnss-myhostname:amd64
(237-3ubuntu10.21, 237-3ubuntu10.23), tomcat8:amd64
(8.5.39-1ubuntu1~18.04.1, 8.5.39-1ubuntu1~18.04.2),
libgstreamer-gl1.0-0:amd64 (1.14.1-1ubuntu1~ubuntu18.04.2,
1.14.4-1ubuntu1.1~ubuntu18.04.1), systemd-sysv:amd64 (237-3ubuntu10.21,
237-3ubuntu10.23), libpam-systemd:amd64 (237-3ubuntu10.21,
237-3ubuntu10.23), libgstreamer-plugins-base1.0-0:amd64
(1.14.1-1ubuntu1~ubuntu18.04.2, 1.14.4-1ubuntu1.1~ubuntu18.04.1),
xwayland:amd64 (2:1.19.6-1ubuntu4.2, 2:1.19.6-1ubuntu4.3),
python3-lib2to3:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04), gedit-common:amd64
(3.28.1-1ubuntu1.1, 3.28.1-1ubuntu1.2), gstreamer1.0-x:amd64
(1.14.1-1ubuntu1~ubuntu18.04.2, 1.14.4-1ubuntu1.1~ubuntu18.04.1),
systemd:amd64 (237-3ubuntu10.21, 237-3ubuntu10.23),
gir1.2-gst-plugins-base-1.0:amd64 (1.14.1-1ubuntu1~ubuntu18.04.2,
1.14.4-1ubuntu1.1~ubuntu18.04.1), libssl-dev:amd64 (1.1.0g-2ubuntu4.3,
1.1.1-1ubuntu2.1~18.04.3), libssl-doc:amd64 (1.1.0g-2ubuntu4.3,
1.1.1-1ubuntu2.1~18.04.3), libnss-systemd:amd64 (237-3ubuntu10.21,
237-3ubuntu10.23), tomcat8-docs:amd64 (8.5.39-1ubuntu1~18.04.1,
8.5.39-1ubuntu1~18.04.2), gvfs:amd64 (1.36.1-0ubuntu1.3,
1.36.1-0ubuntu1.3.2), libcupsppdc1:amd64 (2.2.7-1ubuntu2.5,
2.2.7-1ubuntu2.6), libpython2.7-minimal:amd64 (2.7.15~rc1-1ubuntu0.1,
2.7.15-4ubuntu4~18.04), gvfs-common:amd64 (1.36.1-0ubuntu1.3,
1.36.1-0ubuntu1.3.2), gir1.2-gstreamer-1.0:amd64 (1.14.1-1~ubuntu18.04.2,
1.14.4-1~ubuntu18.04.1), cups-bsd:amd64 (2.2.7-1ubuntu2.5,
2.2.7-1ubuntu2.6), cups-core-drivers:amd64 (2.2.7-1ubuntu2.5,
2.2.7-1ubuntu2.6), cups-daemon:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6),
libssl1.1:amd64 (1.1.0g-2ubuntu4.3, 1.1.1-1ubuntu2.1~18.04.3),
libcupsimage2:amd64 (2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6),
libpython2.7-stdlib:amd64 (2.7.15~rc1-1ubuntu0.1, 2.7.15-4ubuntu4~18.04),
python3-gdbm:amd64 (3.6.7-1~18.04, 3.6.8-1~18.04), cups:amd64
(2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), postgresql-client-11:amd64
(11.3-1.pgdg18.04+1, 11.4-1.pgdg18.04+1), libcupscgi1:amd64
(2.2.7-1ubuntu2.5, 2.2.7-1ubuntu2.6), cups-client:amd64 (2.2.7-1ubuntu2.5,
2.2.7-1ubuntu2.6), cups-ipp-utils:amd64 (2.2.7-1ubuntu2.5,
2.2.7-1ubuntu2.6), tomcat8-user:amd64 (8.5.39-1ubuntu1~18.04.1,
8.5.39-1ubuntu1~18.04.2), libgstreamer1.0-0:amd64 (1.14.1-1~ubuntu18.04.2,
1.14.4-1~ubuntu18.04.1), gvfs-daemons:amd64 (1.36.1-0ubuntu1.3,
1.36.1-0ubuntu1.3.2), gstreamer1.0-gl:amd64 (1.14.1-1ubuntu1~ubuntu18.04.2,
1.14.4-1ubuntu1.1~ubuntu18.04.1)
End-Date: 2019-07-01  10:49:29

Re: LDAP users automatically disconnected in RDP sessions

Posted by Sebastian Luna Valero <se...@gmail.com>.
Many thanks, Mike.

Please find below the new output.

Best regards,
Sebastian

# export LD_PRELOAD=/usr/local/lib/libguac-client-rdp.so
# gdb --args guacd -L debug -f
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from guacd...done.
(gdb) set follow-fork-mode child
(gdb) run
Starting program: /usr/local/sbin/guacd -L debug -f
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
guacd[30988]: INFO: Guacamole proxy daemon (guacd) version 1.0.0 started
guacd[30988]: DEBUG: Unable to bind socket to host ::1, port 4822: Address
family not supported by protocol
guacd[30988]: DEBUG: Successfully bound socket to host 127.0.0.1, port 4822
guacd[30988]: INFO: Listening on host 127.0.0.1, port 4822
[New Thread 0x7fffef0ff700 (LWP 31208)]
guacd[30988]: INFO: Creating new client for protocol "rdp"
[New process 31211]
guacd[30988]: INFO: Connection ID is "$c50b041e-8490-42f5-b13f-8712be244b24"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffee8fe700 (LWP 31214)]
guacd[31211]: DEBUG: Parameter "console" omitted. Using default value of 0.
guacd[31211]: DEBUG: Parameter "console-audio" omitted. Using default value
of 0.
guacd[31211]: DEBUG: Parameter "ignore-cert" omitted. Using default value
of 0.
guacd[31211]: DEBUG: Parameter "disable-auth" omitted. Using default value
of 0.
guacd[31211]: INFO: No security mode specified. Defaulting to RDP.
guacd[31211]: DEBUG: Parameter "port" omitted. Using default value of 3389.
guacd[31211]: DEBUG: User resolution is 1920x944 at 96 DPI
guacd[31211]: DEBUG: Parameter "dpi" omitted. Using default value of 96.
guacd[31211]: DEBUG: Using resolution of 1920x944 at 96 DPI
guacd[31211]: DEBUG: Parameter "read-only" omitted. Using default value of
0.
guacd[31211]: DEBUG: Parameter "client-name" omitted. Using default value
of "Guacamole RDP".
guacd[31211]: DEBUG: Parameter "enable-wallpaper" omitted. Using default
value of 0.
guacd[31211]: DEBUG: Parameter "enable-theming" omitted. Using default
value of 0.
guacd[31211]: DEBUG: Parameter "enable-font-smoothing" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "enable-full-window-drag" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "enable-desktop-composition" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "enable-menu-animations" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "disable-bitmap-caching" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "disable-offscreen-caching" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "disable-glyph-caching" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "color-depth" omitted. Using default value
of 16.
guacd[31211]: DEBUG: Parameter "disable-audio" omitted. Using default value
of 0.
guacd[31211]: DEBUG: Parameter "enable-printing" omitted. Using default
value of 0.
guacd[31211]: DEBUG: Parameter "printer-name" omitted. Using default value
of "Guacamole Printer".
guacd[31211]: DEBUG: Parameter "enable-drive" omitted. Using default value
of 0.
guacd[31211]: DEBUG: Parameter "drive-name" omitted. Using default value of
"Guacamole Filesystem".
guacd[31211]: DEBUG: Parameter "drive-path" omitted. Using default value of
"".
guacd[31211]: DEBUG: Parameter "create-drive-path" omitted. Using default
value of 0.
guacd[31211]: DEBUG: Parameter "enable-sftp" omitted. Using default value
of 0.
guacd[31211]: DEBUG: Parameter "sftp-hostname" omitted. Using default value
of "10.2.0.208".
guacd[31211]: DEBUG: Parameter "sftp-port" omitted. Using default value of
"22".
guacd[31211]: DEBUG: Parameter "sftp-username" omitted. Using default value
of "".
guacd[31211]: DEBUG: Parameter "sftp-password" omitted. Using default value
of "".
guacd[31211]: DEBUG: Parameter "sftp-passphrase" omitted. Using default
value of "".
guacd[31211]: DEBUG: Parameter "sftp-root-directory" omitted. Using default
value of "/".
guacd[31211]: DEBUG: Parameter "sftp-server-alive-interval" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "recording-name" omitted. Using default
value of "recording".
guacd[31211]: DEBUG: Parameter "recording-exclude-output" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "recording-exclude-mouse" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "recording-include-keys" omitted. Using
default value of 0.
guacd[31211]: DEBUG: Parameter "create-recording-path" omitted. Using
default value of 0.
guacd[31211]: INFO: Resize method: none
guacd[31211]: DEBUG: Parameter "enable-audio-input" omitted. Using default
value of 0.
guacd[31211]: DEBUG: Parameter "gateway-port" omitted. Using default value
of 443.
[New Thread 0x7fffee0fd700 (LWP 31217)]
guacd[31211]: INFO: User "@d83baca8-7cad-4b9c-a56d-0f98f33da4f4" joined
connection "$c50b041e-8490-42f5-b13f-8712be244b24" (1 users now present)
[New Thread 0x7fffed8fc700 (LWP 31218)]
guacd[31211]: INFO: Loading keymap "base"
guacd[31211]: INFO: Loading keymap "en-us-qwerty"
LoadLibraryA: /usr/lib/x86_64-linux-gnu/freerdp/guacdr-client.so: cannot
open shared object file: No such file or directory
guacd[31211]: WARNING: Failed to load guacdr plugin. Drive redirection and
printing will not work. Sound MAY not work.
LoadLibraryA: /usr/lib/x86_64-linux-gnu/freerdp/guacsnd-client.so: cannot
open shared object file: No such file or directory
guacd[31211]: WARNING: Failed to load guacsnd alongside guacdr plugin.
Sound will not work. Drive redirection and printing MAY not work.
connected to 10.2.0.208:3389
[New Thread 0x7fffec80f700 (LWP 31222)]
[New Thread 0x7fffdfdfa700 (LWP 31269)]
[Thread 0x7fffdfdfa700 (LWP 31269) exited]
[New Thread 0x7fffdfdfa700 (LWP 31270)]
[Thread 0x7fffdfdfa700 (LWP 31270) exited]

Thread 2.3 "guacd" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffee0fd700 (LWP 31217)]
tcache_get (tc_idx=7) at malloc.c:2943
2943 malloc.c: No such file or directory.
(gdb) bt
#0  tcache_get (tc_idx=7) at malloc.c:2943
#1  __GI___libc_malloc (bytes=129) at malloc.c:3050
#2  0x00007ffff5583dde in png_malloc () from
/usr/lib/x86_64-linux-gnu/libpng16.so.16
#3  0x00007ffff5583e09 in png_calloc () from
/usr/lib/x86_64-linux-gnu/libpng16.so.16
#4  0x00007ffff559e41a in ?? () from
/usr/lib/x86_64-linux-gnu/libpng16.so.16
#5  0x00007ffff559984c in png_write_row () from
/usr/lib/x86_64-linux-gnu/libpng16.so.16
#6  0x00007ffff5599ceb in png_write_image () from
/usr/lib/x86_64-linux-gnu/libpng16.so.16
#7  0x00007ffff619544a in ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
#8  0x00007ffff6195df9 in cairo_surface_write_to_png_stream () from
/usr/lib/x86_64-linux-gnu/libcairo.so.2
#9  0x00007ffff798eae4 in guac_png_cairo_write (socket=<optimized out>,
stream=<optimized out>, surface=<optimized out>) at encode-png.c:194
#10 0x00007ffff798ee1a in guac_png_write (socket=socket@entry=0x7fffe800c040,
stream=stream@entry=0x7fffe800b658, surface=surface@entry=0x7fffe0068270)
at encode-png.c:299
#11 0x00007ffff798e50a in guac_client_stream_png (client=0x7fffe800b350,
socket=0x7fffe800c040, mode=mode@entry=GUAC_COMP_SRC, layer=0x7fffe000b890,
x=x@entry=0, y=y@entry=0, surface=0x7fffe0068270)
    at client.c:524
#12 0x00007ffff7bb92ca in guac_common_cursor_set_argb
(cursor=0x7fffe000b830, hx=4, hy=4, data=<optimized out>, width=32,
height=32, stride=128) at cursor.c:235
#13 0x00007ffff7bb936e in guac_common_cursor_set_surface (cursor=<optimized
out>, hx=<optimized out>, hy=<optimized out>, surface=<optimized out>) at
cursor.c:251
#14 0x00007ffff6ebc5dd in ?? () from
/usr/lib/x86_64-linux-gnu/libfreerdp-core.so.1.1
#15 0x00007ffff6ebcabd in fastpath_recv_updates () from
/usr/lib/x86_64-linux-gnu/libfreerdp-core.so.1.1
#16 0x00007ffff6ebb78d in ?? () from
/usr/lib/x86_64-linux-gnu/libfreerdp-core.so.1.1
#17 0x00007ffff6ebec1f in transport_check_fds () from
/usr/lib/x86_64-linux-gnu/libfreerdp-core.so.1.1
#18 0x00007ffff6eaf3c7 in freerdp_check_fds () from
/usr/lib/x86_64-linux-gnu/libfreerdp-core.so.1.1
#19 0x00007ffff7bb35ee in guac_rdp_handle_connection
(client=0x7fffe800b350) at rdp.c:766
#20 guac_rdp_client_thread (data=0x7fffe800b350) at rdp.c:1011
#21 0x00007ffff776f6db in start_thread (arg=0x7fffee0fd700) at
pthread_create.c:463
#22 0x00007ffff720b88f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) quit
A debugging session is active.

Inferior 2 [process 31211] will be killed.

Quit anyway? (y or n) y
guacd[30988]: INFO: Connection "$c50b041e-8490-42f5-b13f-8712be244b24"
removed.

Re: LDAP users automatically disconnected in RDP sessions

Posted by Sebastian Luna Valero <se...@gmail.com>.
Hi Mike,

I have applied the latest updates to the box where Guacamole is running,
rebooted and recompiled "guacd" from source, and it seems to be back up and
running again without issues.

I just wanted to let you know asap. Is there any other info that I can
provide that is useful for you guys?

Best regards,
Sebastian

Re: LDAP users automatically disconnected in RDP sessions

Posted by Mike Jumper <mj...@apache.org>.
On Wed, Jul 3, 2019 at 3:04 AM Sebastian Luna Valero <
sebastian.luna.valero@gmail.com> wrote:

> ...
> [2] output from gdb
>
> # gdb --args guacd -L debug -f
> GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
> Copyright (C) 2018 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from guacd...done.
> (gdb) run
>

Within gdb, *before* running guacd, you will need tell gdb to follow the
child of fork() calls:

    (gdb) set follow-fork-mode child

Without the above, you are actually only debugging the parent guacd
process, not the child process that is forked to handle the RDP connection.
If specifically debugging RDP, you may also want to set the LD_PRELOAD
environment variable to /full/path/to/libguac-client-rdp.so prior to
running gdb, to ensure the debug symbols for that library are available.

Thread 4 "guacd" received signal SIGPIPE, Broken pipe.
> [Switching to Thread 0x7ffff2ae8700 (LWP 2250)]
> 0x00007ffff79b32b7 in __libc_write (fd=fd@entry=7, buf=buf@entry=0x7ffff2ae5d40,
> nbytes=nbytes@entry=22) at ../sysdeps/unix/sysv/linux/write.c:27
> 27 ../sysdeps/unix/sysv/linux/write.c: No such file or directory.
> (gdb) bt
> #0  0x00007ffff79b32b7 in __libc_write (fd=fd@entry=7, buf=buf@entry=0x7ffff2ae5d40,
> nbytes=nbytes@entry=22) at ../sysdeps/unix/sysv/linux/write.c:27
> #1  0x00005555555578be in __write_all (length=22,
>     buffer=0x7ffff2ae5d40
> "5.mouse,2.91,2.27,1.0;;c,8.86966598;4.sync,8.86966599;4.sync,8.86966600;4.sync,8.86966601;4.sync,8.86966602;5.mouse,3.115,2.41,1.0;5.mouse,3.113,2.39,1.0;nc,8.86966341;4.sync,8.86966342;4.sync,8.86966"...,
> fd=7) at connection.c:72
> #2  guacd_connection_write_thread (data=0x7fffec00b410) at connection.c:122
> #3  0x00007ffff79a96db in start_thread (arg=0x7ffff2ae8700) at
> pthread_create.c:463
> #4  0x00007ffff744588f in clone () at
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
>

This is just the signal received by a process when a write is made to a
closed pipe/socket. Closure of the pipe/socket will be handled
automatically by guacd. This is not related to your issue, nor is it
abnormal behavior.

- Mike

Re: LDAP users automatically disconnected in RDP sessions

Posted by Sebastian Luna Valero <se...@gmail.com>.
Hi Nick,

Many thanks for your prompt answer.

Please find below the requested output.

Best regards,
Sebastian

[1] output from syslog running guacd in debug mode:

Jul  3 11:27:14 amiga-ui systemd[1]: Stopping Guacamole Server...
Jul  3 11:27:14 amiga-ui systemd[1]: Stopped Guacamole Server.
Jul  3 11:27:58 amiga-ui guacd[25244]: Guacamole proxy daemon (guacd)
version 1.0.0 started
Jul  3 11:27:58 amiga-ui guacd[25244]: Unable to bind socket to host ::1,
port 4822: Address family not supported by protocol
Jul  3 11:27:58 amiga-ui guacd[25244]: Successfully bound socket to host
127.0.0.1, port 4822
Jul  3 11:27:58 amiga-ui guacd[25244]: Exiting and passing control to PID
25245
Jul  3 11:27:58 amiga-ui guacd[25245]: Exiting and passing control to PID
25246
Jul  3 11:27:58 amiga-ui guacd[25246]: Listening on host 127.0.0.1, port
4822
Jul  3 11:29:10 amiga-ui guacd[25246]: Creating new client for protocol
"rdp"
Jul  3 11:29:10 amiga-ui guacd[25246]: Connection ID is
"$829b6483-6b42-4ea9-ab5b-9cdd3478192f"
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "console" omitted. Using
default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "console-audio" omitted.
Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "ignore-cert" omitted.
Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "disable-auth" omitted.
Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: No security mode specified.
Defaulting to RDP.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "port" omitted. Using
default value of 3389.
Jul  3 11:29:10 amiga-ui guacd[25582]: User resolution is 1920x944 at 96 DPI
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "dpi" omitted. Using
default value of 96.
Jul  3 11:29:10 amiga-ui guacd[25582]: Using resolution of 1920x944 at 96
DPI
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "read-only" omitted. Using
default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "client-name" omitted.
Using default value of "Guacamole RDP".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-wallpaper"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-theming" omitted.
Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-font-smoothing"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-full-window-drag"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter
"enable-desktop-composition" omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-menu-animations"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "disable-bitmap-caching"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter
"disable-offscreen-caching" omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "disable-glyph-caching"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "color-depth" omitted.
Using default value of 16.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "disable-audio" omitted.
Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-printing" omitted.
Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "printer-name" omitted.
Using default value of "Guacamole Printer".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-drive" omitted.
Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "drive-name" omitted.
Using default value of "Guacamole Filesystem".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "drive-path" omitted.
Using default value of "".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "create-drive-path"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-sftp" omitted.
Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "sftp-hostname" omitted.
Using default value of "10.2.0.208".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "sftp-port" omitted. Using
default value of "22".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "sftp-username" omitted.
Using default value of "".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "sftp-password" omitted.
Using default value of "".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "sftp-passphrase" omitted.
Using default value of "".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "sftp-root-directory"
omitted. Using default value of "/".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter
"sftp-server-alive-interval" omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "recording-name" omitted.
Using default value of "recording".
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "recording-exclude-output"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "recording-exclude-mouse"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "recording-include-keys"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "create-recording-path"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Resize method: none
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "enable-audio-input"
omitted. Using default value of 0.
Jul  3 11:29:10 amiga-ui guacd[25582]: Parameter "gateway-port" omitted.
Using default value of 443.
Jul  3 11:29:10 amiga-ui guacd[25582]: User
"@2919c5f9-223a-40cd-acc1-4b99c19ef9f6" joined connection
"$829b6483-6b42-4ea9-ab5b-9cdd3478192f" (1 users now present)
Jul  3 11:29:10 amiga-ui guacd[25582]: Loading keymap "base"
Jul  3 11:29:10 amiga-ui guacd[25582]: Loading keymap "en-us-qwerty"
Jul  3 11:29:10 amiga-ui guacd[25582]: Failed to load guacdr plugin. Drive
redirection and printing will not work. Sound MAY not work.
Jul  3 11:29:10 amiga-ui guacd[25582]: Failed to load guacsnd alongside
guacdr plugin. Sound will not work. Drive redirection and printing MAY not
work.
Jul  3 11:29:10 amiga-ui xrdp[2534]: (2534)(140100677732160)[INFO ] Socket
12: AF_INET6 connection received from ::ffff:10.2.0.208 port 54580
Jul  3 11:29:10 amiga-ui xrdp[2534]: (2534)(140100677732160)[DEBUG] Closed
socket 12 (AF_INET6 ::ffff:10.2.0.208 port 3389)
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
Closed socket 11 (AF_INET6 :: port 3389)
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ] Using
default X.509 certificate: /etc/xrdp/cert.pem
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ] Using
default X.509 key file: /etc/xrdp/key.pem
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[ERROR]
Cannot read private key file /etc/xrdp/key.pem: Permission denied
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
TLSv1.2 enabled
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
TLSv1.1 enabled
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG] TLSv1
enabled
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
Security layer: requested 0, selected 0
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ]
connected client computer name: Guacamole RDP
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ]
Non-TLS connection established from ::ffff:10.2.0.208 port 54580: encrypted
with standard RDP security
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
xrdp_000063f8_wm_login_mode_event_00000001
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ]
Loading keymap file /etc/xrdp/km-00000409.ini
Jul  3 11:29:10 amiga-ui xrdp[25592]: (25592)(140100677732160)[WARN ] local
keymap file for 0x00000409 found and doesn't match built in keymap, using
local keymap file
Jul  3 11:29:16 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
Jul  3 11:29:16 amiga-ui xrdp-sesman[2170]: (2170)(140433657058624)[INFO ]
A connection received from ::1 port 43872
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ]
xrdp_wm_log_msg: sesman connect ok
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
xrdp_wm_log_msg: sending login info to session manager, please wait...
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
return value from xrdp_mm_connect 0
Jul  3 11:29:17 amiga-ui xrdp-sesman[2170]: (2170)(140433657058624)[INFO ]
++ reconnected session: username sluna, display :10.0, session_pid 31586,
ip ::ffff:10.2.0.208:54580 - socket: 12
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ]
xrdp_wm_log_msg: login successful for display 10
Jul  3 11:29:17 amiga-ui xrdp-sesman[2170]: (2170)(140433657058624)[DEBUG]
Closed socket 8 (AF_INET6 ::1 port 3350)
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
xrdp_wm_log_msg: started connecting
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ]
lib_mod_log_peer: xrdp_pid=25592 connected to X11rdp_pid=31588
X11rdp_uid=73822 X11rdp_gid=6000 client_ip=::ffff:10.2.0.208
client_port=54580
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
xrdp_wm_log_msg: connected ok
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
xrdp_mm_connect_chansrv: chansrv connect successful
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
Closed socket 16 (AF_INET6 ::1 port 43872)
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[INFO ] The
following channel is allowed: cliprdr (0)
Jul  3 11:29:17 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG] The
allow channel list now initialized for this session
Jul  3 11:29:22 amiga-ui kernel: [85143.834843] traps: guacd[25588] general
protection ip:7fe242063207 sp:7fe234bcb280 error:0 in libc-2.27.so
[7fe241fcc000+1e7000]
Jul  3 11:29:22 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
Closed socket 12 (AF_INET6 ::ffff:10.2.0.208 port 3389)
Jul  3 11:29:22 amiga-ui guacd[25246]: Connection
"$829b6483-6b42-4ea9-ab5b-9cdd3478192f" removed.
Jul  3 11:29:22 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
xrdp_mm_module_cleanup
Jul  3 11:29:22 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
Closed socket 17 (AF_UNIX)
Jul  3 11:29:22 amiga-ui xrdp[25592]: (25592)(140100677732160)[DEBUG]
Closed socket 18 (AF_UNIX)

[2] output from gdb

# gdb --args guacd -L debug -f
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from guacd...done.
(gdb) run
Starting program: /usr/local/sbin/guacd -L debug -f
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
guacd[2119]: INFO: Guacamole proxy daemon (guacd) version 1.0.0 started
guacd[2119]: DEBUG: Unable to bind socket to host ::1, port 4822: Address
family not supported by protocol
guacd[2119]: DEBUG: Successfully bound socket to host 127.0.0.1, port 4822
guacd[2119]: INFO: Listening on host 127.0.0.1, port 4822
[New Thread 0x7ffff3aea700 (LWP 2245)]
guacd[2119]: INFO: Creating new client for protocol "rdp"
[New Thread 0x7ffff32e9700 (LWP 2249)]
guacd[2119]: INFO: Connection ID is "$3e6fec31-5fd5-4c73-ab31-4ebfa47e34a9"
[New Thread 0x7ffff2ae8700 (LWP 2250)]
guacd[2248]: DEBUG: Parameter "console" omitted. Using default value of 0.
guacd[2248]: DEBUG: Parameter "console-audio" omitted. Using default value
of 0.
guacd[2248]: DEBUG: Parameter "ignore-cert" omitted. Using default value of
0.
guacd[2248]: DEBUG: Parameter "disable-auth" omitted. Using default value
of 0.
guacd[2248]: INFO: No security mode specified. Defaulting to RDP.
guacd[2248]: DEBUG: Parameter "port" omitted. Using default value of 3389.
guacd[2248]: DEBUG: User resolution is 1920x944 at 96 DPI
guacd[2248]: DEBUG: Parameter "dpi" omitted. Using default value of 96.
guacd[2248]: DEBUG: Using resolution of 1920x944 at 96 DPI
guacd[2248]: DEBUG: Parameter "read-only" omitted. Using default value of 0.
guacd[2248]: DEBUG: Parameter "client-name" omitted. Using default value of
"Guacamole RDP".
guacd[2248]: DEBUG: Parameter "enable-wallpaper" omitted. Using default
value of 0.
guacd[2248]: DEBUG: Parameter "enable-theming" omitted. Using default value
of 0.
guacd[2248]: DEBUG: Parameter "enable-font-smoothing" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "enable-full-window-drag" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "enable-desktop-composition" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "enable-menu-animations" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "disable-bitmap-caching" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "disable-offscreen-caching" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "disable-glyph-caching" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "color-depth" omitted. Using default value of
16.
guacd[2248]: DEBUG: Parameter "disable-audio" omitted. Using default value
of 0.
guacd[2248]: DEBUG: Parameter "enable-printing" omitted. Using default
value of 0.
guacd[2248]: DEBUG: Parameter "printer-name" omitted. Using default value
of "Guacamole Printer".
guacd[2248]: DEBUG: Parameter "enable-drive" omitted. Using default value
of 0.
guacd[2248]: DEBUG: Parameter "drive-name" omitted. Using default value of
"Guacamole Filesystem".
guacd[2248]: DEBUG: Parameter "drive-path" omitted. Using default value of
"".
guacd[2248]: DEBUG: Parameter "create-drive-path" omitted. Using default
value of 0.
guacd[2248]: DEBUG: Parameter "enable-sftp" omitted. Using default value of
0.
guacd[2248]: DEBUG: Parameter "sftp-hostname" omitted. Using default value
of "10.2.0.208".
guacd[2248]: DEBUG: Parameter "sftp-port" omitted. Using default value of
"22".
guacd[2248]: DEBUG: Parameter "sftp-username" omitted. Using default value
of "".
guacd[2248]: DEBUG: Parameter "sftp-password" omitted. Using default value
of "".
guacd[2248]: DEBUG: Parameter "sftp-passphrase" omitted. Using default
value of "".
guacd[2248]: DEBUG: Parameter "sftp-root-directory" omitted. Using default
value of "/".
guacd[2248]: DEBUG: Parameter "sftp-server-alive-interval" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "recording-name" omitted. Using default value
of "recording".
guacd[2248]: DEBUG: Parameter "recording-exclude-output" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "recording-exclude-mouse" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "recording-include-keys" omitted. Using
default value of 0.
guacd[2248]: DEBUG: Parameter "create-recording-path" omitted. Using
default value of 0.
guacd[2248]: INFO: Resize method: none
guacd[2248]: DEBUG: Parameter "enable-audio-input" omitted. Using default
value of 0.
guacd[2248]: DEBUG: Parameter "gateway-port" omitted. Using default value
of 443.
guacd[2248]: INFO: User "@b6330806-e85e-48f9-9ca1-ed1d3899dc02" joined
connection "$3e6fec31-5fd5-4c73-ab31-4ebfa47e34a9" (1 users now present)
guacd[2248]: INFO: Loading keymap "base"
guacd[2248]: INFO: Loading keymap "en-us-qwerty"
LoadLibraryA: /usr/lib/x86_64-linux-gnu/freerdp/guacdr-client.so: cannot
open shared object file: No such file or directory
guacd[2248]: WARNING: Failed to load guacdr plugin. Drive redirection and
printing will not work. Sound MAY not work.
LoadLibraryA: /usr/lib/x86_64-linux-gnu/freerdp/guacsnd-client.so: cannot
open shared object file: No such file or directory
guacd[2248]: WARNING: Failed to load guacsnd alongside guacdr plugin. Sound
will not work. Drive redirection and printing MAY not work.
connected to 10.2.0.208:3389
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
WaitForSingleObject: unknown handle type 7431369437672466217
guacd[2119]: INFO: Connection "$3e6fec31-5fd5-4c73-ab31-4ebfa47e34a9"
removed.
[Thread 0x7ffff3aea700 (LWP 2245) exited]

Thread 4 "guacd" received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7ffff2ae8700 (LWP 2250)]
0x00007ffff79b32b7 in __libc_write (fd=fd@entry=7,
buf=buf@entry=0x7ffff2ae5d40,
nbytes=nbytes@entry=22) at ../sysdeps/unix/sysv/linux/write.c:27
27 ../sysdeps/unix/sysv/linux/write.c: No such file or directory.
(gdb) bt
#0  0x00007ffff79b32b7 in __libc_write (fd=fd@entry=7,
buf=buf@entry=0x7ffff2ae5d40,
nbytes=nbytes@entry=22) at ../sysdeps/unix/sysv/linux/write.c:27
#1  0x00005555555578be in __write_all (length=22,
    buffer=0x7ffff2ae5d40
"5.mouse,2.91,2.27,1.0;;c,8.86966598;4.sync,8.86966599;4.sync,8.86966600;4.sync,8.86966601;4.sync,8.86966602;5.mouse,3.115,2.41,1.0;5.mouse,3.113,2.39,1.0;nc,8.86966341;4.sync,8.86966342;4.sync,8.86966"...,
fd=7) at connection.c:72
#2  guacd_connection_write_thread (data=0x7fffec00b410) at connection.c:122
#3  0x00007ffff79a96db in start_thread (arg=0x7ffff2ae8700) at
pthread_create.c:463
#4  0x00007ffff744588f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) quit

Re: LDAP users automatically disconnected in RDP sessions

Posted by Nick Couchman <vn...@apache.org>.
>
> [4] Syslog:
>
> guacd[2097]: WaitForSingleObject: unknown handle type 9737140978076182297
> kernel: [77606.505720] traps: guacd[22247] general protection
> ip:7f49951b8207 sp:7f4983ffd360 error:0 in libc-2.27.so
> [7f4995121000+1e7000]
> guacd[2097]: message repeated 6 times: [ WaitForSingleObject: unknown
> handle type 9737140978076182297]
> guacd[2097]: Connection "$ba6e1200-0f97-4f03-9cc6-08c32f5b407f" removed.
> guacd[2097]: guacd[2097]: INFO:#011Connection
> "$ba6e1200-0f97-4f03-9cc6-08c32f5b407f" removed.
> xrdp[22251]: (22251)(140100677732160)[DEBUG] Closed socket 12 (AF_INET6
> ::ffff:10.2.0.208 port 3389)
> xrdp[22251]: (22251)(140100677732160)[DEBUG] xrdp_mm_module_cleanup
> xrdp[22251]: (22251)(140100677732160)[DEBUG] Closed socket 17 (AF_UNIX)
> xrdp[22251]: (22251)(140100677732160)[DEBUG] Closed socket 18 (AF_UNIX)
>

Looks like the problem is probably here - the general protection fault
seems to be the culprit.  Two requests to further debug this:
- Can you start guacd in debug mode (-L debug) and grab that output?
- Can you run it with gdb to get a full stack trace, and post that?

I think there are a handful of bugs like this that have been fixed since
1.0.0 (upcoming 1.1.0 release), but that information would be helpful in
tracking it down.

It is possible the bug is in glibc (libc-2.27.so) and not in Guacamole,
especially if it showed up right after you did an update, and based on that
error message above, bug, again, some further log messages would be helpful
in tracking that down.

-Nick