[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with libssh 0.6.X as a server


Hi all!
I have big problems with libssh 0.6.3 while implementing SSH server. The problem appears to affect 0.6.X versions. Just to give a quick rundown of how the library is used. I am using libssh to implement the server. The server is able to accept multiple ssh connections and to switch between sessions/channels I am using ssh_select. It appears libssh does not have a problem if only one client connects through SSH but things go wild when the 2nd user connects and users alternate with data input (user1 enters data, user2 enters data, user1 enters data,...) In described scenario libssh crashes. 
I can't believe I am the only one who has this problem. At the same time I can't believe people only use the library to implement client side. Can anybody shed some light?
Regards,Zarko
GDB backtrace of the crash goes like this:
Core was generated by `./sshcli'.Program terminated with signal 11, Segmentation fault.#0  0xb76f5b34 in ssh_poll_set_events (p=0x8745080, events=5)    at /home/zcoklin/Code/libssh-0.6.3/src/poll.c:345345	    p->ctx->pollfds[p->x.idx].events = events;(gdb) bt#0  0xb76f5b34 in ssh_poll_set_events (p=0x8745080, events=5)    at /home/zcoklin/Code/libssh-0.6.3/src/poll.c:345#1  0xb76fa76d in ssh_socket_unbuffered_write (s=0x8744158, buffer=0x874ac20,     len=52) at /home/zcoklin/Code/libssh-0.6.3/src/socket.c:561#2  0xb76faa9d in ssh_socket_nonblocking_flush (s=0x8744158)    at /home/zcoklin/Code/libssh-0.6.3/src/socket.c:649#3  0xb76fa991 in ssh_socket_write (s=0x8744158, buffer=0x874a818, len=52)    at /home/zcoklin/Code/libssh-0.6.3/src/socket.c:615#4  0xb76f193b in ssh_packet_write (session=0x8747000)    at /home/zcoklin/Code/libssh-0.6.3/src/packet.c:495#5  0xb76f1c43 in packet_send2 (session=0x8747000)    at /home/zcoklin/Code/libssh-0.6.3/src/packet.c:561#6  0xb76f1cfe in packet_send (session=0x8747000)    at /home/zcoklin/Code/libssh-0.6.3/src/packet.c:582#7  0xb76d88d9 in grow_window (session=0x8747000, channel=0x8749728,     minimumsize=0) at /home/zcoklin/Code/libssh-0.6.3/src/channels.c:382#8  0xb76dc5b7 in ssh_channel_read_timeout (channel=0x8749728,     dest=0xbfdc3bbc, count=2048, is_stderr=0, timeout=-3)    at /home/zcoklin/Code/libssh-0.6.3/src/channels.c:2821#9  0xb76dc3a1 in ssh_channel_read (channel=0x8749728, dest=0xbfdc3bbc,     count=2048, is_stderr=0)    at /home/zcoklin/Code/libssh-0.6.3/src/channels.c:2717#10 0x0804976c in main () at ../sshcli.c:304(gdb) q

Valgrind detects following irregularities :-(
==3772== Invalid read of size 2==3772==    at 0x4073AEC: ssh_poll_get_events (poll.c:332)==3772==    by 0x4073B82: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 2==3772==    at 0x4073B06: ssh_poll_set_events (poll.c:343)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B0D: ssh_poll_set_events (poll.c:344)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073AE2: ssh_poll_get_ctx (poll.c:321)==3772==    by 0x40753CB: ssh_handle_packets (session.c:530)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073DED: ssh_poll_ctx_add (poll.c:505)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073E3B: ssh_poll_ctx_add (poll.c:515)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073E4A: ssh_poll_ctx_add (poll.c:516)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073E5E: ssh_poll_ctx_add (poll.c:517)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073E74: ssh_poll_ctx_add (poll.c:518)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073E8A: ssh_poll_ctx_add (poll.c:519)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x4073E95: ssh_poll_ctx_add (poll.c:519)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073EA6: ssh_poll_ctx_add (poll.c:520)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073EBA: ssh_poll_ctx_add (poll.c:521)==3772==    by 0x40753F4: ssh_handle_packets (session.c:534)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B16: ssh_poll_set_events (poll.c:344)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E658: ssh_select (connect.c:470)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B20: ssh_poll_set_events (poll.c:345)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E658: ssh_select (connect.c:470)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B28: ssh_poll_set_events (poll.c:345)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E658: ssh_select (connect.c:470)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073AE2: ssh_poll_get_ctx (poll.c:321)==3772==    by 0x40753CB: ssh_handle_packets (session.c:530)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E658: ssh_select (connect.c:470)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x40740C8: ssh_poll_ctx_dopoll (poll.c:611)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x407412A: ssh_poll_ctx_dopoll (poll.c:621)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4074134: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c7c is 20 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x407413E: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c7c is 20 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4074144: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c80 is 24 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x40741AE: ssh_poll_ctx_dopoll (poll.c:631)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x40741B9: ssh_poll_ctx_dopoll (poll.c:632)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x405E5FF: ssh_select (connect.c:467)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Conditional jump or move depends on uninitialised value(s)==3772==    at 0x402EBB6: strstr (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x8049817: main (sshcli.c:319)==3772== ==3772== Conditional jump or move depends on uninitialised value(s)==3772==    at 0x40E1E29: vfprintf (vfprintf.c:1630)==3772==    by 0x40E9EFE: printf (printf.c:35)==3772==    by 0x40B64D2: (below main) (libc-start.c:226)==3772== ==3772== Syscall param write(buf) points to uninitialised byte(s)==3772==    at 0x417B4E3: __write_nocancel (syscall-template.S:82)==3772==    by 0x410DBA4: _IO_file_write@@GLIBC_2.1 (fileops.c:1289)==3772==    by 0x410DA83: new_do_write (fileops.c:543)==3772==    by 0x410F0FD: _IO_do_write@@GLIBC_2.1 (fileops.c:516)==3772==    by 0x410F4B4: _IO_file_overflow@@GLIBC_2.1 (fileops.c:894)==3772==    by 0x410E642: _IO_file_xsputn@@GLIBC_2.1 (fileops.c:1371)==3772==    by 0x40E1E01: vfprintf (vfprintf.c:1630)==3772==    by 0x40E9EFE: printf (printf.c:35)==3772==    by 0x40B64D2: (below main) (libc-start.c:226)==3772==  Address 0x4033015 is not stack'd, malloc'd or (recently) free'd==3772== Got command: test1-1==3772== Syscall param socketcall.send(msg) points to uninitialised byte(s)==3772==    at 0x418D881: send (socket.S:64)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x405853C: channel_write_common (channels.c:1377)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x445ff43 is 35 bytes inside a block of size 1,024 alloc'd==3772==    at 0x402BC70: realloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4055591: realloc_buffer (buffer.c:128)==3772==    by 0x405571B: buffer_add_data (buffer.c:198)==3772==    by 0x4078962: ssh_socket_write (socket.c:611)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x4061BB4: ssh_server_ecdh_init (ecdh.c:331)==3772==    by 0x4085801: ssh_packet_kexdh_init (server.c:184)==3772==    by 0x406F6D7: ssh_packet_process (packet.c:422)==3772==    by 0x406F350: ssh_packet_socket_callback (packet.c:326)==3772==    by 0x4077E93: ssh_socket_pollcallback (socket.c:290)==3772== ==3772== Invalid read of size 2==3772==    at 0x4073AEC: ssh_poll_get_events (poll.c:332)==3772==    by 0x4078754: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x40568D8: grow_window (channels.c:382)==3772==    by 0x405A5B6: ssh_channel_read_timeout (channels.c:2821)==3772==    by 0x405A3A0: ssh_channel_read (channels.c:2717)==3772==    by 0x804976B: main (sshcli.c:304)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 2==3772==    at 0x4073B06: ssh_poll_set_events (poll.c:343)==3772==    by 0x407876C: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x40568D8: grow_window (channels.c:382)==3772==    by 0x405A5B6: ssh_channel_read_timeout (channels.c:2821)==3772==    by 0x405A3A0: ssh_channel_read (channels.c:2717)==3772==    by 0x804976B: main (sshcli.c:304)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B0D: ssh_poll_set_events (poll.c:344)==3772==    by 0x407876C: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x40568D8: grow_window (channels.c:382)==3772==    by 0x405A5B6: ssh_channel_read_timeout (channels.c:2821)==3772==    by 0x405A3A0: ssh_channel_read (channels.c:2717)==3772==    by 0x804976B: main (sshcli.c:304)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B16: ssh_poll_set_events (poll.c:344)==3772==    by 0x407876C: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x40568D8: grow_window (channels.c:382)==3772==    by 0x405A5B6: ssh_channel_read_timeout (channels.c:2821)==3772==    by 0x405A3A0: ssh_channel_read (channels.c:2717)==3772==    by 0x804976B: main (sshcli.c:304)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B20: ssh_poll_set_events (poll.c:345)==3772==    by 0x407876C: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x40568D8: grow_window (channels.c:382)==3772==    by 0x405A5B6: ssh_channel_read_timeout (channels.c:2821)==3772==    by 0x405A3A0: ssh_channel_read (channels.c:2717)==3772==    by 0x804976B: main (sshcli.c:304)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B28: ssh_poll_set_events (poll.c:345)==3772==    by 0x407876C: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x40568D8: grow_window (channels.c:382)==3772==    by 0x405A5B6: ssh_channel_read_timeout (channels.c:2821)==3772==    by 0x405A3A0: ssh_channel_read (channels.c:2717)==3772==    by 0x804976B: main (sshcli.c:304)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== Got command: test2

==3772== Invalid read of size 2==3772==    at 0x4073AEC: ssh_poll_get_events (poll.c:332)==3772==    by 0x4073B82: ssh_poll_add_events (poll.c:372)==3772==    by 0x4078A56: ssh_socket_nonblocking_flush (socket.c:644)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x405853C: channel_write_common (channels.c:1377)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 2==3772==    at 0x4073B06: ssh_poll_set_events (poll.c:343)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x4078A56: ssh_socket_nonblocking_flush (socket.c:644)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x405853C: channel_write_common (channels.c:1377)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B0D: ssh_poll_set_events (poll.c:344)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x4078A56: ssh_socket_nonblocking_flush (socket.c:644)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x405853C: channel_write_common (channels.c:1377)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B16: ssh_poll_set_events (poll.c:344)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x4078A56: ssh_socket_nonblocking_flush (socket.c:644)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x405853C: channel_write_common (channels.c:1377)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B20: ssh_poll_set_events (poll.c:345)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x4078A56: ssh_socket_nonblocking_flush (socket.c:644)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x405853C: channel_write_common (channels.c:1377)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B28: ssh_poll_set_events (poll.c:345)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x4078A56: ssh_socket_nonblocking_flush (socket.c:644)==3772==    by 0x4078990: ssh_socket_write (socket.c:615)==3772==    by 0x406F93A: ssh_packet_write (packet.c:495)==3772==    by 0x406FC42: packet_send2 (packet.c:561)==3772==    by 0x406FCFD: packet_send (packet.c:582)==3772==    by 0x405853C: channel_write_common (channels.c:1377)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x4073AEC: ssh_poll_get_events (poll.c:332)==3772==    by 0x4073B82: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 2==3772==    at 0x4073B06: ssh_poll_set_events (poll.c:343)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B0D: ssh_poll_set_events (poll.c:344)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B16: ssh_poll_set_events (poll.c:344)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B20: ssh_poll_set_events (poll.c:345)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B28: ssh_poll_set_events (poll.c:345)==3772==    by 0x4073B96: ssh_poll_add_events (poll.c:372)==3772==    by 0x40753C0: ssh_handle_packets (session.c:529)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073AE2: ssh_poll_get_ctx (poll.c:321)==3772==    by 0x40753CB: ssh_handle_packets (session.c:530)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x40740C8: ssh_poll_ctx_dopoll (poll.c:611)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x407412A: ssh_poll_ctx_dopoll (poll.c:621)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4074134: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c7c is 20 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x407413E: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c7c is 20 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4074144: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c80 is 24 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x4073AEC: ssh_poll_get_events (poll.c:332)==3772==    by 0x4073BB0: ssh_poll_remove_events (poll.c:383)==3772==    by 0x4077FF3: ssh_socket_pollcallback (socket.c:324)==3772==    by 0x4074160: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 2==3772==    at 0x4073B06: ssh_poll_set_events (poll.c:343)==3772==    by 0x4073BC8: ssh_poll_remove_events (poll.c:383)==3772==    by 0x4077FF3: ssh_socket_pollcallback (socket.c:324)==3772==    by 0x4074160: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B0D: ssh_poll_set_events (poll.c:344)==3772==    by 0x4073BC8: ssh_poll_remove_events (poll.c:383)==3772==    by 0x4077FF3: ssh_socket_pollcallback (socket.c:324)==3772==    by 0x4074160: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B16: ssh_poll_set_events (poll.c:344)==3772==    by 0x4073BC8: ssh_poll_remove_events (poll.c:383)==3772==    by 0x4077FF3: ssh_socket_pollcallback (socket.c:324)==3772==    by 0x4074160: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x4073AEC: ssh_poll_get_events (poll.c:332)==3772==    by 0x4078754: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078016: ssh_socket_pollcallback (socket.c:329)==3772==    by 0x4074160: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 2==3772==    at 0x4073B06: ssh_poll_set_events (poll.c:343)==3772==    by 0x407876C: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078016: ssh_socket_pollcallback (socket.c:329)==3772==    by 0x4074160: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B0D: ssh_poll_set_events (poll.c:344)==3772==    by 0x407876C: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078016: ssh_socket_pollcallback (socket.c:329)==3772==    by 0x4074160: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073B16: ssh_poll_set_events (poll.c:344)==3772==    by 0x407876C: ssh_socket_unbuffered_write (socket.c:561)==3772==    by 0x4078A9C: ssh_socket_nonblocking_flush (socket.c:649)==3772==    by 0x4078016: ssh_socket_pollcallback (socket.c:329)==3772==    by 0x4074160: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x40741AE: ssh_poll_ctx_dopoll (poll.c:631)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x40741B9: ssh_poll_ctx_dopoll (poll.c:632)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x407552C: ssh_handle_packets_termination (session.c:609)==3772==    by 0x407523C: ssh_blocking_flush (session.c:413)==3772==    by 0x4058188: ssh_channel_flush (channels.c:1271)==3772==    by 0x40585A4: channel_write_common (channels.c:1389)==3772==    by 0x405860A: ssh_channel_write (channels.c:1419)==3772==    by 0x80498B5: main (sshcli.c:330)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073AE2: ssh_poll_get_ctx (poll.c:321)==3772==    by 0x40753CB: ssh_handle_packets (session.c:530)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x80498FC: main (sshcli.c:302)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x40740C8: ssh_poll_ctx_dopoll (poll.c:611)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x80498FC: main (sshcli.c:302)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x407412A: ssh_poll_ctx_dopoll (poll.c:621)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x80498FC: main (sshcli.c:302)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4074134: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x80498FC: main (sshcli.c:302)==3772==  Address 0x4467c7c is 20 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x407413E: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x80498FC: main (sshcli.c:302)==3772==  Address 0x4467c7c is 20 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4074144: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x80498FC: main (sshcli.c:302)==3772==  Address 0x4467c80 is 24 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x40741AE: ssh_poll_ctx_dopoll (poll.c:631)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x80498FC: main (sshcli.c:302)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x40741B9: ssh_poll_ctx_dopoll (poll.c:632)==3772==    by 0x4075461: ssh_handle_packets (session.c:547)==3772==    by 0x405A73F: ssh_channel_poll (channels.c:2919)==3772==    by 0x80498FC: main (sshcli.c:302)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073F4D: ssh_poll_ctx_remove (poll.c:559)==3772==    by 0x4074481: ssh_event_add_session (poll.c:792)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073F66: ssh_poll_ctx_remove (poll.c:560)==3772==    by 0x4074481: ssh_event_add_session (poll.c:792)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073F6C: ssh_poll_ctx_remove (poll.c:561)==3772==    by 0x4074481: ssh_event_add_session (poll.c:792)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073DED: ssh_poll_ctx_add (poll.c:505)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073E3B: ssh_poll_ctx_add (poll.c:515)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073E4A: ssh_poll_ctx_add (poll.c:516)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073E5E: ssh_poll_ctx_add (poll.c:517)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073E74: ssh_poll_ctx_add (poll.c:518)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073E8A: ssh_poll_ctx_add (poll.c:519)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x4073E95: ssh_poll_ctx_add (poll.c:519)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073EA6: ssh_poll_ctx_add (poll.c:520)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073EBA: ssh_poll_ctx_add (poll.c:521)==3772==    by 0x4074495: ssh_event_add_session (poll.c:793)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x407449C: ssh_event_add_session (poll.c:797)==3772==    by 0x405E436: ssh_select (connect.c:450)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c6c is 4 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x40740C8: ssh_poll_ctx_dopoll (poll.c:611)==3772==    by 0x4074542: ssh_event_dopoll (poll.c:835)==3772==    by 0x405E76F: ssh_select (connect.c:489)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x407412A: ssh_poll_ctx_dopoll (poll.c:621)==3772==    by 0x4074542: ssh_event_dopoll (poll.c:835)==3772==    by 0x405E76F: ssh_select (connect.c:489)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4074134: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4074542: ssh_event_dopoll (poll.c:835)==3772==    by 0x405E76F: ssh_select (connect.c:489)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c7c is 20 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x407413E: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4074542: ssh_event_dopoll (poll.c:835)==3772==    by 0x405E76F: ssh_select (connect.c:489)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c7c is 20 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4074144: ssh_poll_ctx_dopoll (poll.c:622)==3772==    by 0x4074542: ssh_event_dopoll (poll.c:835)==3772==    by 0x405E76F: ssh_select (connect.c:489)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c80 is 24 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 2==3772==    at 0x40741AE: ssh_poll_ctx_dopoll (poll.c:631)==3772==    by 0x4074542: ssh_event_dopoll (poll.c:835)==3772==    by 0x405E76F: ssh_select (connect.c:489)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c74 is 12 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x40741B9: ssh_poll_ctx_dopoll (poll.c:632)==3772==    by 0x4074542: ssh_event_dopoll (poll.c:835)==3772==    by 0x405E76F: ssh_select (connect.c:489)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c78 is 16 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073FF3: ssh_poll_ctx_remove (poll.c:569)==3772==    by 0x407479F: ssh_event_free (poll.c:951)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073A9B: ssh_poll_free (poll.c:306)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073AA4: ssh_poll_free (poll.c:307)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid read of size 4==3772==    at 0x4073F4D: ssh_poll_ctx_remove (poll.c:559)==3772==    by 0x4073AB4: ssh_poll_free (poll.c:307)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073F66: ssh_poll_ctx_remove (poll.c:560)==3772==    by 0x4073AB4: ssh_poll_free (poll.c:307)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c70 is 8 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073F6C: ssh_poll_ctx_remove (poll.c:561)==3772==    by 0x4073AB4: ssh_poll_free (poll.c:307)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid write of size 4==3772==    at 0x4073AB8: ssh_poll_free (poll.c:308)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772== Invalid free() / delete / delete[] / realloc()==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772==  Address 0x4467c68 is 0 bytes inside a block of size 28 free'd==3772==    at 0x402AF06: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)==3772==    by 0x4073ACE: ssh_poll_free (poll.c:310)==3772==    by 0x4073CB3: ssh_poll_ctx_free (poll.c:458)==3772==    by 0x40747E4: ssh_event_free (poll.c:958)==3772==    by 0x405E835: ssh_select (connect.c:502)==3772==    by 0x8049649: main (sshcli.c:269)==3772== ==3772==  		 	   		  

Follow-Ups:
Problems with libssh 0.6.X as a serverŽarko Coklin <zcoklin@xxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org