Bug 193

Summary: sshd: error: select: Bad file number
Product: Portable OpenSSH Reporter: Frank Mohr <f_mohr>
Component: sshdAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED INVALID    
Severity: minor    
Priority: P2    
Version: -current   
Hardware: SPARC   
OS: SunOS   

Description Frank Mohr 2002-03-28 07:07:29 AEDT
On SunOS the sshd sends "select: Bad file number" messages to syslog.

This happens in 2 places:

in sshd.c/line 997 (Openssh 3.1p1 release)
after generating a new RSA Key:
Mar 26 17:53:05 csfauth2 sshd[1474]: Generating new 768 bit RSA key.
Mar 26 17:53:06 csfauth2 sshd[1474]: RSA key generation complete.
Mar 26 17:53:06 csfauth2 sshd[1474]: error: select: Bad file number

in the serverloop.c - wait_until_can_do_something()
most of the time some messages just after session start, some during the 
session, and most of the time after closing the sessin

Mar 26 15:44:17 csfauth2 sshd[824]: Accepted publickey for root from 10.70.79.92
port 3427 ssh2
Mar 26 15:45:59 csfauth2 sshd[824]: debug3: serverloop.c 329 select -> -1
Mar 26 15:45:59 csfauth2 sshd[824]: error: select: Bad file number
Mar 26 15:46:01 csfauth2 sshd[824]: debug3: serverloop.c 329 select -> -1
Mar 26 15:46:01 csfauth2 sshd[824]: error: select: Bad file number
Mar 26 15:46:26 csfauth2 sshd[824]: debug3: serverloop.c 329 select -> 1
Mar 26 15:46:31 csfauth2 last message repeated 50 times

...

Mar 26 18:58:09 csfauth2 sshd[1476]: debug1: Received SIGCHLD.
Mar 26 18:58:09 csfauth2 sshd[1476]: debug3: serverloop.c 329 select -> -1
Mar 26 18:58:09 csfauth2 sshd[1476]: error: select: Bad file number
Mar 26 18:58:09 csfauth2 sshd[1476]: debug1: session_by_pid: pid 1478
Mar 26 18:58:09 csfauth2 sshd[1476]: debug1: session_exit_message: session 0
channel 0 pid 1478
Comment 1 Kevin Steves 2002-04-03 14:21:34 AEST
did a prior openssh version work?  which version?
have any other sunos users seen this?
Comment 2 Damien Miller 2003-01-07 17:41:14 AEDT
9 months, no followup == no bug
Comment 3 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED