[New-bugs-announce] [issue18619] atexit leaks callbacks in subinterpreters

Antoine Pitrou report at bugs.python.org
Thu Aug 1 20:20:15 CEST 2013

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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list