Maybe the C code uses the global `errno` on illumos
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
- Lĩnh vực
- backend, operating-systems
Hướng nghiên cứu
Read cbits/posix/runProcess.c, cbits/posix/fork_exec.c, and cbits/posix/posix_spawn.c alongside the Solaris condition in process.cabal. Check how illumos exposes errno with and without _REENTRANT, then confirm whether the affected objects reference the global symbol in a threaded build. Done means establishing whether process calls can report another thread’s errno and identifying a supported fix.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
I am new to Haskell and to illumos, so I may well have this wrong.
I use GHC 9.10.3 from SmartOS pkgsrc, with process 1.6.26.1. SmartOS is illumos.
On illumos, errno is per thread only when _REENTRANT, or a similar macro, is defined before <errno.h>. Without it, errno is one global int that belongs to the first thread.
runProcess.c, fork_exec.c and posix_spawn.c in cbits/posix include <errno.h> without it. elfdump -s shows the global errno in those three objects, and master looks the same.
So in the threaded RTS, an error from a process call made on another OS thread may be reported wrongly. I have not seen it happen. I only read the code and the symbols.
Maybe cc-options: -D_REENTRANT under if os(solaris) in process.cabal would help, but you know best.
Thank you very much for your time and for process.
- Ngôn ngữ chính
- Haskell
- Star
- 91
- Fork
- 93
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của haskell/process
-
HAVE_PIPE2 at compile time but not at runtime causes segfault on macOSCó thể đã có người làm @alt-romes đã nhận 3 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
posix_spawn falls back to fork() when create_group = True due to HAVE_DECL_ macro mismatchCó thể đã có người làm @lei-jia-xing đã nhận 11 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
FreeBSD 15.1 and lower have a linker bug that affects processCó thể đã có người làm @luite đã nhận 43 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
Tất cả issue của haskell/process
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
haskell/bytestring#730 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
seal-harness/seal-harness#399 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
add previously overlooked rulesĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
reflex-frp/reflex#563 ·