silc-server socket leak on backup router

Stuart Henderson stu at spacehopper.org
Mon May 26 01:48:45 CEST 2008


There seems to be an FD (tcp socket) leak on a backup router trying
to reconnect to a failed primary; I came back to a split network since
the backup router had amassed so many open FDs that it hit process limits
when it tried to reconnect to the primary which had recovered by then.

This is 1.1.7 running on OpenBSD/sparc64 (backup router is firewalled,
access only permitted from silc servers, so it's definitely not from
some large number of client connections).

# fstat|grep silcd
root     silcd       2552   wd /tmp            2 drwxrwxrwt   r      512
root     silcd       2552    0 /             827 crw--w----  rw    ttyp0
root     silcd       2552    1 /             827 crw--w----  rw    ttyp0
root     silcd       2552    2 /             827 crw--w----  rw    ttyp0
root     silcd       2552    3 pipe 0x4000b027600 state: 
root     silcd       2552    4 pipe 0x4000b027600 state: 
root     silcd       2552    5 pipe 0x4000b027000 state: 
root     silcd       2552    6 pipe 0x4000b027000 state: 
root     silcd       2552    7 /var/log    22530 -rw-------   w   802112
root     silcd       2552    8* internet stream tcp 0x4000ad7c6a0 195.95.187.146:706
root     silcd       2552    9* internet stream tcp 0x4000a59c6d0 127.0.0.1:5000
root     silcd       2552   10* internet stream tcp
root     silcd       2552   11 /            1416 crw-r--r--   r  urandom
root     silcd       2552   12* internet stream tcp 0x4000a59d3f0 195.95.187.146:706 <-- xxx.xx.xxx.xx:37444
root     silcd       2552   13* internet stream tcp 0x4000a59dcb0 195.95.187.146:706 <-- xx.xxx.xxx.xx:6110
root     silcd       2552   14* internet stream tcp
root     silcd       2552   15* internet stream tcp 0x4000a59c040 195.95.187.146:706 <-- xxx.xx.xx.xxx:38253
root     silcd       2552   16* internet dgram udp *:2848
root     silcd       2552   17* internet dgram udp *:5421
root     silcd       2552   18* internet dgram udp 127.0.0.1:31557 <-> 127.0.0.1:53
root     silcd       2552   19* internet stream tcp
root     silcd       2552   20* internet stream tcp
root     silcd       2552   21* internet stream tcp
root     silcd       2552   22* internet stream tcp
...
root     silcd       2552  358* internet stream tcp
root     silcd       2552  359* internet stream tcp
...
root     silcd       2552  1001* internet stream tcp




More information about the silc-devel mailing list