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

2010-03-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fixed by r78641 (trunk) Backport done: r79200 (2.6). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7494

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

2010-03-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2010-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +alexandre.vassalotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7494 ___ ___

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

2009-12-13 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@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

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

2009-12-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 =

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

2009-12-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #3952. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7494 ___ ___