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

Infinite loop on multi-session handling


Hello,

I'm currently experiencing an issue where a libssh function call to ssh_channel_request_exec() is getting stuck and taking up 100% CPU.  The process I'm running to reproduce this issue does the following:

Thread A

1.       Create a new SSH session to IP x.

2.       Open a channel and send a command.

3.       While bytes are being received, read channel output.

4.       Close the channel and session.

Thread B

1.       Create a new SSH session to same IP x.

2.       Open a channel and send a command that effectively stops A.3

3.       Close the channel and session.

My guess is that the issue is a result of multiple sessions being created for the same host, and when the first session is closed as a result of B.2, B is somehow getting stuck, but I do not have enough insight into libssh to be certain.

I have attached logs containing function traces.  Any feedback, comments, suggestions, or inputs is very much appreciated.

Thank you,
Jonathan

________________________________
This e-mail and any files transmitted with it are ShoreTel property, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited

Attachment: libssh.out
Description: libssh.out


Follow-Ups:
Re: Infinite loop on multi-session handlingAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org