Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-441

guacd ssh plugin segfault when copy text to clipboard

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.13-incubating, 0.9.14, 1.0.0
    • 1.1.0
    • SSH, Terminal
    • None
    • GNU Linux x86_64

    Description

      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.
      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
      

      Attachments

        Issue Links

          Activity

            People

              mjumper Mike Jumper
              sanhex James He
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: