[Bug] TemporaryStorage memory leak (was: RE: [Zope] Zope 2.7.3 Memory Leaks)

Andy Yates andy at nnu.com
Mon Jan 10 10:50:17 EST 2005


Many Thanks!  When I run my test Zope seem to reuse the memory now.  I
still don't understand why it is never released all together, but I can
certainly live with reuse.  Thanks again for your help.

Andy


> -----Original Message-----
> From: Dieter Maurer [mailto:dieter at handshake.de]
> Sent: Friday, January 07, 2005 3:39 PM
> To: Andy Yates
> Cc: zope at zope.org; andreas.jung at haufe.de
> Subject: [Bug] TemporaryStorage memory leak (was: RE: [Zope] Zope
2.7.3 Memory Leaks)
> 
> Andy Yates wrote at 2005-1-6 16:19 -0600:
> > ...
> >Can anybody else reproduce these results?
> 
> You have been right.
> 
> The leak is caused by a bug in
> "tempstorage.TemporaryStorage.TemporaryStorage._takeOutGarbage"
> 
>   It performs the zero refcount check for a child of a deleted
>   object *before* it has decremented the refcount. As a
>   consequence, it does not release children of a deleted object.
> 
> I attach a script that reproduces the problem in an easier way.
> Calling it with "bin/zopectl run" will consume about 200 MB of RAM
> for about 5 min.
> 
> I also attach a patch.
> 
> 
> I will file a bug report.
> 
> --
> Dieter


More information about the Zope mailing list