Uploaded image for project: 'Apache Guacamole - Contributions'
  1. Apache Guacamole - Contributions
  2. GUAC-1232

Segfault when resizing Telnet

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 0.9.6, 0.9.7
    • Fix Version/s: None
    • Component/s: Telnet
    • Labels:
    • Environment:
      Firefox
    • Story Points:
      3

      Description

      From IRC:

      Hi guys! I'm having some problems in guacamole-server, due to some resizes in the web, and so guacd daemon dies. Do you know if this is a known bug? ... After some quick resizes in firefox this problem happens.

      The connection dies due to a segfault:

      #0  0x00007f4231cfb660 in __guac_common_surface_transfer (dst=0x7f422010b370, src=0x7f42478b34c0, op=GUAC_TRANSFER_BINARY_SRC) at guac_surface.c:287
      #1  0x00007f4231cfb660 in __guac_common_surface_transfer (src=src@entry=0x3078630, sx=sx@entry=0x7f422864eb2c, sy=0x3078630, 
          sy@entry=0x7f422864eb28, op=op@entry=GUAC_TRANSFER_BINARY_SRC, dst=dst@entry=0x3078630, rect=rect@entry=0x7f422864eb30) at guac_surface.c:614
      #2  0x00007f4231cfc571 in guac_common_surface_copy (src=0x3078630, sx=0, sy=473100, w=<optimized out>, h=<optimized out>, dst=0x3078630, dx=20, dy=0) at guac_surface.c:850
      #3  0x00007f4231cf6912 in __guac_terminal_display_flush_copy (display=display@entry=0x2b8df20)
          at display.c:643
      #4  0x00007f4231cf6ce9 in guac_terminal_display_flush (display=0x2b8df20) at display.c:839
      #5  0x00007f4231cf8e33 in guac_terminal_resize (height=0, width=28, term=0x2b8dda0) at terminal.c:1139
      #6  0x00007f4231cf8e33 in guac_terminal_resize (terminal=terminal@entry=0x2b8dda0, width=<optimized out>, height=<optimized out>) at terminal.c:1249
      #7  0x00007f4231cf4ca9 in guac_telnet_client_size_handler (client=<optimized out>, width=<optimized out>, height=<optimized out>) at guac_handlers.c:101
      #8  0x0000000000402ed4 in __guacd_client_input_thread (data=0x2b89c30) at client.c:157
      #9  0x00007f4239b56555 in start_thread () at /lib64/libpthread.so.0
      #10 0x00007f4238a41f3d in clone () at /lib64/libc.so.6

      This was reported as occurring when using Telnet, and so likely would affect SSH as well, as both leverage the same underlying terminal emulator.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mike.jumper Michael Jumper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: