| Summary: | ssh ControlMaster process is crashing frequently when multiplexing ssh and scp connections with error 'select: Invalid argument' | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | James Morrish <james> | ||||||
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED WORKSFORME | ||||||||
| Severity: | normal | CC: | djm | ||||||
| Priority: | P2 | ||||||||
| Version: | 5.1p1 | ||||||||
| Hardware: | SPARC | ||||||||
| OS: | Solaris | ||||||||
| Attachments: |
|
||||||||
|
Description
James Morrish
2008-08-30 03:38:40 AEST
Created attachment 1564 [details]
ssh Debug Level 9 from Multiplex Control Master
Created attachment 1587 [details]
debug wrapper for select()
You will run into out-of-file-descriptor conditions with MaxSessions=8192 and a fd limit of 8192 - each session may consume (in the worst case) five file descriptors.
That being said, it should not crash the client. Unfortunately, debugging these things is tricky. Could you see if you can catch the crash with the attached diff applied? It is a debugging wrapper for select() that logs the arguments and should catch invalid fds that are being passed.
be warned: it will cause a lot of log spam, especially since you have so many open connections.
1 year with no followup + rewrite of mux code in the meantime => bug closed Move resolved bugs to CLOSED after 5.7 release |