[Bug 1135] ssh-agent auth socket problem = infinite loop 100% cpu

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Dec 18 06:53:35 EST 2005


http://bugzilla.mindrot.org/show_bug.cgi?id=1135





------- Comment #4 from focht at gmx.net  2005-12-18 06:53 -------
(In reply to comment #3)
> I would guess that you have problems when setup.exe updates the cygwin dll
> while ssh-agent is still using it.  I have no idea what is happening under the
> covers though (or even if an update while cygwin processes are still running is
> even supported?)
> 

Hello again,

no the cygwin dynamic library is not updated/replaced when this occurs.
I examined the setup.log.full after each install and tells like this:

--- snip ---
....
2005/12/16 23:24:59 running: e:\cygwin\bin\bash.exe -c
/etc/postinstall/update-info-dir.sh
Agent pid 3148
Could not open a connection to your authentication agent.
2005/12/16 23:25:28 abnormal exit: exit code=0
2005/12/16 23:25:34 mbox note: Installation Complete
2005/12/16 23:25:34 Ending cygwin install
...
--- snip ---

As posted before, my .bashrc contains

----- snip ----

[ -z "$SSH_AUTH_SOCK" ] && eval `ssh-agent -s`
[ -z "$SSH_AGENT_PID" ] || ssh-add -l >/dev/null 2>&1 || ssh-add 

--- snip ---

Each time bash is started, this gets executed and the following lines appear on
my shell:

--- snip ---

Agent pid xxxx
Identity added: /home/focht/.ssh/id_rsa (/home/focht/.ssh/id_rsa)

focht at xxxx ~
$ 
--- snip ---

Maybe there is some kind of race condition somewhere because there is a line in
setup log saying "Could not open a connection to your authentication agent."

I guess its some kind of socket problem .. 

select() = ok (returns 1)
accept() = fail (returns -1, errno: shutdown)

Regards




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list