GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — bpo-32604: Fix reference leak in select module by vstinner · Pull Request #20600 · python/cpython Conversation
|
|
@corona10 @shihai1991: Would you mind to review this fix? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I tried to see if, with this patch, I could solve the refleaks we have been discussing @vstinner on subinterpreters but I can still see the leaks. Am I missing something? Looks like you said you got a success on your end.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Which commit did you try? Did you rebase the commit? I used the commit 9d17cbf. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have run your test in my vm, it have been fixed, thanks. $ ./python -m test -R 3:3 test_subinterpreters == Tests result: SUCCESS == 1 test OK. Total duration: 465 ms |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Well I 've run the test code on my local and I detect the current master branch is leaked
and this PR fixes the issue.
def test_bpo_32604(self): code = f"""import select a = select.poll() """ ret = test.support.run_in_subinterp(code) self.assertEqual(ret, 0)
Thanks for the work @vstinner
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I talked to Joannah in private and she just used the wrong command to test the fix :-)
Thanks for this nice manual test! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes, I confirmed with the correct command and this fixes the leak. Thanks @vstinner |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.