You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is related to subinterpreters, but more that the Placeholder singleton isn't stored elsewhere, so it's never freed. It just gets reinitialized for every subinterpreter, so the leak seems greater.
I can try and fix this much later today, but anyone feel free to try and do it before me.
Activity
Eclips4 commentedon Sep 26, 2024
Bisected to d929652.
Seems related to handling immortal objects in subinterpreters.
ZeroIntensity commentedon Sep 26, 2024
I don't think this is related to subinterpreters, but more that the
Placeholdersingleton isn't stored elsewhere, so it's never freed. It just gets reinitialized for every subinterpreter, so the leak seems greater.I can try and fix this much later today, but anyone feel free to try and do it before me.
vstinner commentedon Sep 26, 2024
The issue can be reproduced with:
which can be simplified to:
vstinner commentedon Sep 26, 2024
I wrote PR gh-124601 to fix the leak.
vstinner commentedon Sep 26, 2024
The leak was fixed by #124601.