Skip to content

gh-130221: fix crash when accessing module state while interp is finalizing in asyncio#130245

Merged
kumaraditya303 merged 1 commit into
python:mainfrom
kumaraditya303:crash-dealloc
Feb 19, 2025
Merged

gh-130221: fix crash when accessing module state while interp is finalizing in asyncio#130245
kumaraditya303 merged 1 commit into
python:mainfrom
kumaraditya303:crash-dealloc

Conversation

@kumaraditya303

@kumaraditya303 kumaraditya303 commented Feb 18, 2025

Copy link
Copy Markdown
Contributor

All the call sites already ensure that the task is a native task as such the assertion is redundant and as it is not safe to access module late late when python is finalizing, remove the redundant assertion altogether.

@kumaraditya303

Copy link
Copy Markdown
Contributor Author

cc @asvetlov as you reviewed the original fix in #129840

@kumaraditya303 kumaraditya303 merged commit 5f00501 into python:main Feb 19, 2025
@kumaraditya303 kumaraditya303 deleted the crash-dealloc branch February 19, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant