[issue18619] atexit leaks callbacks in subinterpreters

2013-08-01 Thread Antoine Pitrou

New submission from Antoine Pitrou:

atexit uses PEP 3121 module initialization, and by this scheme each 
subinterpreter gets a separate module state. However, atexit's m_free doesn't 
actually decref the callbacks: it only frees the callbacks array, thinking the 
callbacks were already decref'ed when run. This is ok at main interpreter 
shutdown, but not at subinterpreter shutdown (see issue 18618).

--
components: Interpreter Core, Library (Lib)
messages: 194098
nosy: Robin.Schreiber, pitrou, sbt
priority: normal
severity: normal
stage: needs patch
status: open
title: atexit leaks callbacks in subinterpreters
type: resource usage
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18619
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18619] atexit leaks callbacks in subinterpreters

2013-08-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Here is a patch. It also enables GC on the atexit module.

--
keywords: +patch
Added file: http://bugs.python.org/file31113/atexit_leaks.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18619
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18619] atexit leaks callbacks in subinterpreters

2013-08-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 71b63a32b1e3 by Antoine Pitrou in branch 'default':
Issue #18619: Fix atexit leaking callbacks registered from sub-interpreters, 
and make it GC-aware.
http://hg.python.org/cpython/rev/71b63a32b1e3

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18619
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18619] atexit leaks callbacks in subinterpreters

2013-08-01 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The patch was simple enough that I decided to push it as-is :)
Don't hesitate to make comments if you want, though.

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18619
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com