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
[bug] declare -r RO PID + coproc on readonly name: rubash leaves the _PID var visible to declare -p (GNU does not) #352
GNU 5.3.0 stdout: declare -r RO (only RO listed at the end); rubash stdout: declare -r RO_PID + declare -r RO — rubash keeps RO_PID visible after the failed coproc, GNU's coproc cleanup leaves no RO_PID to list. Error lines also attach to different line numbers (GNU reports the cannot-unset at line 3, rubash at line 4 — artifacts attached).
GNU C owner: builtins/coproc.def (coproc setup/unset of the _PID companion) + builtins/declare.def declare -p listing path.
Artifacts: target/issue-suites/results/gnusweep3/orphan/case/nameref11.; minimal target/issue-suites/results/gnusweep3/probes/min/m19-coproc-readonly.
Locked and classified by wt21/resid21 (65a67c4c, master d5d6642): the issue's original repro is ALREADY byte-parity on current master (coproc_unset_vars port of execute_cmd.c:2450 landed earlier). The residual m5/m6 (immediate $X_PID after two coprocs) is a pure child-exit latency race — with both coprocs alive GNU also shows the pid (m8 agrees on both shells), and rubash polls at every GNU-equivalent point (eval.c:355 per command, the reap loop, the wait path); Windows ~30ms spawn latency loses the race. 5 regression tests lock the deterministic windows. Platform-bound timing, not a semantics gap.
rubash stdout is now byte-identical to WSL GNU Bash 5.3.0 (declare -r RO_PID from line 3; after wait only declare -r RO, with declare: RO_PID: not found on stderr), and the stderr line numbers match GNU exactly (line 2 RO: readonly variable, line 4 RO: cannot unset: readonly variable, line 5 declare: RO_PID: not found). rc 1 on both sides.
Stability: 20/20 consecutive runs byte-identical to GNU — the RO_PID visibility race documented in COMPATIBILITY-STATUS (2026-09-25 nameref timing residual) no longer reproduces. The 2026-10-02 full ledger keeps a 5-line nameref residue from the same family (RO_PID appearing in a declare -r listing under timing pressure inside the suite), tracked there as the coproc-reap timing residual, not this issue's cross-suite divergence.
Probe artifacts: target/issue-suites/results/wt42-verify/i352.{sh,gnu.out,gnu.err,rb.out,rb.err}. Closing as fixed.
Verified fixed on master by the wt42/rebaseline lane (20/20 stable, stdout/stderr/rc byte-identical to WSL GNU 5.3.0) — closing per the lane's verification (the fix had landed without the issue being closed).
Activity
gnusweep3: GNU-syntax deep-water wave 3 — orphan-sub harvest + 8 cons…
test(#352): lock coproc readonly/_PID reap lifecycle parity; classify…
caomengxuan666 commentedon Sep 30, 2026
Locked and classified by wt21/resid21 (65a67c4c, master d5d6642): the issue's original repro is ALREADY byte-parity on current master (coproc_unset_vars port of execute_cmd.c:2450 landed earlier). The residual m5/m6 (immediate $X_PID after two coprocs) is a pure child-exit latency race — with both coprocs alive GNU also shows the pid (m8 agrees on both shells), and rubash polls at every GNU-equivalent point (eval.c:355 per command, the reap loop, the wait path); Windows ~30ms spawn latency loses the race. 5 regression tests lock the deterministic windows. Platform-bound timing, not a semantics gap.
caomengxuan666 commentedon Oct 2, 2026
Verified fixed on master (2026-10-02 full-rebaseline lane, dc3e799 worktree build). The issue's exact reproducer:
rubash stdout is now byte-identical to WSL GNU Bash 5.3.0 (
declare -r RO_PIDfrom line 3; afterwaitonlydeclare -r RO, withdeclare: RO_PID: not foundon stderr), and the stderr line numbers match GNU exactly (line 2RO: readonly variable, line 4RO: cannot unset: readonly variable, line 5declare: RO_PID: not found). rc 1 on both sides.Stability: 20/20 consecutive runs byte-identical to GNU — the RO_PID visibility race documented in COMPATIBILITY-STATUS (2026-09-25 nameref timing residual) no longer reproduces. The 2026-10-02 full ledger keeps a 5-line nameref residue from the same family (RO_PID appearing in a
declare -rlisting under timing pressure inside the suite), tracked there as the coproc-reap timing residual, not this issue's cross-suite divergence.Probe artifacts:
target/issue-suites/results/wt42-verify/i352.{sh,gnu.out,gnu.err,rb.out,rb.err}. Closing as fixed.docs(wt42): 2026-10-02 full-rebaseline ledger + section 29 (dc3e799)
caomengxuan666 commentedon Oct 2, 2026
Verified fixed on master by the wt42/rebaseline lane (20/20 stable, stdout/stderr/rc byte-identical to WSL GNU 5.3.0) — closing per the lane's verification (the fix had landed without the issue being closed).
fix(nameref): unbraced `$ref` to an `arr[@]' cell takes "$@" word bou…
fix(quotearray): raw-token -v subscript path — assoc["]"] keys surviv…