[New-bugs-announce] [issue21351] refcounts not respected at process exit
Min RK
report at bugs.python.org
Fri Apr 25 21:39:06 CEST 2014
New submission from Min RK:
Reference counts appear to be ignored at process cleanup, which allows inter-dependent `__del__` methods to hang on exit. The problem does not seem to occur for garbage collection of any other context (functions, etc.).
I have a case where one object must be cleaned up after some descendent objects. Those descendents hold a reference on the parent and not vice versa, which should guarantee that they are cleaned up before the parent. This guarantee is satisfied by Python 3.3 and below, but not 3.4.
The attached test script hangs at exit on most (not all) runs on 3.4, but exits cleanly on earlier versions.
----------
components: Interpreter Core
files: tstgc.py
messages: 217168
nosy: minrk
priority: normal
severity: normal
status: open
title: refcounts not respected at process exit
versions: Python 3.4
Added file: http://bugs.python.org/file35041/tstgc.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21351>
_______________________________________
More information about the New-bugs-announce
mailing list