| Summary: | ssh-agent auth socket problem = infinite loop 100% cpu | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Anastasius Focht <focht> | ||||
| Component: | ssh-agent | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED DUPLICATE | ||||||
| Severity: | normal | CC: | djm | ||||
| Priority: | P2 | ||||||
| Version: | 4.2p1 | ||||||
| Hardware: | All | ||||||
| OS: | Cygwin on NT/2k/Win7-11 | ||||||
| Attachments: |
|
||||||
|
Description
Anastasius Focht
2005-12-16 20:54:11 AEDT
Created attachment 1044 [details]
debug session and source code snippets pinpointing the problem
*** Bug 1134 has been marked as a duplicate of this bug. *** 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?) (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@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 Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1 |