creating new threads appears to leak memory rapidly in Python 3.11 / linux #99205
Labels
3.11
3.12
interpreter-core
Interpreter core (Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
zzzeek commentedNov 7, 2022
•
edited
The following test program gains about 10M per second under top, on Python 3.11 only (confirmed for all development stages: 3.11.0a4, 3.11.0b1, 3.11.0rc1, 3.11.0) . 3.10 shows no memory growth.
For direct results, here's the same program using the
resource
module that I just saw used over at #98467:The above program under Py 3.11.0 prints:
under Python 3.10 it prints:
the issue looks extremely similar to another one we just fixed in greenlet, over at python-greenlet/greenlet#328, although this one is much more surprising. Issue #98467 might also be related.
Environment:
The text was updated successfully, but these errors were encountered: