`estimated_compression_context_size()` raises SIGFPE with `enable_ldm=True
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 64/100
Research direction
Start by running the provided Python reproducer for estimated_compression_context_size() with enable_ldm=True, then trace that entry point through the Python C extension and its Zstandard parameter handling. Done means the call no longer terminates the process and instead returns a size estimate or raises a Python exception for these parameters.
Written by the indexing model from the issue text.
Description
Summary
Calling estimated_compression_context_size() on compression parameters constructed with enable_ldm=True terminates Python with SIGFPE.
Versions
zstandard 0.25.0, CPython 3.12.3, Ubuntu 24.04.4 x86_64, glibc 2.39.
Reproducer
import zstandard as zstd
params = zstd.ZstdCompressionParameters.from_level(3, enable_ldm=True)
params.estimated_compression_context_size()
This one exited with SIGFPE (signal 8; shell status 136).
I found this while fuzzing Python C extension modules.
I would expect a size estimate or a Python exception rather than process termination.
- Dominant language
- C
- Stars
- 642
- Forks
- 116
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from indygreg/python-zstandard
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
indygreg/python-zstandard#335 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
indygreg/python-zstandard#295 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
indygreg/python-zstandard#334 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 54/100
indygreg/python-zstandard#333 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
indygreg/python-zstandard#332 ·
Maintainers usually reply within 2 days
All issues in indygreg/python-zstandard
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 94/100