Hi Team,

I  was continuosly getting the disconnects therefore I have added the below
code to analyze the crashes.

guacamole-server version : 1.0.0
guacamole-cleint version : 1.0.0
Browser :  Chrome, Version : 75.0.3770.142


*CODE ADDED IN  DAEMON.C*

void setCoreFileLimits()
> {
>         struct rlimit lim;
>         lim.rlim_cur = RLIM_INFINITY;
>         lim.rlim_max = RLIM_INFINITY;
>         setrlimit(RLIMIT_CORE, &lim);
> }



*called this function from main functon :-*

int main(int argc, char* argv[]) {
>     /* Server */
>     int socket_fd;
>     struct addrinfo* addresses;
>     struct addrinfo* current_address;
>     char bound_address[1024];
>     char bound_port[64];
>     int opt_on = 1;
>     setCoreFileLimits();


 Apart from this I haven't changed anything in the code.

There are lot of core files generated  which is as follows : -

[root@guacd /]# ls -la core.*
> -rw------- 1 root root   99053568 Aug  3 12:09 core.10051.guacd.11
> -rw------- 1 root root   98217984 Jul 26 05:41 core.12342.guacd.11
> -rw------- 1 root root  126042112 Jul 31 12:45 core.13372.guacd.6
> -rw------- 1 root root   90648576 Jul 27 14:41 core.13383.guacd.11
> -rw------- 1 root root  145698816 Jul 30 16:54 core.15839.guacd.6
> -rw------- 1 root root   91475968 Jul 25 18:06 core.16059.guacd.11
> -rw------- 1 root root  109989888 Jul 24 11:54 core.17477.guacd.6
> -rw------- 1 root root  123351040 Jul 27 14:47 core.17624.guacd.6
> -rw------- 1 root root   98430976 Jul 25 18:22 core.20839.guacd.11
> -rw------- 1 root root   97755136 Jul 25 14:36 core.21304.guacd.6
> -rw------- 1 root root  133857280 Jul 27 12:48 core.21974.guacd.6
> -rw------- 1 root root  108580864 Aug  1 14:56 core.22770.guacd.6
> -rw------- 1 root root 1326477312 Jul 31 13:55 core.23489.guacd.6
> -rw------- 1 root root  105877504 Aug  1 16:43 core.23827.guacd.6
> -rw------- 1 root root  104304640 Jul 29 11:37 core.26735.guacd.6
> -rw------- 1 root root  101429248 Jul 24 04:51 core.29564.guacd.6
> -rw------- 1 root root  115068928 Jul 25 10:44 core.3022.guacd.6
> -rw------- 1 root root  114536448 Jul 31 09:20 core.30329.guacd.6
> -rw------- 1 root root  112635904 Jul 25 12:44 core.31441.guacd.6
> -rw------- 1 root root  104656896 Jul 31 09:40 core.3448.guacd.6
> -rw------- 1 root root  112345088 Aug  2 10:45 core.4778.guacd.6
> -rw------- 1 root root   98291712 Jul 27 18:18 core.5058.guacd.6
> -rw------- 1 root root  108888064 Aug  3 11:46 core.5088.guacd.11
> -rw------- 1 root root  122503168 Jul 26 15:03 core.5286.guacd.11
> -rw------- 1 root root  128978944 Jul 24 09:39 core.5732.guacd.6
> -rw------- 1 root root  103329792 Aug  1 15:49 core.6557.guacd.6
> -rw------- 1 root root  114012160 Aug  2 15:25 core.6851.guacd.6
> -rw------- 1 root root  133550080 Aug  3 09:59 core.7743.guacd.11
> -rw------- 1 root root  116207616 Jul 31 11:20 core.8061.guacd.11
> -rw------- 1 root root  126287872 Aug  2 17:24 core.8551.guacd.11
> [root@guacd /]#



*Backtrace of  core.8551.guacd.11 is as follows* :-

[root@guacd /]# gdb -c  core.8551.guacd.11 guacd
> GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
> Copyright (C) 2013 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-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/sbin/guacd...Reading symbols from
> /usr/lib/debug/usr/sbin/guacd.debug...done.
> done.
> [New LWP 8557]
> [New LWP 8554]
> [New LWP 8551]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> Core was generated by `/usr/sbin/guacd -f'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x00007f98500d5592 in guac_rdp_keyboard_update_keysym
> (keyboard=0x7f98201f8010, keysym=65364, pressed=0) at keyboard.c:466
> 466         if (!keyboard->synchronized) {
> Missing separate debuginfos, use: debuginfo-install
> bzip2-libs-1.0.6-12.el7.x86_64 cairo-1.12.14-6.el7.x86_64
> elfutils-libelf-0.158-3.el7.x86_64 elfutils-libs-0.158-3.el7.x86_64
> expat-2.1.0-8.el7.x86_64 fontconfig-2.10.95-7.el7.x86_64
> freerdp-libs-1.0.2-17.el7.centos.x86_64
> freerdp-plugins-1.0.2-17.el7.centos.x86_64 freetype-2.4.11-9.el7.x86_64
> glibc-2.17-196.el7_4.2.x86_64 keyutils-libs-1.5.8-3.el7.x86_64
> krb5-libs-1.11.3-49.el7.x86_64 libX11-1.6.0-2.1.el7.x86_64
> libXau-1.0.8-2.1.el7.x86_64 libXdamage-1.1.4-4.1.el7.x86_64
> libXext-1.3.2-2.1.el7.x86_64 libXfixes-5.0.1-2.1.el7.x86_64
> libXrender-0.9.8-2.1.el7.x86_64 libXxf86vm-1.1.3-2.1.el7.x86_64
> libattr-2.4.46-12.el7.x86_64 libcap-2.22-8.el7.x86_64
> libcom_err-1.42.9-4.el7.x86_64 libdrm-2.4.50-1.1.el7.x86_64
> libgcc-4.8.2-16.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64
> libogg-1.3.0-7.el7.x86_64 libpng-1.5.13-5.el7.x86_64
> libselinux-2.2.2-6.el7.x86_64 libssh2-1.4.3-8.el7.x86_64
> libvorbis-1.3.3-8.el7.x86_64 libwebp-0.3.0-3.el7.x86_64
> libxcb-1.9-5.el7.x86_64 mesa-libEGL-9.2.5-5.20131218.el7.x86_64
> mesa-libGL-9.2.5-5.20131218.el7.x86_64
> mesa-libgbm-9.2.5-5.20131218.el7.x86_64
> mesa-libglapi-9.2.5-5.20131218.el7.x86_64 openssl-libs-1.0.2k-8.el7.x86_64
> pcre-8.32-12.el7.x86_64 pixman-0.32.4-3.el7.x86_64
> systemd-libs-219-30.el7_3.9.x86_64 uuid-1.6.2-26.el7.x86_64
> xz-libs-5.1.2-8alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64
> (gdb) bt
> #0  0x00007f98500d5592 in guac_rdp_keyboard_update_keysym
> (keyboard=0x7f98201f8010, keysym=65364, pressed=0) at keyboard.c:466
> #1  0x00007f98500d4de5 in guac_rdp_user_key_handler (user=0x7f984c00bdb0,
> keysym=65364, pressed=0) at input.c:141
> #2  0x00007f9859efc969 in __guac_handle_key (user=0x7f984c00bdb0, argc=2,
> argv=0x7f984c00c160) at user-handlers.c:153
> #3  0x00007f9859efbfb1 in guac_user_handle_instruction
> (user=0x7f984c00bdb0, opcode=0x7f984c010def "key", argc=2,
> argv=0x7f984c00c160) at user.c:178
> #4  0x00007f9859efd7b1 in guac_user_input_thread (data=0x7f97afffeb90) at
> user-handshake.c:225
> #5  0x00007f9859331e25 in start_thread () from /lib64/libpthread.so.0
> #6  0x00007f9857c2c34d in clone () from /lib64/libc.so.6

(gdb)print keyboard->synchronized
> Cannot access memory at address 0x7f98201f801c


*Backtrace of   core.8061.guacd.11 * * is as follows* :-

[root@guacd /]# gdb -c core.8061.guacd.11 guacd
> GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-51.el7
> Copyright (C) 2013 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-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/sbin/guacd...Reading symbols from
> /usr/lib/debug/usr/sbin/guacd.debug...done.
> done.
> [New LWP 8067]
> [New LWP 8061]
> [New LWP 8064]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> Core was generated by `/usr/sbin/guacd -f'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x00007f98500d5132 in guac_rdp_keyboard_get_key
> (keyboard=0x7f98340d4010, keysym=65505) at keyboard.c:251
> 251         if (key == NULL || key->definition == NULL)
> Missing separate debuginfos, use: debuginfo-install
> bzip2-libs-1.0.6-12.el7.x86_64 cairo-1.12.14-6.el7.x86_64
> elfutils-libelf-0.158-3.el7.x86_64 elfutils-libs-0.158-3.el7.x86_64
> expat-2.1.0-8.el7.x86_64 fontconfig-2.10.95-7.el7.x86_64
> freerdp-libs-1.0.2-17.el7.centos.x86_64
> freerdp-plugins-1.0.2-17.el7.centos.x86_64 freetype-2.4.11-9.el7.x86_64
> glibc-2.17-196.el7_4.2.x86_64 keyutils-libs-1.5.8-3.el7.x86_64
> krb5-libs-1.11.3-49.el7.x86_64 libX11-1.6.0-2.1.el7.x86_64
> libXau-1.0.8-2.1.el7.x86_64 libXdamage-1.1.4-4.1.el7.x86_64
> libXext-1.3.2-2.1.el7.x86_64 libXfixes-5.0.1-2.1.el7.x86_64
> libXrender-0.9.8-2.1.el7.x86_64 libXxf86vm-1.1.3-2.1.el7.x86_64
> libattr-2.4.46-12.el7.x86_64 libcap-2.22-8.el7.x86_64
> libcom_err-1.42.9-4.el7.x86_64 libdrm-2.4.50-1.1.el7.x86_64
> libgcc-4.8.2-16.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64
> libogg-1.3.0-7.el7.x86_64 libpng-1.5.13-5.el7.x86_64
> libselinux-2.2.2-6.el7.x86_64 libssh2-1.4.3-8.el7.x86_64
> libvorbis-1.3.3-8.el7.x86_64 libwebp-0.3.0-3.el7.x86_64
> libxcb-1.9-5.el7.x86_64 mesa-libEGL-9.2.5-5.20131218.el7.x86_64
> mesa-libGL-9.2.5-5.20131218.el7.x86_64
> mesa-libgbm-9.2.5-5.20131218.el7.x86_64
> mesa-libglapi-9.2.5-5.20131218.el7.x86_64 openssl-libs-1.0.2k-8.el7.x86_64
> pcre-8.32-12.el7.x86_64 pixman-0.32.4-3.el7.x86_64
> systemd-libs-219-30.el7_3.9.x86_64 uuid-1.6.2-26.el7.x86_64
> xz-libs-5.1.2-8alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64
> (gdb) bt
> #0  0x00007f98500d5132 in guac_rdp_keyboard_get_key
> (keyboard=0x7f98340d4010, keysym=65505) at keyboard.c:251
> #1  0x00007f98500d54d1 in guac_rdp_keyboard_send_events
> (keyboard=0x7f98340d4010, keysym_string=0x7f98500e8748
> <GUAC_KEYSYMS_ALL_SHIFT>, from=GUAC_RDP_KEY_PRESSED,
>     to=GUAC_RDP_KEY_PRESSED) at keyboard.c:434
> #2  0x00007f98500d53eb in guac_rdp_keyboard_send_event
> (keyboard=0x7f98340d4010, keysym=100, pressed=1) at keyboard.c:380
> #3  0x00007f98500d5633 in guac_rdp_keyboard_update_keysym
> (keyboard=0x7f98340d4010, keysym=100, pressed=1) at keyboard.c:486
> #4  0x00007f98500d4de5 in guac_rdp_user_key_handler (user=0x7f984c0029a0,
> keysym=100, pressed=1) at input.c:141
> #5  0x00007f9859efc969 in __guac_handle_key (user=0x7f984c0029a0, argc=2,
> argv=0x7f984c00be30) at user-handlers.c:153
> #6  0x00007f9859efbfb1 in guac_user_handle_instruction
> (user=0x7f984c0029a0, opcode=0x7f984c00d975 "key", argc=2,
> argv=0x7f984c00be30) at user.c:178
> #7  0x00007f9859efd7b1 in guac_user_input_thread (data=0x7f9848ff8b90) at
> user-handshake.c:225
> #8  0x00007f9859331e25 in start_thread () from /lib64/libpthread.so.0
> #9  0x00007f9857c2c34d in clone () from /lib64/libc.so.6
> (gdb)



Most of the time it happens when user scrolls any page inside the rdp.

Has anyone also got the same ?

Thanks and Regards,
Amarjeet Siingh.

Reply via email to