cpython/Modules/_zstd
Miss Islington (bot) 0a8940c204
[3.15] gh-160549: Fix crash when freeing a busy multi-threaded ZstdCompressor (GH-160550) (#160637)
gh-160549: Fix crash when freeing a busy multi-threaded ZstdCompressor (GH-160550)

ZSTD_freeCCtx() frees a dictionary loaded with ZSTD_CCtx_loadDictionary()
before it stops the worker threads.  Make libzstd wait for unfinished
jobs before freeing the compression context of a ZstdCompressor that
uses worker threads and a ZstdDict.

Works around https://github.com/facebook/zstd/issues/4862
(cherry picked from commit 23a5ba1c93)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
2026-10-25 06:46:30 +00:00
..
clinic [3.15] gh-150285: Fix too long docstrings in the zstd module (GH-150291) (GH-150335) 2026-05-24 16:24:34 +03:00
_zstdmodule.c gh-128341: Use _Py_ABI_SLOT in stdlib modules (#145770) 2026-03-24 17:47:55 +00:00
_zstdmodule.h GH-136975: Emend a spelling error (algorthm -> algorithm) (#136999) 2025-07-22 13:48:58 +00:00
buffer.h gh-139877: Use PyBytesWriter in pycore_blocks_output_buffer.h (#139976) 2025-10-14 10:03:55 -07:00
compressor.c [3.15] gh-160549: Fix crash when freeing a busy multi-threaded ZstdCompressor (GH-160550) (#160637) 2026-10-25 06:46:30 +00:00
decompressor.c [3.15] gh-160535: Keep the ZstdDict alive until the zstd context is freed (GH-160536) (#160635) 2026-10-25 06:13:47 +00:00
zstddict.c [3.15] gh-160535: Keep the ZstdDict alive until the zstd context is freed (GH-160536) (#160635) 2026-10-25 06:13:47 +00:00
zstddict.h GH-136975: Emend a spelling error (algorthm -> algorithm) (#136999) 2025-07-22 13:48:58 +00:00