Skip to content

REPL crash when trying to allocate more than sys.maxsize bytes #1279

@ddiminnie

Description

@ddiminnie

If (either by sloppy programming [on the user's part] or some other mischance) an instruction requires more than sys.maxsize bytes to execute the REPL crashes. If I had to hazard a guess as to what is causing the problem I would suggest the trouble occurs when trying to compute the number of bytes to report in the MemoryLimit exception. (Note that I have no idea what is actually going on here...)

Here are the simplest steps to reproduce the problem I've managed to come up with in the short time I've messed with this:
>>> ''.join('a' for i in range(1024))
>>> _*2**29

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy