forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-av1/src/dumpio.rsClear filter

2026-10-23

Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23)

On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local
repository with all of its history. This commit restores the working tree
from the newest surviving copy, the host-c server lane mirror. That mirror
matches local main as of the testcut Phase 2 reports, including the tool
cache, the nextest fast profile and changed-crates.sh. The history before
this commit was not recovered.

2026-10-01

ec-av1 r2: label the pin site TEST_PIN, correct the pin/pin_reporting doc split, amend the sweep rowsAhmet Kaan Gümüş · 2d08a6d
ec-av1 r2: label the pin site TEST_PIN, correct the pin/pin_reporting doc split, amend the sweep rows

- the pin site label moves out of the EC_AV1_* env-var namespace (no env var
  of that name exists; EC_AV1_PIN is the scratch replay helper's) so a triager
  grepping the failure line is not sent to the wrong thing
- pin_reporting re-implements the length check rather than wrapping LoudDump
  (whose failure channel is panic!); say so where a reader would assume
  otherwise
- the h264/h265 rows are half-open, not closed: fs::write returning Ok does
  not guarantee the on-disk length
ec-av1: route every test-pin write through dumpio::LoudDumpAhmet Kaan Gümüş · f3fd848
ec-av1: route every test-pin write through dumpio::LoudDump

The self-pin sites in stream.rs wrote with `let _ = std::fs::write(..)`
and then named the path in the panic that followed ("stream pinned at
{}"), so an ENOSPC/EFBIG left a TRUNCATED stream at exactly the path the
reader was told to replay -- the same silent-truncation class as the
dump path, one hop later. dumpio gains pin() (fatal) and pin_reporting()
(same failure line, returned not panicked); msac's symtrace dump folds its
hand-rolled check into the same writer.
ec-av1: every dump site fails loudly on a short writeAhmet Kaan Gümüş · 286530d
ec-av1: every dump site fails loudly on a short write

All 11 dump write sites in the crate wrote through `let _ = f.write_all(..)`.
A full filesystem, a quota or an RLIMIT_FSIZE therefore left a SHORT file on
disk and nothing said so -- the artefact behind two full days of chasing a
"decoder nondeterminism" that reproduced bit-for-bit as a truncated frame
(lanes/unwritten-dep.report.md: frames 0..4 complete plus 13320192 bytes of
frame 5), and behind an empty dump read as instability.

New `dumpio::LoudDump`: the caller declares the byte count from the geometry it
already has (per-axis extents, u16-vs-u8 sample width), `finish()` checks it
against the file's own length on disk, and any shortfall -- or a failure to
create the file at all -- aborts with

  ec-av1 dump FAILED [EC_AV1_FINAL_DUMP] <path>: wrote <on-disk> of <owed>
  bytes: <reason>

Two sites cannot know a total length (EC_AV1_DUMP_TABLES and the ECDUMP symbol
stream are append-mode, whole-run files); they say "of an unknown number of
bytes" rather than declaring a number they would have to invent.

The written count is the file's MEASURED length, not what write_all confirmed:
under RLIMIT_FSIZE the kernel stores up to the cap and only then returns EFBIG,
so a naive acknowledged count reported "wrote 0" over a 30 720-byte file.

Gates: a real decode under a real RLIMIT_FSIZE now FAILS with the line above
(child process, SIGXFSZ ignored, asserted against the fragment's real length),
plus /dev/full, uncreatable-path, under-declared-length and append-unknown arms.
The success path is byte-identical: the hg fixture sweep reproduces
a26438168c / 8d7a43bc5f, 3/3 each, 18524160 B per frame.

0ee1edf403 is still NOT reproduced (plain 3/3, sentinel 3/3, concurrent reuse,
7 RLIMIT caps, 204 prefix shapes: all plain value or no match). It stays open --
a SIGKILLed process emits no line at all, so that shape is not ruled out. What
is now closed is the silent-truncation class: every truncating cap aborts loudly
instead of leaving an artefact.