Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Host contract: the runtime flips the PROCESS's SIGPIPE to SIG_IGN on the first proc_spawn (and on http bind) and never restores it; print ignores flush errors, so a pipeline into head runs to completion and exits 0

Đang mở
#1,151 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
operating-systems

Hướng nghiên cứu

Start with the probe files in ~/src/wt/briefs/conc-review/probes-{A,B,C}/ and inspect proc_install_sigpipe_ignore in src/builtins_host.c, http_early_bind/http_serve in src/ext_http.c, and print in src/builtins.c. Reproduce the pipeline behavior, then verify that writes no longer change the host's SIGPIPE disposition, print handles flush errors, and eigs_embed.h documents remaining process-global dispositions.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:runtime-vm bug

Found by the 2026-09-14 whole-runtime concurrency review (three independent reviewers, every finding below reproduced by execution on main @ a18deac unless marked reading). Probe files live in ~/src/wt/briefs/conc-review/probes-{A,B,C}/.

proc_install_sigpipe_ignore src/builtins_host.c:1437-1438 via pthread_once :1465; http_early_bind/http_serve do the same unconditionally (src/ext_http.c:604, :1792). print is fflush(stdout) with no error check (src/builtins.c:78-209).

Observed

p is proc_spawn of (["true"])
i is 0
loop while i < 200000:
    print of f"line {i}"
    i is i + 1

… | head -1: control (no spawn) rc=141 (SIGPIPE) in 0.03 s; with the spawn rc=0 in 0.59 s, stderr empty — 200k prints into a closed pipe, silently. For an embedder, the first subprocess or HTTP bind replaces the host's own SIGPIPE disposition process-wide; eigs_embed.h says nothing (SIGUSR1 is CLI-only, src/main.c:169-174).

Fix direction

Per-write suppression (MSG_NOSIGNAL on sockets; for pipes, block/unblock SIGPIPE around the write or use a save/restore) instead of a process-wide flip; make print check the flush and raise or exit on EPIPE; document the remaining process-global dispositions in eigs_embed.h.

Ngôn ngữ chính
C
Star
3
Fork
7
Merge trung bình
4 giờ 15 phút
Pull request đã merge (30 ngày)
106

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InauguralSystems/EigenScript

Tất cả issue của InauguralSystems/EigenScript

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.