[New-bugs-announce] [issue3952] _lsprof: clear() should call flush_unmatched()
STINNER Victor
report at bugs.python.org
Wed Sep 24 03:22:08 CEST 2008
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
Example to reproduce the bug (using Python trunk):
---
from gc import collect
import _lsprof
def callMethod(obj):
obj.clear()
collect()
obj = _lsprof.Profiler()
obj.enable()
callMethod(obj)
obj.enable()
del obj
collect()
---
The problem is that the profiler is still running when exiting
callMethod() and so it tries to use callMethod context which was
free'd just before by profiler_clear().
----------
files: _lsprof_clear.patch
keywords: patch
messages: 73689
nosy: haypo
severity: normal
status: open
title: _lsprof: clear() should call flush_unmatched()
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11586/_lsprof_clear.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3952>
_______________________________________
More information about the New-bugs-announce
mailing list