elfuse segfaults before its first vCPU exists under a 1.5 TiB RLIMIT_AS
Maintainer thường phản hồi trong vòng 3 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, macos
- Lĩnh vực
- operating-systems
Hướng nghiên cứu
Start with the startup trace around src/core/bootstrap.c:710 and inspect the code between build_linux_stack and hv_vcpu_create; the issue leaves the faulting instruction and whether Hypervisor.framework is responsible unresolved. Reproduce on macOS 26.4.1 with ulimit -v at 1.5 TiB, then compare with 6 TiB and macOS 27. Done means the fault is identified and elfuse either boots or exits with an error instead of segfaulting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
#448's test-rlimit-seed lane starts elfuse under a host ulimit -v, and at 1.5 TiB it exited 139 on the macOS 26.4.1 CI runner. Draft PR #457 found two separate crashes behind that; #458 has the full background and the table of runs. This issue is the one at 1.5 TiB, where guest memory is set up but boot never reaches the guest.
Intention
Under a host address-space limit that leaves too little room for a vCPU, elfuse should fail with an error and a non-zero exit, or boot, not segfault. The first step is to find what faults.
Evidence
Same #457 job and runner as #458: macOS 26.4.1 (25E253), Mac16,10 (M4), 24 GiB, ELFUSE_STARTUP_TRACE=1. Under ulimit -v 1.5 TiB, busybox true, --verbose busybox cat /proc/self/limits and test-proc-limits all exited 139, and so did the original lane case in 3 of 3 repeats and when run outside a command substitution. elfuse --version exited 0. At 6 TiB every run exited 0.
The slab fits and boot gets through build_linux_stack; the trace line for hv_vcpu_create (src/core/bootstrap.c:710) never appears:
startup primary_mmap 0.700 ms
startup cow_shm_upgrade 1.361 ms
startup hv_vm_map 2.560 ms
startup guest_init 4.695 ms
...
startup vdso_build 0.002 ms
startup build_linux_stack 0.011 ms
Segmentation fault: 11
At 6 TiB the same trace continues with startup hv_vcpu_create 0.437 ms and the guest runs.
hv_vcpu_create is wrapped in HV_CHECK, which prints a crash report when the call returns an error, and none was printed.
Not confirmed:
- Which instruction faults. The runner left no crash report under
~/Library/Logs/DiagnosticReportsfor these processes. - Whether the fault is inside Hypervisor.framework. The missing
HV_CHECKreport suggestshv_vcpu_createfaults rather than returns an error when the limit leaves it no room, but the code betweenbuild_linux_stackand that call is not ruled out. - Why this needs so much address space on macOS 26. On macOS 27 (M-series) the same build boots under 1.5 TiB.
Refs #448, #457, #458
- Ngôn ngữ chính
- C
- Star
- 275
- Fork
- 29
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 sysprog21/elfuse
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của sysprog21/elfuse
Issue tương tự
-
bug Component component: net
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RT-Thread/rt-thread#11913 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:docs kind:docs-drift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
InauguralSystems/EigenScript#1887 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Broken links in the docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
containers/crun#2391 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[WinReg] update to v12.0.0Đang mởcategory:port-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
type-bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày