Skip to content
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

TypeAliasType.__module__ can segfault #104879

Closed
JelleZijlstra opened this issue May 24, 2023 · 0 comments
Closed

TypeAliasType.__module__ can segfault #104879

JelleZijlstra opened this issue May 24, 2023 · 0 comments
Assignees
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes topic-typing type-bug An unexpected behavior, bug, or error

Comments

@JelleZijlstra
Copy link
Member

JelleZijlstra commented May 24, 2023

>>> ns = {}
>>> exec("type A = int", ns, ns)
>>> ns["A"].__module__
zsh: segmentation fault  ./python.exe

I will propose a fix.

Linked PRs

@JelleZijlstra JelleZijlstra added type-bug An unexpected behavior, bug, or error topic-typing 3.12 bugs and security fixes 3.13 bugs and security fixes labels May 24, 2023
@JelleZijlstra JelleZijlstra self-assigned this May 24, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 24, 2023
)

(cherry picked from commit fe77a99)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
JelleZijlstra added a commit that referenced this issue May 24, 2023
…104890)

(cherry picked from commit fe77a99)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes topic-typing type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants