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
regrtest.py: spurious leaks with -R option #59837
Comments
With the -R option, test_buffer.py needs an additional warm-up for |
I know the title says spurious, but is there a way to reproduce this at all? Can I run a certain suite N times or something? How did you find the problem? |
I'm attaching a test case. You're right, in test_buffer it's Today I realized that the "leak" always occurred with format code x = randrange(*fmtdict[mode][char])
if char == 'c':
x = bytes(chr(x), 'latin1') After some head scratching I looked into regrtest.py and found So, you should be able to reproduce the issue: $ ./python -m test -uall -R 2:2 test_pseudo_leak
[1/1] test_pseudo_leak
beginning 4 repetitions
1234
....
test_pseudo_leak leaked [8, 8] references, sum=16
1 test failed:
test_pseudo_leak
[151225 refs] |
Should we go all the way and also explicitly fill the small int cache? Integers 0-255 should be initialized already, but I'm not sure |
New changeset dc18d73e67a5 by Stefan Krah in branch 'default': |
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: