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] Input procsub body starts lazily at first read instead of at expansion (no true concurrency) #1583
An input process substitution body is not started when the expansion happens; it is materialized lazily at first consumption. GNU forks the body at expansion time so it runs concurrently with the main script. The body's side effects (and any interaction with the main script through other channels) therefore happen at the wrong time — or never, if the main script exits or blocks before first read.
Measured (Linux, debug build of master ec279df tree vs self-compiled GNU bash 5.3.20)
GNU: started=YES (body already running concurrently), done_at_exec=NO, read times out.
rubash: started=NO (body not started until first consumption), read also times out (read-side timing is compensated by the timing judge — the divergence is the body's start time and true concurrency, not the read result).
Mechanism candidate (from the executor architecture audit)
Procsub payload endpoints are materialized lazily on first read instead of being spawned at the expansion point. Fix direction: eager start with a real child at expansion; existing procsub bookkeeping already tracks pid/status reaping.
Source: executor architecture audit (arch-audit B, candidate C4), probe p9c_procsub_live.sh, double-run on oracle and current build.
Activity
Merge master a9385b4 into fix6/pipe-diag (pipe-diag integration)