Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

_io.BytesIO.getbuffer(): unshare_buffer: Assertion `self->exports == 0' failed #111174

Copy link
Copy link
@chgnrdv

Description

@chgnrdv
Issue body actions

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.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

Reactions are currently unavailable

Metadata

Metadata

Labels

topic-IOtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.