STINNER Victor <vstin...@python.org> added the comment:
collect() of gcmodule.c: * collect() builds an "unreachable" list which is quite important in this bug * the bug occurs in delete_garbage() which uses the unreachable list * weak references part of unreachable are handled before delete_garbage() in handle_weakrefs(): "Clear weakrefs and invoke callbacks as necessary". It seems like reproducer.tar.gz and gc_crash.py crashes involve a reference cycle. reproducer.tar.gz uses a weak reference which is *not* part of the reference cycle. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38006> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com