-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference leak regression with Python3.8a3 #80906
Comments
Much like bpo-9366 the same file can be used. This reference leaks according to Nuitka comparative testing: simpleFunction59: FAILED 129511 129512 leaked 1 def simpleFunction59():
a = 3
b = 5
return a
finally:
return a / b I would be guessing, that you are leaking the return value when returning again. |
Sorry, the two commits are related to bpo-36719 not to this issue. |
I wrote an unit test to be able to re-use regrtest memory leak hunter: import unittest
def simpleFunction59():
a = 1
try:
return a
finally:
return a
class Tests(unittest.TestCase):
def test_bug(self):
for _ in range(10):
simpleFunction59() I confirm that there is a leak: $ ./python -m test -R 3:3 test_bug
...
test_bug leaked [10, 10, 10] references, sum=30
... |
Let me work on this. |
@ victor, I have tried your example but I can not reproduce the leak as you did above. May be am missing something? I used some other tool and got this summary when I was investigating this:
================================= | =========== | ============ Am still investigating though. |
I am able to reproduce it finally. Run tests sequentially == Tests result: FAILURE == 1 test failed: Total duration: 220 ms |
This leak has been fixed by: commit f00828a (refs/bisect/bad)
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: