Skip to content

gh-161863: Fix possible NULL deref in _PyErr_Display - #161979

Open
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-161863
Open

sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-161863

Conversation

@sobolevn

@sobolevn sobolevn commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Continues the work of #161860

Before:

» ./Programs/_freeze_module crash crash.py crash.h
Exception ignored in the internal traceback machinery:
SystemError: null argument to internal routine
SystemError: Codecs are not initialized

After:

» ./Programs/_freeze_module crash crash.py crash.h
SystemError: Codecs are not initialized

The credit for this change goes to @vstinner, thanks a lot for helping with the debug! It was very helpful :)

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