This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fengjiang
Recipients fengjiang
Date 2021-01-28.02:24:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611800643.13.0.196440440542.issue43050@roundup.psfhosted.org>
In-reply-to
Content
Hi,we are transfering code from python2.7 to 3.7 and find that using threading.timer will cause memory leak. It works fine in python2.7 but not 3.7. To repreduce the problem, you can simply run the code below.

While True:
    timer = threading.Timer(5, None)
    timer.start()
    timer.cancel()

you will find the memory of progress increases rapidly
History
Date User Action Args
2021-01-28 02:24:03fengjiangsetrecipients: + fengjiang
2021-01-28 02:24:03fengjiangsetmessageid: <1611800643.13.0.196440440542.issue43050@roundup.psfhosted.org>
2021-01-28 02:24:03fengjianglinkissue43050 messages
2021-01-28 02:24:03fengjiangcreate