Re: [BUG] Recursion crash when calling ssh_channel_write()

2019-02-13 Thread g4-lisz
On 14.02.19 01:22, Alberto Garcia wrote: > Forgot to add the callstack so you understand the code path the > execution takes when calling  *ssh_channel_write*() .  > *my_fd_data_function*  is the callback set with  ssh_event_add_fd() >         [crash] >         [.. more...] >  

Re: [BUG] Recursion crash when calling ssh_channel_write()

2019-02-13 Thread Alberto Garcia
Forgot to add the callstack so you understand the code path the execution takes when calling *ssh_channel_write*() . *my_fd_data_function* is the callback set with ssh_event_add_fd() [crash] [.. more...] VS-ssh-direct-tcp.exe!ssh_channel_write(ssh_channel_struct * channel,

[BUG] Recursion crash when calling ssh_channel_write()

2019-02-13 Thread Alberto Garcia
Hi, I think I found a bug in libssh. It happens when calling *ssh_channel_write()* (which gets called in the callback set by ssh_set_channel_callbacks()). The problem is that for some reason ssh_channel_write() ends up calling *ssh_poll_ctx_dopoll() *which at the same time will call the