Skip to content

MemoryError raised in a subinterpreter is silently ignored #162156

Open

Description

@aisk

Bug report

from concurrent import interpreters

interp = interpreters.create()
print(interp.exec("raise MemoryError"))  # None

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

  1. cmaloney commented on Nov 17, 2026

    @cmaloney
    Contributor

    I think this is a duplicate of gh-151126. To fix this comprehensively there are a lot of paths in the interpreters code where memory allocation errors aren't propagated currently but need to be; needs a comprehensive design.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions