[Samba] Samba 2.2.6 leaks file descriptions!
Joakim Tjernlund
Joakim.Tjernlund at lumentis.se
Sun Oct 27 16:57:01 GMT 2002
> On Sun, 27 Oct 2002, Joakim Tjernlund wrote:
>
> > Been running with this change since friday and it looks good. I can not
> > find any leaking FDs anymore. The usage of the server has been very low
> > so I won't know for sure until Monday afternoon.
> >
> > Does this mean it's a RH kernel bug?
>
> It could either (a) be a bug in the linux kernel, necessarily specific to
> RedHat, or (b) a bug in the way we use the kernel change notify mechanism
> on linux. Will take some more investigation to find out which.
>
>
>
>
> cheers, jerry
hmm, just had a look again and this is looks bit strange(many references to
SY01-005-prod-data-spec-pe5.doc). This file has been open for several hours.
A smbstatus is also included(last in this mail)
[jocke at linfs 12077]# ls -l fd/
total 0
dr-x------ 2 root root 0 Oct 27 17:44 ./
dr-xr-xr-x 3 root root 0 Oct 27 17:44 ../
lrwx------ 1 root root 64 Oct 27 17:44 0 -> /dev/null
lrwx------ 1 root root 64 Oct 27 17:44 1 -> /dev/null
lr-x------ 1 root root 64 Oct 27 17:44 10 -> pipe:[43870797]
l-wx------ 1 root root 64 Oct 27 17:44 11 -> pipe:[43870797]
lrwx------ 1 root root 64 Oct 27 17:44 12 -> socket:[44046615]
lrwx------ 1 root root 64 Oct 27 17:44 13 -> /usr/local/samba2.
2.3/var/cache/samba/locking.tdb
lrwx------ 1 root root 64 Oct 27 17:44 14 -> /usr/local/samba2.
2.3/var/cache/samba/printing.tdb
lrwx------ 1 root root 64 Oct 27 17:44 15 -> /usr/local/samba2.
2.3/var/cache/samba/ntdrivers.tdb
lrwx------ 1 root root 64 Oct 27 17:44 16 -> /usr/local/samba2.
2.3/var/cache/samba/ntprinters.tdb
lrwx------ 1 root root 64 Oct 27 17:44 17 -> /usr/local/samba2.
2.3/var/cache/samba/ntforms.tdb
lrwx------ 1 root root 64 Oct 27 17:44 18 -> /usr/local/samba2.
2.3/var/cache/samba/share_info.tdb
lrwx------ 1 root root 64 Oct 27 17:44 19 -> /usr/local/samba2.
2.3/var/cache/samba/sessionid.tdb
lrwx------ 1 root root 64 Oct 27 17:44 2 -> /dev/null
lr-x------ 1 root root 64 Oct 27 17:44 20 -> pipe:[44046616]
l-wx------ 1 root root 64 Oct 27 17:44 21 -> pipe:[44046616]
lrwx------ 1 root root 64 Oct 27 17:44 22 -> /home/lumentis/Pub
lic/Lumentis_Dokument/Lumentis_Admin/Templates/Normal.dot*
lr-x------ 1 root root 64 Oct 27 17:44 23 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lrwx------ 1 root root 64 Oct 27 17:44 24 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 25 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 26 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 27 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 28 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 29 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 3 -> /dev/urandom
lr-x------ 1 root root 64 Oct 27 17:44 30 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 31 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 32 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 34 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 35 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 36 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 37 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 38 -> /home/lumentis/Pub
lic/Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc*
lr-x------ 1 root root 64 Oct 27 17:44 39 -> /home/lumentis/Pub
lic/Lumentis_Dokument/Lumentis_Admin/Templates/Normal.dot*
lrwx------ 1 root root 64 Oct 27 17:44 4 -> /usr/local/samba2.2
.3/etc/samba/private/secrets.tdb
lr-x------ 1 root root 64 Oct 27 17:44 40 -> /home/lumentis/Pub
lic/Lumentis_Dokument/Lumentis_Admin/Templates/Normal.dot*
lr-x------ 1 root root 64 Oct 27 17:44 41 -> /home/lumentis/Pub
lic/Lumentis_Dokument/Lumentis_Admin/Templates/Normal.dot*
lr-x------ 1 root root 64 Oct 27 17:44 42 -> /home/lumentis/Pub
lic/Lumentis_Dokument/Lumentis_Admin/Templates/Normal.dot*
l-wx------ 1 root root 64 Oct 27 17:44 43 -> /usr/local/samba2.
2.3/var/log/samba/log.smbd
lrwx------ 1 root root 64 Oct 27 17:44 5 -> socket:[44046614]
l-wx------ 1 root root 64 Oct 27 17:44 6 -> /usr/local/samba2.2
.3/var/run/samba/smbd.pid
lrwx------ 1 root root 64 Oct 27 17:44 7 -> /usr/local/samba2.2
.3/var/cache/samba/messages.tdb
lrwx------ 1 root root 64 Oct 27 17:44 8 -> /usr/local/samba2.2
.3/var/cache/samba/connections.tdb
lrwx------ 1 root root 64 Oct 27 17:44 9 -> /usr/local/samba2.2
.3/var/cache/samba/brlock.tdb
[jocke at linfs 12077]#
jocke at linfs bin]# ./smbstatus -d
using configfile = /usr/local/samba2.2.3/etc/samba/smb.conf
Opened /usr/local/samba2.2.3/var/cache/samba/connections.tdb
Samba version 2.2.6rc2cvs
Service uid gid pid machine
----------------------------------------------
HW fara lumentis 14235 administ-hjn0do (192.168.1.67) Sun Oct 27 12:52:08 2002
Public lumentis lumentis 12634 test-barbar1 (192.168.1.75) Sun Oct 27 08:29:03 2002
SW L8 lumentis 12177 systemlabb-2 (192.168.1.45) Sun Oct 27 12:22:09 2002
HW jska lumentis 30949 janne-s (192.168.1.17) Sat Oct 26 09:26:50 2002
Public charles lumentis 27425 d2d4s60j (192.168.1.236) Fri Oct 25 21:04:59 2002
Public L8 lumentis 12177 systemlabb-2 (192.168.1.45) Sun Oct 27 06:53:11 2002
Public jska lumentis 30949 janne-s (192.168.1.17) Sat Oct 26 09:26:54 2002
IPC$ lumentis lumentis 14067 test (192.168.1.229) Sun Oct 27 12:29:32 2002
Public lumentis lumentis 12634 test-barbar1 (192.168.1.75) Sun Oct 27 08:29:03 2002
charles charles charles 27425 d2d4s60j (192.168.1.236) Fri Oct 25 21:05:15 2002
kaka kaka kaka 15347 kaarlo (192.168.1.23) Sun Oct 27 16:25:11 2002
SW ekg lumentis 27106 systemlabb-4 (192.168.1.64) Fri Oct 25 20:15:46 2002
Public L8 lumentis 12077 d3d4s60j (192.168.1.52) Sun Oct 27 06:32:32 2002
IPC$ jocke jocke 27187 lumentis02 (192.168.1.10) Fri Oct 25 20:22:57 2002
L8 L8 L8 12077 d3d4s60j (192.168.1.52) Sun Oct 27 06:32:32 2002
HW lumentis lumentis 14067 test (192.168.1.229) Sun Oct 27 12:29:32 2002
Public lumentis lumentis 14067 test (192.168.1.229) Sun Oct 27 12:29:37 2002
HW L8 lumentis 12077 d3d4s60j (192.168.1.52) Sun Oct 27 09:13:59 2002
IPC$ ftp ftp 15733 monitor (192.168.1.204) Sun Oct 27 17:49:59 2002
IPC$ ftp ftp 14067 test (192.168.1.229) Sun Oct 27 17:49:50 2002
Public jocke lumentis 27187 lumentis02 (192.168.1.10) Fri Oct 25 20:22:50 2002
SW L8 lumentis 12077 d3d4s60j (192.168.1.52) Sun Oct 27 09:13:59 2002
IPC$ ftp ftp 15733 monitor (192.168.1.204) Sun Oct 27 17:49:59 2002
Locked files:
Pid DenyMode Access R/W Oplock Name
--------------------------------------------------------------
15347 DENY_WRITE 0x20089 RDONLY NONE /home/kaka/SSI/Logo/2003.cdr Sun Oct 27 16:25:13 2002
14067 DENY_NONE 0x2019f RDWR NONE
/home/lumentis/Public/SW/UPdocs/MTP_UP_PA12.doc Sun Oct 27 12:30:06 2002
14067 DENY_NONE 0x2019f RDWR NONE /home/lumentis/Public/
Temp/Janne/APD_trim.xls Sun Oct 27 13:10:04 2002
12077 DENY_NONE 0x2019f RDWR NONE /home/lumentis/Public/
Lumentis_Dokument/System/SY01-005-prod-data-spec-pe5.doc Sun Oct 27 10:29:01 2
002
12077 DENY_NONE 0x2019f RDWR NONE /home/lumentis/Public/
Lumentis_Dokument/Lumentis_Admin/Templates/Normal.dot Sun Oct 27 10:28:59 2002
[jocke at linfs bin]#
More information about the samba
mailing list