[New-bugs-announce] [issue5437] Singleton MemoryError can hold traceback data and locals indefinitely

Antoine Pitrou report at bugs.python.org
Sun Mar 8 02:19:52 CET 2009


New submission from Antoine Pitrou <pitrou at free.fr>:

The PyExc_MemoryErrorInst object is persistent and its members never get
cleared. This means any local variable which gets caught in the
traceback isn't deallocated until the next MemoryError (!). Sample
script demonstrates this.

(this doesn't seem to affect 2.x because the traceback isn't attached to
the exception instance)

----------
files: memerr.py
messages: 83292
nosy: amaury.forgeotdarc, pitrou
priority: high
severity: normal
stage: needs patch
status: open
title: Singleton MemoryError can hold traceback data and locals indefinitely
type: resource usage
versions: Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13261/memerr.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5437>
_______________________________________


More information about the New-bugs-announce mailing list