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
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
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +alexandre.vassalotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7494
___
___
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
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 =
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also issue #3952.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7494
___
___