Mailing List Archive

[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

--- Comment #1 from E B <openssh-bugzilla@erik.ca> ---
Created attachment 3500
--> https://bugzilla.mindrot.org/attachment.cgi?id=3500&action=edit
OpenSSH client log

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

--- Comment #2 from E B <openssh-bugzilla@erik.ca> ---
Created attachment 3501
--> https://bugzilla.mindrot.org/attachment.cgi?id=3501&action=edit
OpenSSH source files

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

--- Comment #3 from E B <openssh-bugzilla@erik.ca> ---
Created attachment 3502
--> https://bugzilla.mindrot.org/attachment.cgi?id=3502&action=edit
OpenSSH build steps

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

E B <openssh-bugzilla@erik.ca> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |openssh-bugzilla@erik.ca

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm@mindrot.org

--- Comment #4 from Damien Miller <djm@mindrot.org> ---
There isn't quite enough debug output there to figure out what is going
wrong and I'm not able to replicate this locally (w/ 40 concurrent jobs
each making 100 multiplexed connections).

Could you attach a complete client debug output (ssh -vvv ...) for both
the main multiplex process and the failing passenger process? Likewise,
more complete strace output would be helpful.

Please use OpenSSH if possible as I just added a bit more debugging
(commit f068930635) that might help figure out what is going wrong.

--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

--- Comment #5 from E B <openssh-bugzilla@erik.ca> ---
Thanks Damien, I will re-run the test with another build (using commit
f068930635) and will try to collect & provide additional logging.

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

--- Comment #6 from E B <openssh-bugzilla@erik.ca> ---
Created attachment 3515
--> https://bugzilla.mindrot.org/attachment.cgi?id=3515&action=edit
Full OpenSSH_8.6p1 MUX proc log

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

--- Comment #7 from E B <openssh-bugzilla@erik.ca> ---
Created attachment 3516
--> https://bugzilla.mindrot.org/attachment.cgi?id=3516&action=edit
Full OpenSSH_8.6p1 ansible proc log

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

--- Comment #8 from E B <openssh-bugzilla@erik.ca> ---
Apologies for the latent response, I am able to reproduce this issue on
every attempt with OpenSSH 8.6p1 (commit f068930635).

I have attached the full ssh log output for both the MUX process and
the ansible / ssh processes running through the MUX connection to the
bastion host.

Full OpenSSH_8.6p1 MUX proc log
Full OpenSSH_8.6p1 ansible proc log (gzip)

I used the same steps outlined in the original comment with the
exception where extra logging was enabled on the ansible side:

ANSIBLE_SSH_ARGS="-vvv -E ./ssh.log" ansible -i my_target_hosts all -a
id

Let me know whether you would also need the full strace output or
whether the logs above will suffice.

Thanks

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

E B <openssh-bugzilla@erik.ca> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #3515|0 |1
is obsolete| |

--- Comment #9 from E B <openssh-bugzilla@erik.ca> ---
Created attachment 3517
--> https://bugzilla.mindrot.org/attachment.cgi?id=3517&action=edit
Full OpenSSH_8.6p1 MUX proc log

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 3304] SSH client MUX to multiple hosts causes select: Bad file descriptor [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=3304

--- Comment #10 from Damien Miller <djm@mindrot.org> ---
Created attachment 3518
--> https://bugzilla.mindrot.org/attachment.cgi?id=3518&action=edit
debug select failures

Unfortunately, it's hard to figure out what is going on there without
the actual bad file descriptor. Sorry to be a bother, but are you able
to reproduce using git HEAD with this patch applied?

It includes some extra debugging that will let us determine the
sequence of events, and will log which file descriptors are bad after
select fails.

--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs