cpython/Modules/_zstd
Miss Islington (bot) 27703ce715
[3.14] gh-160549: Fix crash when freeing a busy multi-threaded ZstdCompressor (GH-160550) (#160638)
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:39:41 +00:00
..
clinic [3.14] gh-150285: Fix too long docstrings in the zstd module (GH-150291) (GH-150335) (#150421) 2026-05-25 16:05:41 -07:00
_zstdmodule.c [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00
_zstdmodule.h [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00
buffer.h [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00
compressor.c [3.14] gh-160549: Fix crash when freeing a busy multi-threaded ZstdCompressor (GH-160550) (#160638) 2026-10-25 06:39:41 +00:00
decompressor.c [3.14] gh-160535: Keep the ZstdDict alive until the zstd context is freed (GH-160536) (#160636) 2026-10-25 06:12:31 +00:00
zstddict.c [3.14] gh-160535: Keep the ZstdDict alive until the zstd context is freed (GH-160536) (#160636) 2026-10-25 06:12:31 +00:00
zstddict.h [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00