Skip to content

[perf] splits_unquoted no-IFS short-circuit reverted: Windows-only exp snapshot divergence #995

Closed

Description

@caomengxuan666

What: the splits_unquoted_expanded_word early-false gate (default IFS + no space/tab/newline/glue/guard bytes) from #992 was reverted before merge after the Windows-only upstream_suite_slice_snapshots (exp suite, +6 lines vs golden) failed twice deterministically (495 vs 501 lines), while Linux runs of all 13 suites were byte-identical vs base. Bisect proved it: declare-fast-path revert still red, splits-gate revert green. Gain without the gate is unchanged (~15% on the interleave loop), so #992 merged without it. Open question: which input makes the gate (false) disagree with the full function (true) using only Windows-reachable expanded bytes. Suspects checked and cleared: empty+unset-IFS (repro identical on all three binaries), raw-byte-marker sentinel via printf shapes (identical). Needs a Windows repro or a mechanical differential sweep (gate predicate vs full function) over adversarial inputs. Do not re-land without the exp golden green on Windows.

Activity

  1. caomengxuan666 commented on Oct 22, 2026

    @caomengxuan666
    MemberAuthor

    Root cause found by mechanical differential fuzzing (gate predicate vs real field_split_values, 40k adversarial inputs x 5 IFS states): the gate skipped EMPTY expansions, but an unquoted empty expansion collapses 1 field -> 0 (word vanishes). Data-dependent faces (empty command substitution etc.) then diverged — visible only on Windows CI because the triggering empties come from platform-specific captured output. Fix (!expanded.is_empty()) re-landed in #1002 with a permanent soundness net (splits_gate::soundness, ~0.2s, zero violations over the corpus).

  2. caomengxuan666 commented on Oct 22, 2026

    @caomengxuan666
    MemberAuthor

    重落地由 #1002 交付(empty-word exclusion 修正 #992 门 + splits_gate 4 万输入差分网),CI goldens 零失败(本跑确认)。关闭。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions