Skip to content

gh-151763: Fix _interpreters.capture_exception crash on memory errors#152013

Open
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-151763-OOM-0031
Open

gh-151763: Fix _interpreters.capture_exception crash on memory errors#152013
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-151763-OOM-0031

Conversation

@sobolevn

@sobolevn sobolevn commented Jun 23, 2026

Copy link
Copy Markdown
Member

It actually had two possible crashes:

  1. Rereferencing NULL in _PyXI_FreeExcInfo(info);
  2. No setting memory exception on PyMem_RawCalloc failure

@sobolevn sobolevn requested a review from ZeroIntensity June 23, 2026 14:32
@sobolevn sobolevn added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant