Re: ssh fails with "Bad file descriptor" on Interix (SFU)

Robert Lerche <[email protected]>
Newsgroups gmane.emacs.windows
Message-ID <CAF7SrrErwdDgfO763TF5ym5t=L9eZ1nT2bxNWw-OpP=YaJjLuQ@mail.gmail.com>
Wow, Interix!  I gave up on Interix quite a while ago but I can confirm a
similar issue, running NTEmacs but using ssh and friends built using
MinGW/MSYS.  I was never able to get interactive ssh to work correctly in
an Emacs shell window (using MSYS bash as the command shell) -- it hung as
AKF_SDS described.

I did get bash to work fairly smoothly for almost everything else
(including correct file name completion); I can offer a few hints on that
subject if anyone is interested.




On Mon, May 20, 2013 at 10:27 AM, Eli Zaretskii <[email protected]> wrote:

> > Date: Sun, 19 May 2013 19:57:15 -0700 (PDT)
> > From: AKF_SDS <[email protected]>
> >
> > Be forewarned, this is a bit complex...
>
> You could say _that_ again!
>
> > I'm running Emacs v23.1 on Windows XP. Within Emacs I'm running
> > Gentoo-Prefix via Interix v3.5. With this setup ssh hangs without
> output. I
> > ran ssh with truss and received the output below. What stuck out to me
> was
> > the repetition of:
> >     close(/some number/) close failed: errno 9, Bad file descriptor
> >
> > No other utilities have this issue. Has anyone seen this bug before? Can
> > anyone point me in the direction of a fix?
>
> You are talking to Emacs users on Windows, but both your problem and
> the data you present are from Unix.  You are unlikely to find here
> anyone who could interpret that data, let alone correlate it with
> something that is caused by Emacs on Windows.
>
> You may have better luck attaching a debugger to ssh when it hangs and
> finding out the reason why it hangs.  Then, perhaps some ssh developer
> could tell you what might be the possible reason(s) for that.  Only
> then, maybe, it would be possible to see how all this is related to
> Emacs and/or Windows.
>
> Sorry.
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.