[New-bugs-announce] [issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes

STINNER Victor report at bugs.python.org
Sun Dec 13 20:05:42 CET 2009

New submission from STINNER Victor <victor.stinner at haypocalc.com>:

clearEntries() delete all nodes of the profiler tree, but 
currentProfilerContext keeps a reference to a tree node 
(currentProfilerContext->previous->header attribute).

The patch fixes clearEntries() to delete all references (destroy 
currentProfilerContext and set it to NULL).

components: Extension Modules
files: _lsprof.patch
keywords: patch
messages: 96346
nosy: haypo
severity: normal
status: open
title: _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file15543/_lsprof.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list