-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect argument type for str()
crashes the interpreter
#122888
Labels
Comments
pschanely
added
the
type-crash
A hard crash of the interpreter, possibly with a core dump
label
Aug 10, 2024
Note that the crash only occurs on debug builds. |
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Aug 10, 2024
Thanks, I submitted a fix. The issue goes back to at least 3.13.0b2 but I didn't look for the exact culprit. On release builds it throws a SystemError instead. When pure Python code raises SystemError it is almost always a bug. |
Marking as a release blocker to make sure this gets merged before the next 3.13 RC. |
JelleZijlstra
added a commit
that referenced
this issue
Aug 12, 2024
github-project-automation
bot
moved this from Todo
to Done
in Release and Deferred blockers 🚫
Aug 12, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 12, 2024
Fixes pythonGH-122888 (cherry picked from commit 53ebb62) Co-authored-by: Jelle Zijlstra <[email protected]>
JelleZijlstra
added a commit
that referenced
this issue
Aug 12, 2024
blhsing
pushed a commit
to blhsing/cpython
that referenced
this issue
Aug 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Crash report
What happened?
Using a byte string for the encoding parameter of
str()
results in a crash (instead of the expected TypeError):Here is the output I get on macos, 3.13.0b4:
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Output from running 'python -VV' on the command line:
Python 3.13.0b4 (main, Jul 24 2024, 12:21:52) [Clang 15.0.0 (clang-1500.3.9.4)]
Linked PRs
The text was updated successfully, but these errors were encountered: