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
Memory leak when pickling ndarrays with NumPy 1.16.0 #12793
Comments
Simpler reproducing code example:
This prints |
A number of memory leak fixes have gone in recently but this is still failing. @seberg Thoughts? |
I do not remember touching this area, my guess it has to do with the Pickle protocol 5 support changes, so pinging @pitrou. But I can probably track it down later in any case. |
It does look like 64a855f is the culprit here, because I can simplify the test to calling |
Correction: when using protocol 5 the reference count does not go up, only for 0 - 4. |
Yes, it seems the original code has reference leaks unfortunately. Those leaks should be fixed in PR #12748 (at least this present one is). |
@pitrou makes this more important, can you add that refcount example as a test there? I guess we need the whole thing anyway for the next 1.16 release. |
@seberg Done. |
Reproducing code example:
Output on NumPy 1.15.4
Output on NumPy 1.16.0
The text was updated successfully, but these errors were encountered: