LockableFiles.__del__ creates uncollectable garbage including connected sockets
Bug #335180 reported by
Michael Hudson-Doyle
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Running this code:
>>> while 1:
... b = bzrlib.
... del b
... gc.collect()
will eventually run you out of file descriptors. Looking in gc.garbage reveals lots of socket._fileobject objects. I'm not _completely_ sure why, but commenting out LockableFiles.
Related branches
To post a comment you must log in.
This got into 1.14, I think. It's landed, anyway.