You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
read: byte-served path skips the -t timed judge (and invalidates the stream arrival table) #3293
P3-low低:优化、文档、远期规划,有机会再做area:readread builtin; stdin/EOF; -n/-N/-d/-t; fd0 ownershipbugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
On the byte-served read path introduced for the joined-delimiter fix (PR #3290, #3212), the -t timed judge is not re-entered: with a slow producer, a timed read that GNU answers with a timeout instead returns data late, and once the mirror rewrite has served a stream, the arrival table (matches_len) for subsequent reads on that stream is invalidated, so the timed judge is silently off for the rest of the stream.
Evidence (captain review of PR #3290, box, GNU bash 5.3.20 oracle)
Shape: -t 1 with a slow producer. GNU: the read times out and exits. Head tree: the second read returns data at 3039 ms.
The mirror rewrite additionally invalidates the per-stream arrival table, so later reads on the same stream lose the timed judge entirely (silent, no diagnostic).
Delimitation against neighbours:
The live-pipeline EOF gating (~2010 ms before the first record with a single-byte delimiter) is a pre-existing property of the mirror architecture, present identically on base and head — NOT part of this issue.
Reconnect the timed judge on the byte-serve path: timed reads must consult the same arrival/deadline machinery as the legacy serves, and a mirror-served record must not invalidate the arrival bookkeeping for the rest of the stream.
Destination: the read-family wave, together with #3191 and #3291. Regression pin must assert timing behaviour on a slow-producer shape (bounded tolerances, per the #3284 precedent that timing pins are admissible when the divergence is seconds-scale).
Closed by PR #3302 (squash 95013b9b70d866e4e84bb18781fb0b63eb6884c4, merged 2026-11-10T23:41:10Z), captain-verified after merge (PR state MERGED, master tip is the merge commit, squash diff exactly the reviewed 9 files +1321/−175).
Evidence:
Captain review PASS: the byte serve is reconnected to the timed judge with the arrival-table rebase. The pin's discriminating power was independently upheld — the discriminator is rc + assigned values (base deterministically rc=0 with [a979] vs expected rc=142 with [a9]), load-independent with 2 s margins on both sides; the reviewer re-ran the pin shape twice under concurrent load on the head binary with byte-identical outputs. The ~2010 ms live-pipeline EOF gating stays out of scope and is not a regression.
Merge round on final head ffd057ea (Simular box, own clone, per-stem verdicts): pin issue32934 passed / 0 failed; base fail-first 2 pass / 2 red, the reds exactly the defect cells.
No regression: issue3212 14/14; lib bilateral vs master 1233/0/4 on both sides with empty failure-name sets; five legs rc=0 (-D warnings own domain at -j 1); final diff zero libc:: hits; CI 10 success + 1 skipping, zero red, ledger canary green.
P3-low低:优化、文档、远期规划,有机会再做area:readread builtin; stdin/EOF; -n/-N/-d/-t; fd0 ownershipbugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
Activity
read: byte-domain unit accounting across the read serves (#3302)
caomengxuan666 commentedon Nov 10, 2026
Closed by PR #3302 (squash
95013b9b70d866e4e84bb18781fb0b63eb6884c4, merged 2026-11-10T23:41:10Z), captain-verified after merge (PR state MERGED, master tip is the merge commit, squash diff exactly the reviewed 9 files +1321/−175).Evidence:
[a979]vs expected rc=142 with[a9]), load-independent with 2 s margins on both sides; the reviewer re-ran the pin shape twice under concurrent load on the head binary with byte-identical outputs. The ~2010 ms live-pipeline EOF gating stays out of scope and is not a regression.ffd057ea(Simular box, own clone, per-stem verdicts): pinissue32934 passed / 0 failed; base fail-first 2 pass / 2 red, the reds exactly the defect cells.-D warningsown domain at-j 1); final diff zerolibc::hits; CI 10 success + 1 skipping, zero red, ledger canary green.