Memory leaks in smbd ?

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Nov 19 08:15:13 GMT 2008


On Tue, Nov 18, 2008 at 02:54:08PM +0100, Martin Zielinski wrote:
> >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.

Can you send me a debug level 10 log of smbd doing that?

Thanks,

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20081119/48703fa0/attachment.bin


More information about the samba-technical mailing list