[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-06 Thread STINNER Victor
STINNER Victor added the comment: I close this issue as a duplicate of bpo-37788. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Adam
Adam added the comment: I filed a bug for this a few weeks ago, and then found another ticket about the same issue before: https://bugs.python.org/issue37788 My ticket: https://bugs.python.org/issue39074 The memory leak was from a change introduced about 6 months ago:

[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please include the script as an attachment or text so that it will be easy to view them. The script as below from the attachment : import threading import time import tracemalloc def callback(): pass tracemalloc.start() for i in

[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Matthew Smith
Matthew Smith added the comment: This issue also affects me, pyth. I tried it out with various combinations of sleep, and durations of tasks, but what I noticed is that threading_shutdown_locks continues to grow at each iteration. for i in range(10): for j in range(10):

[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Mathias
New submission from Mathias : Hi, I think there is an issue with memory allocating with threading.Timer in 3.8.0/3.8.1. When I run the attached code in Python 3.7.3 I get a memory consumption of approx. 10 MB. If I run the same code with python 3.8.0 or 3.8.1, it keeps consuming memory