You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I failed to reproduce the issue on Windows with this command:
vstinner@WIN C:\victor\python\main>python -m test -v test_regrtest -m test.test_regrtest.ArgsTestCase.test_huntrleaks -v --forever
(...)
0:17:19 load avg: 0.23 [1371] test_regrtest
test_huntrleaks (test.test_regrtest.ArgsTestCase.test_huntrleaks) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.676s
OK
^C
Activity
vstinner commentedon Sep 25, 2023
Windows x64: https://github.com/python/cpython/actions/runs/6299520741/job/17100438819?pr=109831
vstinner commentedon Sep 25, 2023
I cannot reproduce the issue on Linux. I stopped the stress test after 19 minutes:
vstinner commentedon Sep 25, 2023
I failed to reproduce the issue on Windows with this command:
I interrupted the test after 17 minutes.
vstinner commentedon Sep 25, 2023
To reproduce the issue on Windows, create the file
Lib\test\test_leak.py:And run the script
leak.py:vstinner commentedon Sep 25, 2023
And more the system less determistic by running the following command in a different terminal:
Example of the bug on Windows:
vstinner commentedon Sep 25, 2023
I can still reproduce the leak even if I disable the bytecode specialization.
vstinner commentedon Sep 25, 2023
"before" variables when the bug occurs:
"before" variables when the bug does not occur:
Only rc_before is different: 94 333 (ok) => 94 336 (bug).
vstinner commentedon Sep 25, 2023
Oooooooh, the issue comes from regrtest logger: from WindowsLoadTracker thread.
pythongh-109739: regrtest disables load tracker if refleak
pythongh-109739: regrtest disables load tracker if refleak
pythongh-109739: regrtest disables load tracker if refleak
pythongh-109739: regrtest disables load tracker if refleak
pythongh-109739: regrtest disables load tracker if refleak
gh-109739: regrtest disables load tracker if refleak (#109871)
pythongh-109739: regrtest disables load tracker if refleak (python#10…
pythongh-109739: regrtest disables load tracker if refleak (python#10…