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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21351>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to