public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ssh-agent fails to create socket
Date: Mon, 17 Oct 2011 09:08:00 -0000	[thread overview]
Message-ID: <20111017090757.GG30527@calimero.vinschen.de> (raw)
In-Reply-To: <1318622532.29281.YahooMailRC@web80708.mail.mud.yahoo.com>

On Oct 14 13:02, Zdzislaw Meglicki wrote:
> After the latest upgrade (yesterday) I found that ssh-agent no longer works. It 
> looks like if fails to create a socket. Here is an illustration:
> 
> gustav@Crawley 503 $ ssh-agent bash -l
> gustav@Crawley 501 $ ls -r /tmp
> ssh-zHtmAVFZ1412
> gustav@Crawley 502 $ !!
> ls -r /tmp
> gustav@Crawley 503 $ env | grep SSH
> SSH_AGENT_PID=3624
> SSH_AUTH_SOCK=/tmp/ssh-zHtmAVFZ1412/agent.1412
> gustav@Crawley 504 $ 
> 
> So: it has created the directory in /tmp, but then something goes wrong, 
> probably it can't make the socket, so it cleans up and removes the directory. My 

I can reproduce this issue.  It's not that it can't create the socket,
actually it does so, but for some reason it calls select and, when select
returns, it decides to clean up and exit.  It's tricky to debug because
ssh-agent has no debug mode and for some reason it doesn't occur under
strace.

For the time being, the workaround is:

  $ eval `ssh-agent -s`


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2011-10-17  9:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 20:02 Zdzislaw Meglicki
2011-10-17  9:08 ` Corinna Vinschen [this message]
2011-10-17  9:21   ` Corinna Vinschen
2011-10-17 11:04     ` jan.kolar
2011-10-17 11:09       ` jan.kolar
2011-10-17 13:53         ` Corinna Vinschen
2011-10-17 15:06           ` jan.kolar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111017090757.GG30527@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).