Skip to content

[bug] sourcing ble.sh --noattach parses fully but never terminates (rc=124 at 90-300 s) — GNU sources in ~10 s and exits rc=1 #245

Closed

Description

@caomengxuan666

Corpus: ble.sh nightly-2026-09-27 sha256 4b76374a… (corpus2 re-run after the #215 lane fixes). Companion to #244.

Reproducer:

rubash -c '. ./ble.sh --noattach'    # bounded 90 s
bash  -c '. ./ble.sh --noattach'     # WSL GNU 5.3.0

Artifacts: target/issue-suites/results/corpus2/results/ble/source.rubash.* (empty, rc 124), source.gnu.* (empty, rc 1), n.rubash.err (#244's syntax error under -n; source mode bypasses it because the driver consumes the definition as data).

Suspects (not diagnosed): the 29,601-line file is dominated by function definitions and eval-heavy initialization; profiling needed to separate (a) quadratic re-scan of the accumulated script text by the incremental reader (resumable brace-scan cache was added in 9bf2df9 for exactly this class) and (b) a genuine hang (readline/raw-mode probe or bind loop waiting on a console that is not there under -c).

Classification: rubash-caused (GNU completes; identical file). Not fixing in the #214-#217 lane — parse gate (-n) is tracked separately in #244; this issue owns the exec/perf surface.

Activity

  1. added a commit that references this issue on Sep 27, 2026
  2. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    已修复并合入 master(commit b20fb6a7,lane wt5/ble;GNU 引用与矩阵验证见提交:#244 词中 {} 不再是分隔符(syntax.h:29-30 两表均无)+函数名取任意 WORD;#245 算术 ((...<<=...)) 不再误判 heredoc(parse.y:3727 parse_dparen 先于重定向分支)——ble.sh source 终止且 rc=1 与 GNU 一致;#246 arrayfunc.c:454/498 无条件转数组(5.3.0 与 5.2.21 同行为)。ble.sh -n 推进到 28570 的新阻塞已开 #255。感谢报告!

  3. added
    bug
    P1-high
    on Oct 17, 2026
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

    P1-highbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions