Title: `_io.BytesIO.getbuffer()`: unshare_buffer: Assertion `self->exports == 0' failed · Issue #111174 · python/cpython · GitHub
Open Graph Title: `_io.BytesIO.getbuffer()`: unshare_buffer: Assertion `self->exports == 0' failed · Issue #111174 · python/cpython
X Title: `_io.BytesIO.getbuffer()`: unshare_buffer: Assertion `self->exports == 0' failed · Issue #111174 · python/cpython
Description: Crash report What happened? import io f = io.BytesIO() a = f.getbuffer() b = f.getbuffer() Output: python: ./Modules/_io/bytesio.c:112: unshare_buffer: Assertion `self->exports == 0' failed. Aborted (core dumped) Reproduced on 3.8 and 3....
Open Graph Description: Crash report What happened? import io f = io.BytesIO() a = f.getbuffer() b = f.getbuffer() Output: python: ./Modules/_io/bytesio.c:112: unshare_buffer: Assertion `self->exports == 0' failed. Aborte...
X Description: Crash report What happened? import io f = io.BytesIO() a = f.getbuffer() b = f.getbuffer() Output: python: ./Modules/_io/bytesio.c:112: unshare_buffer: Assertion `self->exports == 0' failed....
Opengraph URL: https://github.com/python/cpython/issues/111174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`_io.BytesIO.getbuffer()`: unshare_buffer: Assertion `self-\u003eexports == 0' failed","articleBody":"# Crash report\n\n### What happened?\n\n```python\nimport io\nf = io.BytesIO()\na = f.getbuffer()\nb = f.getbuffer()\n```\nOutput:\n```\npython: ./Modules/_io/bytesio.c:112: unshare_buffer: Assertion `self-\u003eexports == 0' failed.\nAborted (core dumped)\n```\n\nReproduced on 3.8 and 3.11-3.13.\n\n### CPython versions tested on:\n\n3.8, 3.11, 3.12, CPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.13.0a1+ (heads/main:11312eae6e, Oct 22 2023, 02:44:38) [GCC 10.2.1 20210110]\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-111210\n* gh-111314\n* gh-111315\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/chgnrdv","@type":"Person","name":"chgnrdv"},"datePublished":"2023-10-21T23:51:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/111174/cpython/issues/111174"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a550efe-8889-214d-c929-5236d02a09b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 838C:2ECA08:2CEBC02:3CF9236:6A545456 |
| html-safe-nonce | d55adfc36be6c10bca6f29d4daa3bea683b5a365d68c06d90b0a0814ee06f6bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzhDOjJFQ0EwODoyQ0VCQzAyOjNDRjkyMzY6NkE1NDU0NTYiLCJ2aXNpdG9yX2lkIjoiMTMzNTEzMjQ0MDIwMTgxMTAzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2cb1b098e3c988f8847ac3c8eb19be3a8751b2398c28fae741e5c6b897f87511 |
| hovercard-subject-tag | issue:1955700665 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/111174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14e5e22e3888f48f2e1b62d19bd9d95e01ec38abed8baf3cdb3d35f42732f8bf/python/cpython/issues/111174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14e5e22e3888f48f2e1b62d19bd9d95e01ec38abed8baf3cdb3d35f42732f8bf/python/cpython/issues/111174 |
| og:image:alt | Crash report What happened? import io f = io.BytesIO() a = f.getbuffer() b = f.getbuffer() Output: python: ./Modules/_io/bytesio.c:112: unshare_buffer: Assertion `self->exports == 0' failed. Aborte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chgnrdv |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width