8000 REPL crash when trying to allocate more than sys.maxsize bytes · Issue #1279 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
REPL crash when trying to allocate more than sys.maxsize bytes #1279
Closed
@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

    0