Subject: bin/12651: inetd hangs on reload
To: None <gnats-bugs@gnats.netbsd.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 04/13/2001 22:53:30
>Number:         12651
>Category:       bin
>Synopsis:       inetd hangs on reload
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 13 19:54:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Kimmo Suominen
>Release:        2001-04-09
>Organization:
Kimmo Suominen
>Environment:
System: NetBSD dit.suominen.org 1.5U NetBSD 1.5U (GW-GENERIC) #17: Tue Apr 10 14:47:48 EDT 2001 kim@nix.suominen.org:/net/nix/src-3/NetBSD/cvsroot/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
Reloading inetd config hangs inetd, it is looping getting "Too many
open files" after it is done reading all the config files (inetd.conf,
services, etc):

 19528 inetd    CALL  socket(0x1,0x1,0)
 19528 inetd    RET   socket 30/0x1e
 19528 inetd    CALL  getpeername(0x1e,0xbfbfd968,0xbfbfd954)
 19528 inetd    RET   getpeername -1 errno 57 Socket is not connected
 19528 inetd    CALL  connect(0x1e,0xbfbfda78,0x17)
 19528 inetd    NAMI  "/var/run/rpcbind.sock"
 19528 inetd    RET   connect 0
 19528 inetd    CALL  getsockname(0x1e,0xbfbfd8ac,0xbfbfd8a8)
 19528 inetd    RET   getsockname 0
 19528 inetd    CALL  getsockopt(0x1e,0xffff,0x1008,0xbfbfd8a4,0xbfbfd8a8)
 19528 inetd    RET   getsockopt 0
 19528 inetd    CALL  gettimeofday(0xbfbfd94c,0)
 19528 inetd    RET   gettimeofday 0
 19528 inetd    CALL  getpid
 19528 inetd    RET   getpid 19528/0x4c48
 19528 inetd    CALL  geteuid
 19528 inetd    RET   geteuid 0
 19528 inetd    CALL  write(0x1e,0x8061000,0x48)
 19528 inetd    GIO   fd 30 wrote 72 bytes
       "\M^@\0\0D\M^Dg\^[\^S\0\0\0\0\0\0\0\^B\0\^A\M^F\240\0\0\0\^C\0\0\0\^B\0\
        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^A\M^F\M-!\0\0\0\^A\0\0\0\^Cudp\0\0\0\
        \0\0\0\0\0\^A0\0\0\0"
 19528 inetd    RET   write 72/0x48
 19528 inetd    CALL  poll(0xbfbfd980,0x1,0xea60)
 19528 inetd    RET   poll 1
 19528 inetd    CALL  read(0x1e,0x8063328,0x2328)
 19528 inetd    GIO   fd 30 read 32 bytes
       "\M^@\0\0\^\\M^Dg\^[\^S\0\0\0\^A\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
        \^A"
 19528 inetd    RET   read 32/0x20
 19528 inetd    CALL  socket(0x1,0x1,0)
 19528 inetd    RET   socket -1 errno 24 Too many open files
 19528 inetd    CALL  open(0x48101a27,0,0x1b6)
 19528 inetd    RET   open -1 errno 24 Too many open files
 19528 inetd    CALL  gettimeofday(0xbfbfcda0,0)
 19528 inetd    RET   gettimeofday 0
 19528 inetd    CALL  getpid
 19528 inetd    RET   getpid 19528/0x4c48
 19528 inetd    CALL  socket(0x1,0x2,0)
 19528 inetd    RET   socket -1 errno 24 Too many open files
 19528 inetd    CALL  sendto(0xffffffff,0xbfbfd200,0x44,0,0,0)
 19528 inetd    RET   sendto -1 errno 9 Bad file descriptor
 19528 inetd    CALL  gettimeofday(0xbfbfce90,0)
 19528 inetd    RET   gettimeofday 0
>How-To-Repeat:
env - sh /etc/rc.d/inetd reload
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: