[Samba] 3.6.10 file handle leak under ancient 32-bit kernel

starlight.2013q1 at binnacle.cx starlight.2013q1 at binnacle.cx
Mon Jan 7 15:58:31 MST 2013


Ah, and of course a 'strace'.

   http://binnacle.cx/file/smbd_file_leak_strace.txt

The leak appears related to the

    open("log")

events where /var/log is opened and
scanned periodically.  See three
'open' calls without any matching
close.

Most of the /proc/###/fd entries
are for /var/log, but a couple are
for other files:


# ls -o /proc/15056/fd | sort -k8,8n
.
.
.
lr-x------  1 root 64 Jan  7 17:48 531 -> /var/log
lr-x------  1 root 64 Jan  7 17:48 532 -> /var/log
lr-x------  1 root 64 Jan  7 17:48 533 -> /w
lr-x------  1 root 64 Jan  7 17:48 534 -> /var/log
lr-x------  1 root 64 Jan  7 17:48 535 -> /var/log
lr-x------  1 root 64 Jan  7 17:48 536 -> /w/home
lr-x------  1 root 64 Jan  7 17:48 537 -> /w/home/awle
lr-x------  1 root 64 Jan  7 17:48 538 -> /w/home/awle
lr-x------  1 root 64 Jan  7 17:48 539 -> /w/home/awle
lr-x------  1 root 64 Jan  7 17:48 540 -> /var/log
lr-x------  1 root 64 Jan  7 17:48 541 -> /var/log
lr-x------  1 root 64 Jan  7 17:48 542 -> /var/log
.
.
.
lr-x------  1 root 64 Jan  7 17:48 572 -> /var/log
lr-x------  1 root 64 Jan  7 17:48 573 -> /var/log
lr-x------  1 root 64 Jan  7 17:48 574 -> /var/log
lr-x------  1 root 64 Jan  7 17:49 575 -> /var/log
l-wx------  1 root 64 Jan  7 17:49 576 -> /usr/local/samba/var/clientlog/ciannait.log
lr-x------  1 root 64 Jan  7 17:49 577 -> /var/log
lr-x------  1 root 64 Jan  7 17:49 578 -> /var/log
lr-x------  1 root 64 Jan  7 17:49 579 -> /var/log



More information about the samba mailing list