Repository navigation
docs(ledger): GNU suite 83/83 — nameref residual proven to be GNU's own coproc reap race - #506
Merged
Merged
Conversation
…proven to be GNU's own coproc reap race The single residual stdout line (nameref11.sub:52, 'declare -r RO_PID' visible after coproc) is GNU Bash 5.3.0's own timing race, not a rubash divergence: - GNU vs itself, fresh process per run: 60/60 SLOW on ext4, 59/60 FAST / 1/60 SLOW on the harness's drvfs filesystem — GNU flips against itself on exactly the recorded baseline delta - where GNU is deterministic (ext4), its stdout AND stderr are byte-identical to rubash's; rubash emits the deterministic side - inside the frozen harness the line flips with GNU's coin: 2026-10-12 run 1 measured nameref 0, run 2 measured nameref 1 (159a160, identical to the 2026-09-30 baseline artifacts) Also records the 2026-10-12 full-suite re-run on origin/master 764b9dd (62 suites 0 raw diff; remaining raw diffs all inside the standing audited env/platform families, A/B byte-equal between 41de831 and 764b9dd) and the WINUXSH_ROOT host-pin scrub the harness now requires for reproducible measurements on this machine. Evidence: docs/nameref-suite-residual-gnu-race-20261012.md
This was referenced Oct 12, 2026
This was referenced Oct 13, 2026
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.
What
Closes the last ledger gap: 82/83 + 1 residual → 83/83 suites pass (README �Compatibility at a Glance�, EN + zh), with the residual attributed by proof, not assertion.
The residual, exactly
x
/
63
/
declare -a r=()
declare -r ROVAR="42"
declare -r ROVAR="42"
third_party/bash/tests/nameref11.sub
third_party/bash/tests/nameref11.sub
declare -n ref="x"
declare -r RO_PID
declare -r RO="x"
declare -r RO2="a"
2
2
2 line 52:
Recorded baseline: stdout
diff gnu.out rb.out=159a160 > declare -r RO_PID; GNU has one extra stderr line (line 52: declare: RO_PID: not found). GNU C source (execute_cmd.c:2365/2409-2414 coproc_setvars→ readonly refusal before binding;execute_cmd.c:2450 coproc_unsetvarsat reap time) gives the line no non-racy answer: whether the coproc child is reaped before the pre-waitdeclare -p RO_PIDis a pure latency race that GNU does not define.Proof (docs/nameref-suite-residual-gnu-race-20261012.md)
GNU 5.3.0 vs itself, fresh process per run, same machine:
11a12 > declare -r RO_PIDstandalone;159a160in harness form).CreateProcesscoproc child can never win a race decided within one builtin dispatch).NAME_PIDunbinding while the coproc lives — contradicting GNU�s alive-case behavior locked by [bug] declare -r RO PID + coproc on readonly name: rubash leaves the _PID var visible to declare -p (GNU does not) #352 regression tests.Also recorded (2026-10-12 full re-run on 764b9dd)
nameref 1(the race line), every other raw-diff suite inside the standing audited env/platform families (External argv for invalid-UTF-8 word bytes renders as GBK mojibake (was hidden by in-shell recho emulation) #141 UTF-16 argv: array/nquote4/new-exp; NTFS filename/attr: glob/test; locale: intl; host od: nquote; /dev/tty: history; signal table: trap/varenv; drvfs symlink: globstar; 2026-10-02 old accounts: cond/assoc/comsub-posix/vredir; timing jitter: read/trap/coproc).41de8319(old binary) and764b9dde— no drift from perf(executor): hot-path residue — test marks gate, word materialization once, assignment scan admission (rubash#242) #501/docs: repoint deleted COMPATIBILITY-STATUS.md references to the current ledger #502.WINUXSH_ROOTuser env var pins rubash�s POSIX root through WSL interop and polluted the first 2026-10-12 run (22 nonzero suites, dstack 50 etc.). Launch the harness withenv -u WINUXSH_ROOT -u RUBASH_ROOT -u __RUBASH_SHELL_ROOT wsl bash scripts/true-baseline.sh; the doc carries the A/B proof. Environment-bound, predates this PR, no harness change required.Verification
Docs-only change (README.md, README.zh-CN.md, one new evidence doc). No merge — owner review.