Skip to content

BytesIO and StringIO issues with large sizes #160781

Closed

Description

Activity

  1. self-assigned this
    on Oct 27, 2026
  2. added
    type-bugAn unexpected behavior, bug, or error
    3.14bugs and security fixes
    3.15bugs and security fixes
    3.16new features, bugs and security fixes
    on Oct 27, 2026
  3. added 7 commits that reference this issue on Oct 29, 2026
  4. added a commit that references this issue on Oct 29, 2026
  5. added a commit that references this issue on Oct 29, 2026
  6. nascheme commented on Oct 30, 2026

    @nascheme
    Member

    FYI, I saw this error yesterday on some of the buildbots (32-bit platforms maybe):

    ERROR: test_issue141311 (test.test_memoryio.PyBytesIOTest.test_issue141311)----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/buildbot/buildarea/pull_request.ware-debian-x86.installed/build/target/lib/python3.14/test/test_memoryio.py", line 571, in test_issue141311
        self.assertEqual(memio.getvalue(), b"")
                         ~~~~~~~~~~~~~~^^  File "/buildbot/buildarea/pull_request.ware-debian-x86.installed/build/target/lib/python3.14/_pyio.py", line 901, in getvalue
        return bytes(self._buffer)
    OverflowError: byte string is too large
    

    Perhaps this has already been resolved but I'm posting this in case it's still failing.

  7. StanFromIreland commented on Oct 30, 2026

    @StanFromIreland
    Member

    @nascheme thanks for letting us know, however, was it before or after 8dbc313 (can you please send a link to the run?).

  8. nascheme commented on Oct 30, 2026

    @nascheme
    Member

    Here's one of the failed builds, git revision c866403. It seems that 8dbc313 is not in that branch.

    https://buildbot.python.org/#/builders/1285/builds/822

  9. StanFromIreland commented on Oct 30, 2026

    @StanFromIreland
    Member

    I'd presume it was fixed by it, if it pops up with that commit please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.14bugs and security fixes3.15bugs and security fixes3.16new features, bugs and security fixesOS-linuxOS-windowsextension-modulesC modules in the Modules dirtopic-IOtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions