Skip to content

[bug] /dev/tcp 重定向在 cat 面双开连接:问候数据丢失 + RST + rc=1(accepts=2 坐实) #1950

Closed

Description

@caomengxuan666

RC 审计 A-F5 子项,冻结尖 842e0e2 坐实(预筛「/dev/tcp 全灭」系滞后二进制假象;L1 exec 读写往返、L3 exec 只读、L4b quick-read 三 ladder 尖上正常)。

缺陷:cat < /dev/tcp/host/port 与 $(cat < /dev/tcp/…) 两面,一次重定向开两条连接(多 accept 服务端计数 accepts=2 坐实):预开面吃掉单 accept 服务发来的问候数据,真读面随后被 RST——结果 = 数据丢失 + Connection reset by peer + rc=1。GNU 同形 rc=0 且拿到数据。

机理线索:与 #1895(netopen 分裂点)相邻——预开/分类探针不应真占连接;若占了,必须把同一连接交给读面。

归宿:统一层 S4/S6 后续批(与 #1935–#1937 同批)。证据 ~/workspace/rc-150/audit/confirm-a/。

Activity

  1. added
    bug
    gnu-baseline
    P2-medium
    area:fd
    on Oct 28, 2026
  2. added a commit that references this issue on Oct 29, 2026
    f570849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2-mediumarea:fdbuggnu-baseline

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions