-
-
Notifications
You must be signed in to change notification settings - Fork 32k
test_intern
in test_sys
leaks negative references in free-threaded build
#122420
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
Labels
3.13
bugs and security fixes
3.14
bugs and security fixes
topic-free-threading
type-bug
An unexpected behavior, bug, or error
Comments
cc @encukou |
I think this is just an issue with cpython/Lib/test/libregrtest/refleak.py Lines 144 to 148 in 046670c
We now account for those two references in cpython/Objects/unicodeobject.c Lines 15518 to 15527 in 046670c
|
colesbury
added a commit
to colesbury/cpython
that referenced
this issue
Jul 29, 2024
…leak.py The `_PyUnicode_Intern*` functions already adjust the total refcount, so we don't want to readjust it in refleak.py.
encukou
pushed a commit
that referenced
this issue
Jul 29, 2024
…GH-122421) The `_PyUnicode_Intern*` functions already adjust the total refcount, so we don't want to readjust it in refleak.py.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 29, 2024
…eak.py (pythonGH-122421) The `_PyUnicode_Intern*` functions already adjust the total refcount, so we don't want to readjust it in refleak.py. (cherry picked from commit ac8da34) Co-authored-by: Sam Gross <[email protected]>
encukou
pushed a commit
that referenced
this issue
Jul 30, 2024
…leak.py (GH-122421) (GH-122430) The `_PyUnicode_Intern*` functions already adjust the total refcount, so we don't want to readjust it in refleak.py. (cherry picked from commit ac8da34) Co-authored-by: Sam Gross <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.13
bugs and security fixes
3.14
bugs and security fixes
topic-free-threading
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
The
test_intern
test "leaks" -2 references in the free-threaded build. This isn't caught by the refleak build bots because negative refleaks are treated as "suspicious" rather than "failing". This is a problem because the negative "leak" can hide a real leak somewhere else.I think there's likely something wrong with the accounting for references in the
immortalize=1
case inintern_common
because this shows up in the free-threaded build, but not the default build.Linked PRs
The text was updated successfully, but these errors were encountered: