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] LINENO intra-body fidelity in respawned function bodies needs per-function source-span transport #2202
[bug] LINENO fidelity inside respawned function bodies: GNU reports each body command's own source line (and a re-entered function's definition lines), but rubash's respawn transports only one seed line per body — the call-site line for functions, the body-start line for text bodies — so mid-body $LINENO values in async/coproc/procsub children diverge from GNU.
Root cause (from the #2058 census, item 7): the respawn prelude re-renders the function body via bash_command_sequence_text, which collapses the original line structure; no environment stamp at the spawn boundary can restore intra-body lines after that. Closing this needs per-function source-span transport (carry each function's original source span through the respawn stamp and re-seed LINENO per command from it).
What #2058 already fixed (not part of this issue): start-point LINENO for async-subshell / group-& / coproc bodies is now exact (first-statement probes match GNU), function call-line reporting inside async-fn children is exact, and the deliberate call-site seed for re-entered functions (compound_exec.rs, cf. #1761 note) stays as the most useful available value until span transport exists.
Deferred by main-session ruling: the remaining gap is intra-body only, the seeds in place are deliberate, and the fix is a transport-format change — post-1.5.0 work. Regression seeds: the #2058 census probes (probe_FX_asyncfn.sh family in the cluster workdir) carry the GNU expectations per shape.
Activity
caomengxuan666 commentedon Oct 31, 2026
解冻(用户 2026-10-31 指令:长冻 deferred 集全开,与本波残差一并修)。已移除 deferred 标签。
归宿:修复簇——respawn 时 per-function source-span 传输与逐命令 LINENO 重播种。
caomengxuan666 commentedon Oct 31, 2026
范围收敛(用户 2026-10-31 指示:1.5.0 不再扩容、尽快发版):本单移出 1.5.0 发布门。已派的工作继续完成、PR 照常走验证,能在冻结前干净落地的照常合并,落不进的顺延,不阻塞发版。
Refs #2202: re-seed BASH_FUNC-imported bodies at birth too
Merge pull request #2327 from unixwin/fix/2202-lineno-span
caomengxuan666 commentedon Oct 31, 2026
Fixed by PR #2327 (merged).
fix(exec): root-command line-span transport for respawn TEXT bodies (…
Refs unixwin#2202: per-function source-span transport for respawn LINENO
Refs unixwin#2202: pins for intra-body LINENO in respawned function b…
docs(design): root-command line-span transport for respawn TEXT bodie…