[issue21351] refcounts not respected at process exit

Tim Peters report at bugs.python.org
Fri Apr 25 23:19:03 CEST 2014


Tim Peters added the comment:

Just noting that, for me, the problem goes away if

del c, c2

is added as the last line of the test.  This suggests the problem is due to changes in end-of-life module cleanup.

Without that line, I see 3 kinds of output:

1.
del child
del child
del parent
parent deleted

2.
del parent
parent still has 2 children
parent still has 2 children
... repeated forever ...

3.
del child
del parent
parent still has 1 children
parent still has 1 children
... repeated forever ...

----------
nosy: +tim.peters

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21351>
_______________________________________


More information about the Python-bugs-list mailing list