[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Infinite loop on multi-session handling
[Thread Prev] | [Thread Next]
- Subject: Infinite loop on multi-session handling
- From: Jonathan Walker <jwalker@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 13 Aug 2012 10:51:03 -0700
- To: "libssh@xxxxxxxxxx" <libssh@xxxxxxxxxx>
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
Re: Infinite loop on multi-session handling | Andreas Schneider <asn@xxxxxxxxxxxxxx> |