Repository navigation
Task #109: bisect zimg's Linux resize abort to graphengine f6211289 (report, repro, upstream zimg#245) - #260
Merged
StuartCameronCode merged 6 commits intoNov 24, 2026
Conversation
StuartCameronCode
force-pushed
the
stuart/109-zimg-master-e2e43d09-graphengine-91c6af4
branch
2 times, most recently
from
November 24, 2026 11:34
4ed0e30 to
4e1b3e9
Compare
…nd VapourSynth confirmation scripts; Linux workflow tmp_overrun.c builds zimg graphs through the C API as VapourSynth R78's resize does and measures writes outside the get_tmp_size() buffer. On macOS arm64 graphengine f6211289 is the first commit that overruns (every graph with error-diffusion dither); graphengine-fused-node-context.patch fixes it. The workflow repeats the bisect on Linux x64 (gcc 13, clang 18) and arm64, and runs repro.vpy through the aborting and the pinned rc3 bundles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… minimal upstream repro; dither check [vs-only] The copied wrapper found Python relative to its own directory, so every valgrind run failed to start (0 invalid writes meant nothing). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ount a Linux ASan error as an abort; keep failed build logs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on node's context out of tmp_size; engineering note, index row, CLAUDE.md bump rule Bisected on macOS arm64/x86_64 and Linux x64 (gcc 13, clang 18) and arm64: f6211289 is the first bad commit everywhere, graphengine HEAD still has it, and a one-line change (size the context of a node with no live rows) makes all 158 graphs clean. Bundle A's vspipe aborts 50/50 per error-diffusion conversion with valgrind's invalid write in begin_frame <- real_get_frame; B2 is clean. The upstream issue is drafted, not filed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ild.sh guard + run_cases.sh); workflow inputs through env; unused loop variable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
StuartCameronCode
force-pushed
the
stuart/109-zimg-master-e2e43d09-graphengine-91c6af4
branch
from
November 24, 2026 12:19
4e1b3e9 to
0ad4c37
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The upstream side of task #103's Linux abort ("double free or corruption" in VapourSynth R78's
vszimg::real_get_frame). This PR changes no product code and no build script. It adds an investigation report, the scripts and data behind it, and a Linux bisect workflow. The upstream bug is now reported as sekrit-twc/zimg#245.Finding
e2e43d09moved graphengine fromcb5b2ce1to91c6af4c. Within that range,f6211289("Exclude fused nodes from buffer sizing calculation") added an earlycontinueincompile_simulation_result. Thatcontinuealso skipscontext_sizeand thetmp_sizeaddition, so a fused node's context is left out ofget_tmp_size().tmp_sizebytes, so glibc aborts.cb5b2ce1…562889d3are clean.f6211289and every later commit, graphengine HEADe9b10267included, fail. In each case it is the same 36 error-diffusion graphs out of 158 (the conversions VapourSynth makes, at 96x64, 98x64 and 720x480, progressive and per field).init_context/begin_frame, 0 bytes after the region). The bad deps bundle's own vspipe confirms it: 50 of 50 runs abort per conversion.f6211289.What's in it
docs/reports/task-109-graphengine-tmp-overrun/: the report (index.html), the upstream issue text, andscripts/:vsresize.cpp(tmp_overrun.c) and a minimal one (upstream_repro.c)data/holds the recorded results..github/workflows/zimg-graphengine-bisect.yml: the Linux bisect over three toolchains, plus a vspipe confirmation against the two deps-build artifacts.ZIMG_COMMIT/ZIMG_GRAPHENGINE_COMMITonly to an upstream commit that fixes this. Check a candidate withbuild.shinguardmode plusrun_cases.shovercases.tsv; its 36 error-diffusion cases must not abort.Testing
data/.make_cases.pyregeneratescases.tsvbyte for byte.bash -nandshellcheck -S warning.flutter test test/zimg_pin_test.dartpasses (3/3).bisect.sh, which can't test an arbitrary zimg commit). The workflow inputs now go throughenv:.Notes
zimg-graphengine-bisect.yml(~1–2 h), because the branch touches the workflow. Harmless; cancel it if the runner time isn't wanted.data/.🤖 Generated with Claude Code