-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Segfault deallocating a ContextVar
built with str
subclass
#132002
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
extension-modules
C modules in the Modules dir
type-crash
A hard crash of the interpreter, possibly with a core dump
Comments
I know what happens. Thanks for the report! |
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Apr 2, 2025
sobolevn
added a commit
that referenced
this issue
Apr 2, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Apr 2, 2025
pythonGH-132003) (cherry picked from commit ab2a3dd) Co-authored-by: sobolevn <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Apr 2, 2025
pythonGH-132003) (cherry picked from commit ab2a3dd) Co-authored-by: sobolevn <[email protected]>
This was referenced Apr 2, 2025
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Apr 2, 2025
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
3.14
new features, bugs and security fixes
extension-modules
C modules in the Modules dir
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
Creating a
ContextVar
with an instance of a subclass ofstr
leads to a segfault during its deallocation:Backtrace:
Found using fusil by @vstinner.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux, Windows
Output from running 'python -VV' on the command line:
Python 3.14.0a6+ (heads/main:be2d2181e62, Mar 31 2025, 07:30:17) [GCC 11.4.0]
Linked PRs
ContextVar
on unhashablestr
subtype #132003ContextVar
on unhashablestr
subtype (GH-132003) #132007ContextVar
on unhashablestr
subtype (GH-132003) #132008The text was updated successfully, but these errors were encountered: