[Samba] Possible Samba Memory Leak

Stephen Borrill samba at precedence.co.uk
Mon Oct 31 21:00:06 GMT 2005


On Mon, 31 Oct 2005, Jeremy Allison wrote:
> On Mon, Oct 31, 2005 at 05:12:52PM +0000, Stephen Borrill wrote:
>>
>> Here is the last one just before the machine ran out of swap (this process
>> had around 116MB allocated, IIRC). None of these numbers are that big (and
>> if the numbers are in bytes surely they are negligable). The thing that is
>> changing over time is the number of "passdb internal SAM_ACCOUNT
>> allocation" entries. This machine is running security=user with passdb
>> backend=tdbsam.
>
> Ok, looks like a passdb leak (I hate that interface :-). What version
> exactly are you running again?

It was 3.0.14. I've just installed 3.0.20b.

We aren't seeing this at any other customers' sites, but most are using 
security = domain against W2k or W2k3. The others are probably running as 
a PDC.

> Where did you get the source code ?

I'm using NetBSD, but pkgsrc is lagging a bit. Both the releases have been 
based on pkgsrc, but manually upgraded to the latest version. The source 
is from ftp://ftp.samba.org/pub/samba/old-versions/

> I want to do a diff against the latest SAMBA_3_0 SVN to see if we've
> already fixed it and can give you the patch.

Great.

> Thanks for the help,

And thanks for yours!

-- 
Stephen



More information about the samba mailing list