viona ring lease vs vmm write lock stopping propolis-server shutdown
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
- 45/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ệ
- rust
- Lĩnh vực
- backend, operating-systems
Hướng nghiên cứu
Start by tracing the reported shutdown hang through the propolis-server threads and kernel stack frames, especially viona_ring_lease_expire_cb, vmm_lease_block, and vmm_write_lock. The report does not identify a source file or a reproduction, so first locate these entry points in the repository and check existing tests for lease and shutdown behavior. Done means identifying whether this lock and lease interaction can block shutdown and documenting or fixing the cause with a regression test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I took over dublin and started a clean-slate, but caught this on its way down: a VM that had been shut down the day prior and was stuck in shutting_down.
Where: propolis-server on dublin sled BRM23230010
Host OS: Oxide Helios Version helios-3.0.24447 64-bit
Omicron: ae22d91 / 415ecfc
BRM23230010 # zoneadm list -cv | head -3
ID NAME STATUS PATH BRAND IP
0 global running / ipkg shared
17 oxz_propolis-server_3b3a4f45-cff5-4742-a045-8bc4ca3f242e shutting_down ... omicron1 excl
BRM23230010 # ps -fz oxz_propolis-server_3b3a4f45-cff5-4742-a045-8bc4ca3f242e
UID PID PPID C STIME TTY TIME CMD
root 28831 1 0 Nov 13 ? 0:00 zsched
root 29488 1 0 Nov 13 ? 2:54 /opt/oxide/propolis-server/bin/propolis-server run ...
BRM23230010 # pstack 29488
pstack: cannot examine 29488: no such process or core file
Kernel stacks (0t29488::pid2proc | ::walk thread | ::findstack -v):
stack pointer for thread fffffd3a27ef33c0 (propolis-server/8 [tokio-rt-vmm]): fffff8673cae3970
[ fffff8673cae3970 _resume_from_idle+0x130() ]
fffff8673cae39a0 swtch+0x139()
fffff8673cae3a40 turnstile_block+0x279(0, 0, fffffd3ad5cf4220, fffffffffc01c680, 0, 0)
fffff8673cae3ab0 mutex_vector_enter+0x378(fffffd3ad5cf4220)
fffff8673cae3ae0 viona_ring_lease_expire_cb+0x23(fffffd3ad5cf4218)
fffff8673cae3b40 vmm_lease_block+0xfd(fffffd3a2c5a1600)
fffff8673cae3b80 vmm_write_lock+0x60(fffffd3a2c5a1600)
fffff8673cae3c00 vmm_drv_ioport_hook+0x83(fffffd3a4b306d58, c210, fffffffff7d88660, fffffd3ad63533c0, fffffd3ad6353418)
fffff8673cae3c30 viona_ioc_set_notify_ioport+0x6e(fffffd3ad63533c0, c210)
fffff8673cae3cc0 viona_ioctl+0x509(9f00000004, 564323, c210, 202003, fffffd3ad3ec9e18, fffff8673cae3e18)
fffff8673cae3d00 cdev_ioctl+0x3f(9f00000004, 564323, c210, 202003, fffffd3ad3ec9e18, fffff8673cae3e18)
fffff8673cae3d50 spec_ioctl+0x55(fffffd3ad6096e80, 564323, c210, 202003, fffffd3ad3ec9e18, fffff8673cae3e18)
fffff8673cae3de0 fop_ioctl+0x40(fffffd3ad6096e80, 564323, c210, 202003, fffffd3ad3ec9e18, fffff8673cae3e18)
fffff8673cae3f00 ioctl+0x144(15, 564323, c210)
fffff8673cae3f10 sys_syscall+0x17d()
stack pointer for thread fffffd3a4d07e800 (propolis-server/22): fffff8673f85cd30
[ fffff8673f85cd30 _resume_from_idle+0x130() ]
fffff8673f85cd60 swtch+0x139()
fffff8673f85cd90 cv_wait+0x70(fffffd3ad8c9f0c6, fffffd38cc9bb600)
fffff8673f85cdd0 exitlwps+0x134(0)
fffff8673f85ce50 psig+0x507()
fffff8673f85cf00 post_syscall+0x76d(4, fffffd3a035ab400)
fffff8673f85cf10 0xfffffffffbc00594()
stack pointer for thread fffffd3a63dc84a0 (propolis-server/34 [viona_rx_0_fffffd3ad5cf4000]): fffff8673dd21d80
[ fffff8673dd21d80 _resume_from_idle+0x130() ]
fffff8673dd21db0 swtch+0x139()
fffff8673dd21de0 cv_wait+0x70(fffffd3a2c5a171c, fffffd3a2c5a16f0)
fffff8673dd21e40 vmm_drv_lease_sign+0xbb(fffffd3a4b306d58, fffffffff7d89ee0, fffffd3ad5cf4000)
fffff8673dd21e70 viona_ring_lease_renew+0x2e(fffffd3ad5cf4000)
fffff8673dd21eb0 viona_worker_rx+0x81(fffffd3ad5cf4000, fffffd3ad63533c0)
fffff8673dd21ef0 viona_worker+0x10f(fffffd3ad5cf4000)
fffff8673dd21f00 thread_start+0xb()
stack pointer for thread fffffd3a8bd31400 (propolis-server/35 [viona_tx_1_fffffd3ad5cf4218]): fffff86746eb4d60
[ fffff86746eb4d60 _resume_from_idle+0x130() ]
fffff86746eb4d90 swtch+0x139()
fffff86746eb4dc0 cv_wait+0x70(fffffd3a2c5a171c, fffffd3a2c5a16f0)
fffff86746eb4e20 vmm_drv_lease_sign+0xbb(fffffd3a4b306d58, fffffffff7d89ee0, fffffd3ad5cf4218)
fffff86746eb4e50 viona_ring_lease_renew+0x2e(fffffd3ad5cf4218)
fffff86746eb4eb0 viona_worker_tx+0x135(fffffd3ad5cf4218, fffffd3ad63533c0)
fffff86746eb4ef0 viona_worker+0x223(fffffd3ad5cf4218)
fffff86746eb4f00 thread_start+0xb()
I'm not sure what triggered it and unfortunately the clean-slate seems to have killed it off before I could gather any more info. But it looked enough like a potential deadlock that it seemed worth filing.
- Ngôn ngữ chính
- Rust
- Star
- 326
- Fork
- 49
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 10
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 oxidecomputer/propolis
-
development
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
oxidecomputer/propolis#1157 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement storage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
oxidecomputer/propolis#1011 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
oxidecomputer/propolis#1265 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
development
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
oxidecomputer/propolis#1259 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug guest-os
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
oxidecomputer/propolis#1258 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của oxidecomputer/propolis
Issue tương tự
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedĐang mởunconfirmed possible issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jerney-nexus/epikrise#364 ·
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 62/100
Yeachan-Heo/gajae-code#8058 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug daemon
Độ 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 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày