Re: GUACD CRASHES on KEY EVENTS

2019-08-03 Thread Nick Couchman
On Sat, Aug 3, 2019 at 4:59 AM Amarjeet Singh  wrote:

> Hi Team,
>
> I  was continuosly getting the disconnects therefore I have added the
> below code to analyze the crashes.
>

This is the *only* thing you've changed in the code, *after* getting the
crashes?  You haven't made any other adjustments - no extra keymaps or
other changes to the code?


>> (gdb) bt
>> #0  0x7f98500d5592 in guac_rdp_keyboard_update_keysym
>> (keyboard=0x7f98201f8010, keysym=65364, pressed=0) at keyboard.c:466
>> #1  0x7f98500d4de5 in guac_rdp_user_key_handler (user=0x7f984c00bdb0,
>> keysym=65364, pressed=0) at input.c:141
>> #2  0x7f9859efc969 in __guac_handle_key (user=0x7f984c00bdb0, argc=2,
>> argv=0x7f984c00c160) at user-handlers.c:153
>> #3  0x7f9859efbfb1 in guac_user_handle_instruction
>> (user=0x7f984c00bdb0, opcode=0x7f984c010def "key", argc=2,
>> argv=0x7f984c00c160) at user.c:178
>> #4  0x7f9859efd7b1 in guac_user_input_thread (data=0x7f97afffeb90) at
>> user-handshake.c:225
>> #5  0x7f9859331e25 in start_thread () from /lib64/libpthread.so.0
>> #6  0x7f9857c2c34d 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* :-
>
>> (gdb) bt
>> #0  0x7f98500d5132 in guac_rdp_keyboard_get_key
>> (keyboard=0x7f98340d4010, keysym=65505) at keyboard.c:251
>> #1  0x7f98500d54d1 in guac_rdp_keyboard_send_events
>> (keyboard=0x7f98340d4010, keysym_string=0x7f98500e8748
>> , from=GUAC_RDP_KEY_PRESSED,
>> to=GUAC_RDP_KEY_PRESSED) at keyboard.c:434
>> #2  0x7f98500d53eb in guac_rdp_keyboard_send_event
>> (keyboard=0x7f98340d4010, keysym=100, pressed=1) at keyboard.c:380
>> #3  0x7f98500d5633 in guac_rdp_keyboard_update_keysym
>> (keyboard=0x7f98340d4010, keysym=100, pressed=1) at keyboard.c:486
>> #4  0x7f98500d4de5 in guac_rdp_user_key_handler (user=0x7f984c0029a0,
>> keysym=100, pressed=1) at input.c:141
>> #5  0x7f9859efc969 in __guac_handle_key (user=0x7f984c0029a0, argc=2,
>> argv=0x7f984c00be30) at user-handlers.c:153
>> #6  0x7f9859efbfb1 in guac_user_handle_instruction
>> (user=0x7f984c0029a0, opcode=0x7f984c00d975 "key", argc=2,
>> argv=0x7f984c00be30) at user.c:178
>> #7  0x7f9859efd7b1 in guac_user_input_thread (data=0x7f9848ff8b90) at
>> user-handshake.c:225
>> #8  0x7f9859331e25 in start_thread () from /lib64/libpthread.so.0
>> #9  0x7f9857c2c34d in clone () from /lib64/libc.so.6
>> (gdb)
>
>
>
This is interesting - it isn't crashing in a consistent place, which is
unusual.  I'd be interested if you do the backtrace on several of the other
core files how many of them are in similar places and how many are
different?  Things crashing in random places, in my experience, indicates
hardware errors, but that may not be the case, since these are in very
similar/close places.


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

I assume when you say "scrolls any page" you mean using their keyboard to
scroll and not the scroll wheel on a mouse?


>
> Has anyone also got the same ?
>

I've not seen this at all, and I use several versions of Guacamole (0.9.14,
1.0.0, and various git versions).

What RDP server are you connecting to?  Looks like you're running EL7
(CentOS or RHEL) - do you have the stock version of FreeRDP installed
(1.0.2)?

-Nick

>


Re: SSH sessions never connect

2019-08-03 Thread Nick Couchman
FYI - Pull requests have been submitted for this:

https://github.com/apache/guacamole-server/pull/232
https://github.com/apache/guacamole-client/pull/433

-Nick

On Fri, Aug 2, 2019 at 11:06 AM Niubbo75  wrote:

> Yes, this is exactly what I did.
> I have not understand that you would like to pass also usernmae & password
> to let user automagically logged in to macOS.
> Best,
> Alessandro
>
>
>
> --
> Sent from:
> http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
> For additional commands, e-mail: user-h...@guacamole.apache.org
>
>


Re: How to add new console type under Telnet section

2019-08-03 Thread Nick Couchman
On Sat, Aug 3, 2019 at 4:09 AM Niubbo75  wrote:

> Thank you to you, Nick! I've see you adjustment :-)
> I would like to help, let me know what can I do.
> Best,
> Alessandro
>
>
>
Well, if you're familiar with C programming, or want to start messing with
that, you are welcome to look at the RFCs and see if you can figure out
what bits of code need to be written in order to implement that
functionality, either within the current telnet protocol or as a new
protocol.  I'm tempted to make it its own protocol, since it seems to be
different enough from regular telnet, but it could probably go either way.

If you're not up to programming in C, that's fine - no pressure at all -
I'll be looking at it when I get a chance, too, and will probably need some
help testing along the way.  I'll let you know.

-Nick


GUACD CRASHES on KEY EVENTS

2019-08-03 Thread Amarjeet Singh
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, );
> }



*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  10064 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:
> ...
> 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  0x7f98500d5592 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
> 

Re: How to add new console type under Telnet section

2019-08-03 Thread Niubbo75
Thank you to you, Nick! I've see you adjustment :-)
I would like to help, let me know what can I do.
Best,
Alessandro



--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org