-
-
Notifications
You must be signed in to change notification settings - Fork 32k
_io.BytesIO.getbuffer()
: unshare_buffer: Assertion `self->exports == 0' failed
#111174
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
Comments
cc @serhiy-storchaka as author of |
Docs for |
The cause is that empty bytes objects are shared across the interpreter. So |
… BytesIO (pythonGH-111210) (cherry picked from commit 9da98c0) Co-authored-by: Serhiy Storchaka <[email protected]>
… BytesIO (pythonGH-111210) (cherry picked from commit 9da98c0) Co-authored-by: Serhiy Storchaka <[email protected]>
…y BytesIO (GH-111210) (GH-111315) (cherry picked from commit 9da98c0) Co-authored-by: Serhiy Storchaka <[email protected]>
…y BytesIO (GH-111210) (GH-111314) (cherry picked from commit 9da98c0) Co-authored-by: Serhiy Storchaka <[email protected]>
Thanks Radislav for the report and Serhiy for the fix! |
Crash report
What happened?
Output:
Reproduced on 3.8 and 3.11-3.13.
CPython versions tested on:
3.8, 3.11, 3.12, CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.13.0a1+ (heads/main:11312eae6e, Oct 22 2023, 02:44:38) [GCC 10.2.1 20210110]
Linked PRs
The text was updated successfully, but these errors were encountered: