Memory leaks in smbd ?

Martin Zielinski mz at seh.de
Tue Nov 18 13:54:08 GMT 2008


Jeremy Allison schrieb:
> On Sat, Nov 15, 2008 at 02:03:05PM +0100, Martin Zielinski wrote:
> 
>> We tried to reproduce the error, which is quite complex having a printer  
>>  window open and polling a non-empty printer on the samba server.
>>
>> With your patch, the samu struct now is only once in the smbcontrol  
>> output. So yes, I would say it's fixed. There are still several "Printer  
>> Entry" entries, that seem not to be freed, too - but that's not so much  
>> memory that it will become a problem.
> 
> I'd still like to nail those if they are leaks though. Can you
> give me any more info on the pool useage there ?
> 
> Jeremy.
> 
Hi Jeremy,

We tried to reproduce the situation caused the first post about a memory 
leak. My  colleague told me, that it is necessary to have a printer 
window open displaying several print jobs.

I've attached the gzipped 26k file. If it doesn't make it to the list, I 
could resend it to you personally.

Compared to the first post we had *before* Volkers patch lots of:

Printer Entry [-40000784]      contains     26 bytes in   2 blocks 	 
          	.name                          contains     26 bytes in   1 
    struct samu                    contains    543 bytes in  26 blocks 
        	struct passwd                  contains     71 bytes in   6
[...]

and now we only have

Printer Entry [-40000784]      contains     26 bytes in   2 blocks 
      	.name                          contains     26 bytes
Printer Entry [-40000784]      contains     26 bytes in   2 blocks
         .name                          contains     26 bytes in   1
Printer Entry [-40000784]      contains     26 bytes in   2 blocks
         .name                          contains     26 bytes in   1
[...]

If these entries are a leak I can't say - but you will know.

Thanks,

Martin

-- 
Martin Zielinski 			mz at seh.de		
Softwareentwicklung			T +49 (0)521 94226 76	

SEH Computertechnik GmbH 		www.seh.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pool2.gz
Type: application/x-gzip
Size: 1508 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20081118/ba9cefc9/pool2.bin


More information about the samba-technical mailing list