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 pitrou
Recipients pitrou
Date 2009-11-08.00:00:37
SpamBayes Score 0.00043251438
Marked as misclassified No
Message-id <1257638440.73.0.268077668125.issue7282@psf.upfronthosting.co.za>
In-reply-to
Content
When you use an RLock from a thread which wasn't created through the
high-level `threading` API (but, for example, using
thread.start_new_thread()), the RLock creates a DummyThread object by
calling current_thread(), and that DummyThread is immortal (as well as
its attributes etc.). This implementation wart can easily lead to
reference leaks for unsuspecting users.

One simple solution is not to call current_thread() in RLock, but use
get_ident() instead. Patch attached.
History
Date User Action Args
2009-11-08 00:00:40pitrousetrecipients: + pitrou
2009-11-08 00:00:40pitrousetmessageid: <1257638440.73.0.268077668125.issue7282@psf.upfronthosting.co.za>
2009-11-08 00:00:38pitroulinkissue7282 messages
2009-11-08 00:00:38pitroucreate