You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_lzma: test_refleaks_in_decompressor___init__() leaks 100 handles on Windows #78097
This seems leak some resource. But I'm not sure this lock contains refcnt on Windows.
PR 7827 checks for leaks of Windows handles, this issue is about Windows handles, not Python reference leaks. But a Windows lock may use a Windows handle internally, I don't know :-)
I four times tried to update this issue, and only the forth one was successful. Other attempts was failed because "Edit Error: someone else has edited this issue (nosy, components, versions)." This is an extreme case of race condition in real life.
Activity
vstinner commentedon Jun 20, 2018
Using my PR 7827, I saw that test_refleaks_in_decompressor___init__() of test_lzma leaks 100 handles on Windows.
Extract of the code:
The test comes from bpo-31787: commit d019bc8.
methane commentedon Jun 20, 2018
In _lzmamodule.c
This seems leak some resource. But I'm not sure this lock contains refcnt on Windows.
ZackerySpytz commentedon Jun 20, 2018
Have a look at bpo-23224 and PR 7822.
vstinner commentedon Jun 20, 2018
PR 7827 checks for leaks of Windows handles, this issue is about Windows handles, not Python reference leaks. But a Windows lock may use a Windows handle internally, I don't know :-)
vstinner commentedon Jun 20, 2018
It seems like test_bz2 has the same issue, but I'm not sure:
#7827 (comment)
serhiy-storchaka commentedon Jun 20, 2018
I four times tried to update this issue, and only the forth one was successful. Other attempts was failed because "Edit Error: someone else has edited this issue (nosy, components, versions)." This is an extreme case of race condition in real life.
vstinner commentedon Jun 23, 2018
New changeset 9b7cf75 by Victor Stinner in branch 'master':
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843)
9b7cf75
miss-islington commentedon Jun 23, 2018
New changeset efc6bf6 by Miss Islington (bot) in branch '3.7':
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843)
efc6bf6
vstinner commentedon Jun 23, 2018
New changeset 1094891 by Victor Stinner in branch '3.6':
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843) (GH-7872)
1094891
vstinner commentedon Jun 23, 2018
It seems like Python 2.7 is inaffected by the bug:
I fixed the leak in Python 3.6, 3.7 and master. I close the issue.