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
C Unpickler memory leak via memo #85594
Comments
I'm not familiar with the workings of GC/pickle, but it looks like the traverse code in the C Unpickler omits a visit to the memo, potentially causing a memory leak? |
The leak demonstrated in the attachment is, to my understanding, caused by memoizing the closure returned from the My proposed patch visits every entry in the memo table. Pre-patch run of valgrind on leak_pickler.py: ==20339== HEAP SUMMARY: Post-patch run of valgrind on leak_pickler.py: ==20880== HEAP SUMMARY: |
Thank you for your contribution, @kale-smoothie. |
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: