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

2010-03-21 Thread STINNER Victor
STINNER Victor added the comment: > Fixed by r78641 (trunk) Backport done: r79200 (2.6). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

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

2010-03-03 Thread STINNER Victor
STINNER Victor added the comment: Sorry, but I'm unable to write a reliable unit test. You have to trust me: the patch fixes the issue and the issue does exist :-) Fixed by r78641 (trunk), r78642 (py3k), r78643 (3.1). Leave this issue open until the fix can be backported to 2.6 (after 2.6.5

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

2010-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2009-12-13 Thread STINNER Victor
STINNER Victor added the comment: See also issue #3952. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2009-12-13 Thread STINNER Victor
STINNER Victor added the comment: The crash is an Heisenbug (read object which just has been destroyed, sometimes it works, sometimes it crash), so it's not easy the write a short example showing the crash. The code looks like: import cProfile prof = cProfile.Profile() prof.enable()

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

2009-12-13 Thread STINNER Victor
New submission from STINNER Victor : 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