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

test_import: test_concurrency() leaks references and memory on Windows #107086

Closed
vstinner opened this issue Jul 23, 2023 · 2 comments
Closed

test_import: test_concurrency() leaks references and memory on Windows #107086

vstinner opened this issue Jul 23, 2023 · 2 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@vstinner
Copy link
Member

vstinner@WIN C:\victor\python\main>python -m test test_import -R 3:3 -v
(...)
test_import leaked [23, 23, 34] references, sum=80
test_import leaked [23, 21, 34] memory blocks, sum=78
test_import failed (reference leak) in 40.3 sec

test_concurrency() alone reproduces the issue:

vstinner@WIN C:\victor\python\main>python -m test test_import -R 3:3 -v -m test_concurrency 
(...)
test_import leaked [40, 40, 40] references, sum=120
test_import leaked [40, 40, 40] memory blocks, sum=120

By the way, test_typing also leaks:

vstinner@WIN C:\victor\python\main>python -m test test_typing -R 3:3
(...)
test_typing leaked [1, 1, 1] memory blocks, sum=3
@vstinner vstinner added the type-bug An unexpected behavior, bug, or error label Jul 23, 2023
@vstinner
Copy link
Member Author

Note: On an old buildbot failure (19 days ago), I also saw a test_grammar leak, but I cannot reproduce it.

Build: https://buildbot.python.org/all/#/builders/920/builds/447

test_grammar leaked [2, 2, 2] references, sum=6
test_grammar leaked [2, 2, 2] memory blocks, sum=6

@vstinner
Copy link
Member Author

Duplicate of #106176

I also found commit 3325f05 with a git bisect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant