Memory leak in zope.i18nmessageid.MessageFactory
Bug #257657 reported by
Gary Poster
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BlueBream |
Fix Committed
|
Undecided
|
Unassigned | ||
Zope 2 |
Fix Released
|
High
|
Unassigned | ||
zope.i18nmessageid |
Fix Released
|
High
|
Tres Seaver |
Bug Description
(zope.i18nmessa
The following code leaks memory:
import zope.i18nmessageid
_ = zope.i18nmessag
while 1:
_('a string')
Apparently the message instances (C code) are not being garbage collected.
This affects persistent objects that have a reference to a message (every time the state is loaded, a new version of the same string is created and never released).
It will also affect any code that generates message instances dynamically; templates, for instance, may be affected.
affects: | zope3 → zopetoolkit-project |
Changed in zopetoolkit-project: | |
assignee: | nobody → Tres Seaver (tseaver) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in zope2: | |
importance: | Undecided → High |
milestone: | none → 2.12.5 |
status: | New → Fix Committed |
Changed in bluebream: | |
status: | New → Fix Committed |
affects: | zopetoolkit-project → zope.i18nmessageid |
Changed in zope2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This has been reproduced using both Python 2.4 and 2.5.