[Samba] WinXP/x64 - MFC CFile objects leak parent directory handles

Dragan Krnic dkrnic at googlemail.com
Tue Feb 5 17:25:07 GMT 2008


On 2/4/08, Volker Lendecke <Volker.Lendecke at sernet.de> wrote:
>
> On Mon, Feb 04, 2008 at 07:07:36PM +0100, Dragan Krnic wrote:
> > Does anyone know how to avoid this problem?
> > Should I provide some more diagnostics?
>
> Your smb.conf, debug level 10 logs and sniffs of all
> combinations please!
>
> Volker

my effective smb.conf:

  1
  2 [global]
  3         workgroup = PMN1
  4         netbios name = PMN93
  5         server string = ""
  6         wins server = 172.24.204.184
  7         preferred master = no
  8         local master = no
  9         domain master = no
 10         server signing = no
 11         encrypt passwords = yes
 12         security = domain
 13         time server = no
 14         passwd program = /usr/bin/passwd %u
 15         username level = 3
 16         unix password sync = yes
 17         lanman auth = no
 18         dos filemode = yes
 19         log level = 1
 20         debug timestamp = yes
 21         log file = /var/log/samba/%m
 22         max log size = 65536
 23         socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
 24         max xmit = 65535
 25         unix charset = UTF8
 26         display charset = UTF8
 27         os level = 31
 28         lock dir = /var/lock/samba/locks
 29         pid directory = /var/lock/samba
 30         create mask = 0664
 31         directory mask = 0775
 32         hide dot files = no
 33         map system = no
 34         map hidden = no
 35         map archive = no
 36         store dos attributes = yes
 37         map acl inherit = yes
 38         host msdfs = no
 39         printing = cups
 40         printcap name = cups
 41
 42 [homes]
 43         comment = Home Directories
 44         valid users = %U
 45         read only = no
 46         inherit permissions = yes
 47         security mask = 0777
 48         directory security mask = 0777
 49         browseable = no
 50         store dos attributes = yes
 51
 52 [PRIMA]
 53         comment = "for Project work"
 54         directory security mask = 0777
 55         dos filetimes = yes
 56         inherit permissions = yes
 57         map system = no
 58         oplocks = no
 59         path = /local/PRIMA
 60         read only = no
 61         security mask = 0777
 62         hide unreadable = yes
 63         map hidden = no
 64         map archive = no
 65         store dos attributes = yes
 66         map acl inherit = yes
 67         use sendfile = yes
 68         strict sync = yes
I have enclosed 4 files compressed with bzip2 documenting the
problem when an x64 client opens a file in a Samba share:

1. messages.x64.fmt.bz2   formatted full_audit log
2. pmn33.x64.bz2             formatted level 10 samba log
3. wireshark.out.bz2         formatted wireShark print-out
4. x64-26-07.bz2             capture file with relevant 200 packets

All files include data captured at 16:26:07 today.
The transaction opening the file for read, setting
kernel_flock and returning xattr should start at about
packet 69 in capture file.


More information about the samba mailing list