[ 
https://issues.apache.org/jira/browse/GUACAMOLE-441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16399084#comment-16399084
 ] 

Nick Couchman commented on GUACAMOLE-441:
-----------------------------------------

> Thank you. I'll see if I can fix my Ubuntu to generate a core dump.

That would be helpful.  If you are able to build/test it on a completely 
different system from your production host, that would be good, too - in my 
experience, if you're building on the same host that another instance is 
already installed on, and you're trying to run from the build directory, it may 
load the shared libraries (for example, the libguac-client-ssh.so library) from 
the target install directory instead of the build directory.  This can lead to 
things similar to what you were seeing where the source code is newer than the 
binary being evaluated.  Try it on a clean system, with the more recent 
Guacamole from git, or at least version 0.9.14 from the web site.

> Please try to generate more text (e.g. cat a long file) in the ssh window. 
> When you select all the text in the window, hold the mouse left key and 
> scroll down the ssh window with the mouse wheel, so that you can select more 
> text out of the current view.

With both the 0.9.13-incubating version that I am running, as well as a more 
recent version built from git master, I generated screen output using "ps aux" 
and then scrolled up and down selecting various regions of the screen, and was 
not able to crash guacd or cause the session to abnormally terminate.

> guacd ssh plugin segfault when copy text to clipboard
> -----------------------------------------------------
>
>                 Key: GUACAMOLE-441
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-441
>             Project: Guacamole
>          Issue Type: Bug
>          Components: SSH
>    Affects Versions: 0.9.13-incubating
>         Environment: GNU Linux x86_64
>            Reporter: James He
>            Priority: Minor
>
> This segfault can be replicated each time when do the below steps.
> - Login to any SSH server from guacamole.
> - Try a command with much output e.g. "ps aux".
> - Select the output text of the above command.
> - SSH connection will be terminated immediately.
> - Core dump of guacd will be generated.
> {code:none}
> Core was generated by `/sbin/guacd -f'.
> Program terminated with signal SIGABRT, Aborted.
> #0  0x00002aaaabca8437 in raise () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00002aaaabca8437 in raise () from /lib64/libc.so.6
> #1  0x00002aaaabca9818 in abort () from /lib64/libc.so.6
> #2  0x00002aaaabce6574 in ?? () from /lib64/libc.so.6
> #3  0x00002aaaabcebdae in ?? () from /lib64/libc.so.6
> #4  0x00002aaaabcecab6 in ?? () from /lib64/libc.so.6
> #5  0x00002aaaadb6b160 in __guac_terminal_send_mouse (term=0x2aaab401bf60, 
> user=0x2aaab0002920, x=703, y=921,
>     mask=0) at terminal.c:1715
> #6  0x00002aaaadb6b2b5 in guac_terminal_send_mouse (term=0x2aaab401bf60, 
> user=0x2aaab0002920, x=703, y=921, mask=0)
>     at terminal.c:1753
> #7  0x00002aaaadb5c532 in guac_ssh_user_mouse_handler (user=0x2aaab0002920, 
> x=703, y=921, mask=0) at input.c:41
> #8  0x00002aaaaaf4dc2e in __guac_handle_mouse (user=0x2aaab0002920, argc=3, 
> argv=0x2aaab000adc0)
>     at user-handlers.c:134
> #9  0x00002aaaaaf4d3ea in guac_user_handle_instruction (user=0x2aaab0002920, 
> opcode=0x2aaab0012b29 "mouse", argc=3,
>     argv=0x2aaab000adc0) at user.c:178
> #10 0x00000000004055e7 in guacd_user_input_thread (data=0x2aaaaf353d20) at 
> user.c:127
> #11 0x00002aaaab8521a4 in start_thread (arg=0x2aab0d029700) at 
> pthread_create.c:309
> #12 0x00002aaaabd5965d in clone () from /lib64/libc.so.6
> (gdb) frame 5
> #5  0x00002aaaadb6b160 in __guac_terminal_send_mouse (term=0x2aaab401bf60, 
> user=0x2aaab0002920, x=703, y=921,
>     mask=0) at terminal.c:1715
> warning: Source file is more recent than executable.
> 1715                guac_common_clipboard_reset(term->clipboard, 
> "text/plain");
> (gdb) p term->clipboard->length
> $6 = 9500
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to