Skip to content

[bug] ruby-build --help 无限挂死(120s 超时;$0 修复后仍挂) #185

Closed

Description

@caomengxuan666

现象

ruby-build --help 在 rubash 下挂死(rc=124)。#171 修复(wt/m3-argv0 1e4d5762)后 $0/abs_dirname 自定位已正确,挂点移到更深处。

已排查

环境

fixture:D:/repo/rubash/target-ecosys5/tools/ruby-build;对照 GNU 5.3.0 正常打印 usage。产物:wt/m3-argv0 target/argv0-probe/rbhelp.out(空,超时)。建议带 bashdb/LLDB 定位挂点行。

Activity

  1. added
    bug
    on Sep 26, 2026
  2. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    已在 7674ac4 部分修复(412e9a35)并关闭:根因=非解析死循环而是 dolbrace 状态机 O(行数×${数×缓冲) 二次方(820 行 492s debug)。dolbrace 改 char 切片版后 ruby-build --help 从 120s+ kill 变 rc=0、-n 从 kill 到 ~80s。剩余热点在 captain-exclusive continuation.rs——已验证的 patch 存 rbenv-184/continuation-captain-diff.patch(应用后 -n 13.6s),captain 后续审批应用。partial 诚实标注。

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions