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

RE: Infinite loop on multi-session handling


Sure thing.  I tried to add a defect, but I received the *attached* error msg.  I'll try again later.

Thanks,
Jonathan

-----Original Message-----
From: Andreas Schneider [mailto:asn@xxxxxxxxxxxxxx]
Sent: Thursday, August 23, 2012 2:50 AM
To: libssh@xxxxxxxxxx
Subject: Re: Infinite loop on multi-session handling

On Monday 13 August 2012 10:51:03 you wrote:
> Hello,

Hi,

> 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:

could you open a bug on red.libssh.org? If you have code examples please add them and also check the server log.


Thanks,


        -- andreas

>
> 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
--
Andreas Schneider                   GPG-ID: F33E3FC6
www.cryptomilk.org                asn@xxxxxxxxxxxxxx



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: err.jpg
Description: err.jpg


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