FreeBSD 15.1 and lower have a linker bug that affects process

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

@luite đang làm issue này rồi.

Từ ngày 23/10/2026.

  • #387 của @luite — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/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ệ
haskell
Lĩnh vực
backend, operating-systems

Hướng nghiên cứu

Read the process code that selects between posix_spawn and fork, then check how it detects FreeBSD versions and review the linked FreeBSD linker bug. The issue proposes falling back to fork on versions older than 15.2; done means affected versions use that fallback while newer versions retain the posix_spawn path.

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

Mô tả

Several people have reported GHC crashing after spawning a child process on FreeBSD:

The reason is that process is affected by a bug in the FreeBSD linker: https://github.com/freebsd/freebsd-src/commit/1e370f038778e16c4b31f8992dda339d429e5cb8 / https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295991 . I think that means that the fix will be in 15.2

The bug is a stack overflow in the dynamic linker which corrupts the memory of the parent process. Workaround is setting env vars to disable lazy binding/filtering: LD_BIND_NOW=1 LD_LOADFLTR=1, or patching process to make FreeBSD fall back to using fork instead of posix_spawn on FreeBSD older than 15.2

I'll open PR shortly, that disables the posix_spawn path on affected FreeBSD versions, falling back to fork

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

  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 haskell/process

Tất cả issue của haskell/process

Issue tương tự

Thêm issue về Haskell

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.