Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-109894: Fix initialization of staticMemoryError in subinterpreter#110911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ericsnowcurrently merged 4 commits intopython:mainfromchgnrdv:fix-memory-error-crash-in-subinterp
Oct 23, 2023
Merged

gh-109894: Fix initialization of staticMemoryError in subinterpreter#110911

ericsnowcurrently merged 4 commits intopython:mainfromchgnrdv:fix-memory-error-crash-in-subinterp
Oct 23, 2023

Conversation

@chgnrdv
Copy link
Contributor

@chgnrdvchgnrdv commentedOct 15, 2023
edited by bedevere-appbot
Loading

Fixes#109894

  • setinterp.static_objects.last_resort_memory_error.args to empty tuple to avoid crash onPyErr_Display() call
  • allow_PyExc_InitGlobalObjects() to be called on subinterpreter init

Fixes#109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init
@chgnrdv

This comment was marked as outdated.

Copy link
Member

@ericsnowcurrentlyericsnowcurrently left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

chgnrdv reacted with hooray emoji
@ericsnowcurrently
Copy link
Member

Thanks,@chgnrdv!

@ericsnowcurrentlyericsnowcurrently added the needs backport to 3.12only security fixes labelOct 23, 2023
@miss-islington-app
Copy link

Thanks@chgnrdv for the PR, and@ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 23, 2023
…erpreter (pythongh-110911)FixespythonGH-109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init---------(cherry picked from commit47d3e2e)Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
@bedevere-app
Copy link

GH-111238 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelOct 23, 2023
@chgnrdv
Copy link
ContributorAuthor

@ericsnowcurrently thanks for review :)

ericsnowcurrently reacted with thumbs up emoji

ericsnowcurrently pushed a commit that referenced this pull requestNov 28, 2023
…terpreter (gh-110911) (gh-111238)FixesGH-109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init---------(cherry picked from commit47d3e2e)Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…erpreter (pythongh-110911)Fixespython#109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init---------Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…erpreter (pythongh-110911)Fixespython#109894* set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call* allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init---------Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ericsnowcurrentlyericsnowcurrentlyericsnowcurrently approved these changes

@iritkatrieliritkatrielAwaiting requested review from iritkatrieliritkatriel is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Segfault when printingMemoryError raised throughPyErr_NoMemory() from subinterpreter

2 participants

@chgnrdv@ericsnowcurrently

[8]ページ先頭

©2009-2025 Movatter.jp