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
BUG(?): Tests print 'uh-oh, unmatched shift_free(ptr, 8) but allocated 720' #20289
Comments
It is not really a bug, the full test suite can't avoid running into these "warnings" for certain calls. Not sure if we could stop printing them somehow (by counting them instead?!). Maybe we should just start with changing the message to look less dangerous though. |
Yeah, I just found this comment
which links to a similar comment. If it is not problem, can the printed output be removed or suppressed somehow? Spurious output in the tests is a nuisance--a minor nuisance, maybe, but still a nuisance. |
I think we should change the calculation of the bytes-to-free to match the calculation of bytes-to-allocate. |
Just to be clear: the problem in the bytes-to-allocate is that the calculation is done in a loop, and if bytes-to-free uses |
Adding 1.22 milestone, but I don't think it is important enough to worry about with respect to an RC release. |
Agreed, not needed for RC1 - but the message should be removed for the final 1.22.0 release. It's just an |
See #15788 which is a more complete solution but is still in draft form. |
Pushing this off to 1.22.1. It isn't a blocker, just a bit annoying. It arrives when it arrives. |
Pushing off to 1.21.2. It is annoying, but not a blocker. |
I cleared the milestone. This is still a problem, but not a blocker of anything. @mattip do you have the intention of doing something about this someday? |
This should have been closed with the above linked PR. |
Describe the issue:
When I run the full test suite (main branch, Python 3.9.1 on Linux), the last few lines of output are:
The lines that begin with
uh-oh, unmatched shift_free
are from code generated in test_mem_policy.py.Is that output expected? It starts with "uh-oh", so it looks like it is indicating a bug.
Reproduce the code example:
Error message:
NumPy/Python version information:
1.22.0.dev0+1643.gbc087bb2b 3.9.1 (default, Dec 11 2020, 14:32:07)
[GCC 7.3.0]
The text was updated successfully, but these errors were encountered: