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
Thread locks in zlib module may go wrong in rare case #85901
Comments
The code in zlib module:
Setting Moreover, modify |
Thanks! ✨ 🍰 ✨ |
Thanks for review. |
Sorry, I found an omission. The previous PRs fixed the bug in these methods: zlib.Compress.compress()
zlib.Decompress.decompress() This method also has this bug, fix in PR29587 (main/3.10) and PR29588 (3.9-): zlib.Decompress.flush()
Attached file `test_flush.py` can reliably reproduce the bug. This time I carefully checked bz2/lzma/zlib modules, it should be no problem anymore. Gregory P. Smith should understand these codes, add him to nosy list. |
Thanks malin! |
Thanks for review! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: