Memory leaks in smbd ?
Martin Zielinski
mz at seh.de
Wed Nov 19 10:10:38 GMT 2008
Volker Lendecke schrieb:
> 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
It's about 54MB in less than 10 minutes.
It can be found at
ftp://ftp.seh.de/samba/log.samba-vpc-win-xp-de
The corresponding pool-usage output is at
ftp://ftp.seh.de/samba/pool
Bye,
Martin
--
Martin Zielinski mz at seh.de
Softwareentwicklung T +49 (0)521 94226 76
SEH Computertechnik GmbH www.seh.de
More information about the samba-technical
mailing list