-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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 Py_XDECREFs in property #115618
Labels
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
type-crash
A hard crash of the interpreter, possibly with a core dump
Comments
serhiy-storchaka
added
3.11
only security fixes
type-crash
A hard crash of the interpreter, possibly with a core dump
3.12
bugs and security fixes
3.13
bugs and security fixes
labels
Feb 17, 2024
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 17, 2024
@serhiy-storchaka Literally came here to report the same issue :-) It affects versions 3.10 and below, but does not cause a crash since python 3.12 since None became an immortal object. |
serhiy-storchaka
added a commit
that referenced
this issue
Feb 17, 2024
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 17, 2024
…ds (pythonGH-115619) (cherry picked from commit 090dd21) Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Feb 17, 2024
…ds (pythonGH-115619) (cherry picked from commit 090dd21) Co-authored-by: Serhiy Storchaka <[email protected]>
This was referenced Feb 17, 2024
serhiy-storchaka
added a commit
that referenced
this issue
Feb 17, 2024
serhiy-storchaka
added a commit
that referenced
this issue
Feb 17, 2024
For the benefit of anyone finding this issue, here's a minimal reproduction example: p = property()
for _ in range(10000): p.getter(None) results in
|
woodruffw
pushed a commit
to woodruffw-forks/cpython
that referenced
this issue
Mar 4, 2024
diegorusso
pushed a commit
to diegorusso/cpython
that referenced
this issue
Apr 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
When
property
methodsgetter()
,setter()
ordeleter()
are called with None as argument, they callPy_XDECREF()
on it. Now, when None is immortal, it perhaps have no effect, but in earlier Python versions it could have bad consequences. It was not reported earlier only because nobody normally calls them with None.Linked PRs
The text was updated successfully, but these errors were encountered: