Observed memory leak in ssl library: Python 3.14 GC issue
Bug report
Bug description:
I already opened a bug on urllib3 for this issue, it looks that may application using MSAL for Python library (which relies on requests , which relies on urllib3, which relies on ssl) is leaking memory when being upgraded from Python 3.13 to Python 3.14 (I tested 3.14.{0, 1, 2})
The details are explained in the urllib3 ticket including outputs from memray and it points to ssl package (precisely ssl.SSLContext.load_verify_locations), see: urllib3/urllib3#3738
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
- gh-142516: Memory leak in SSLContext #143585
- gh-142516: fix reference leaks in
ssl.SSLContextobjects #143685 - [3.14] gh-142516: fix reference leaks in
ssl.SSLContextobjects (GH-143685) #145075 - [3.13] gh-142516: fix reference leaks in
ssl.SSLContextobjects (GH-143685) (GH-145075) #148371 - gh-142516: Forward-port generational GC #148687
- [3.14] Forward-port generational GC (GH-142516) #148694