-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-111049: Fix crash during garbage collection of the BytesIO buffer object #111221
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
gh-111049: Fix crash during garbage collection of the BytesIO buffer object #111221
Conversation
serhiy-storchaka
commented
Oct 23, 2023
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Segfault during garbage collection with GzipFile + failed urllib3 request on 3.12.0 #111049
When you're done making the requested changes, leave the comment: |
…ffer-gc' into crash-bytesio-getbuffer-gc
@erlend-aasland I do not understand, what exactly changes did you request. Could you please explain it in more details? |
Thank you for your suggestion @erlend-aasland. I have made the requested changes; please review again. |
I think this needs to be in a comment by itself, looks like the bot didn't remove the label. |
no, the bot is malfunctioning at the moment: |
Any movement here? It would be lovely to get this fix into 3.12.1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the XXX from the comments as per PEP-8:
Ensure that your comments are clear and easily understandable to other speakers of the language you are writing in.
Python coders from non-English speaking countries: please write your comments in English, unless you are 120% sure that the code will never be read by people who don’t speak your language.
XXX is neither clear, easily understandable, nor english; please remove it.
@serhiy-storchaka Can you please remove the instances of |
0c693c0
to
621345b
Compare
I decided to remove them at all. I tried to silence errors, but they serve as indication of programming error, similar to ResourceWarning. When memoryview is explicitly released or used as a context manager, this never happens. |
This comment was marked as outdated.
This comment was marked as outdated.
GH-113096 is a backport of this pull request to the 3.12 branch. |
…uffer object (pythonGH-111221) (cherry picked from commit bb36f72) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>