Hacker News new | ask | show | jobs
by boarush 612 days ago
Python version from 3.10 have had a very annoying bug with the SSLContext (something related only to glibc) where there are memory leaks when opening new connections to new hosts and eventually causes any service (dockerized in my case) to crash due to OOM. Can still see that the issues have not been resolved in this release which basically makes it very difficult to deploy any production grade service difficult.
2 comments

Can you please link me to a raised issue for this? This sounds concerning.
While this bug has been around longer than merely since 3.10, I am betting this is the one, based on the description of the issue:

https://github.com/python/cpython/issues/84904

(Don't let the associates with asyncio throw you: that was merely the code in which it was first found; later code transcends it.)

not just this one, I've been tracking this too

https://github.com/python/cpython/issues/109534

Maybe related to this segfault I found on MacOS? https://github.com/python/cpython/issues/114653
I've been tracking this one: https://github.com/python/cpython/issues/109534, but there are multiple others raised in the cpython repo over on Github. Searching for asyncio or sslcontext shows multiple issues raised over the years with no fix in place.