Bitcoin crash when -ipcconnect and -disablewallet are used together
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
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- distributed-systems
Hướng nghiên cứu
Tái hiện sự cố bằng cách khởi động bitcoin-node với -disablewallet, sau đó khởi động bitcoin-gui với -ipcconnect=auto mà không có tùy chọn đó. Đọc doc/developer-notes.md#wallet và so sánh ngữ cảnh liên quan trong #19460 và #19461. Hoàn thành khi tổ hợp lỗi của người vận hành này không còn khiến bitcoin-node bị sự cố.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Originally posted by @jimhashhq in https://github.com/bitcoin/bitcoin/issues/19461#issuecomment-2756056144
As promised in #10102 comments, I tried out -ipcconnect using rebased pr-19641 (thank you); everything seemed to work consistent with my new understanding of multiprocess interactions (thanks again). I did notice one issue:
- If
bitcoin-nodeis run with -disablewalletsubsequent start of abitcoin-guiwith-ipcconnect=auto, but without-disablewalletwill crashbitcoin-node. This is obviously an operator error, but may be worth handling w/o node crash. Error is:
23329 Segmentation fault (core dumped) bitcoin-gui -conf=regtest-guisolo.conf -ipcconnect=auto -debuglogfile=bitcoin-gui-
date +"%Y-%m-%d".log 2>&1
Note: bitcoin-guiand bitcoin-node work just fine if bitcoin-gui correctly started with -disablewallet.
Of interest, bitcoin-cli wallet-related RPC commands run against a bitcoin-node with -disablewallet (again, an operator error) correctly just return a Method not found RPC error and do not cause node crash.
Please reference -disablewallet notes at docs/developer-notes.md#wallet
Interestingly, a prior revision to docs/developer-notes.md#wallet expands on this and references an obsolete/superceded test:
- *Rationale*: In RPC code that conditionally use the wallet (such as
`validateaddress`) it is easy to forget that global pointer `pwalletMain`
can be NULL. See `qa/rpc-tests/disablewallet.py` for functional tests
exercising the API with `-disablewallet`
I did not yet try and debug the crash as I'm not totally sure I built from the correct integration branch for this?
Hopefully some of this is useful, thank you.
See also: #19460
- Ngôn ngữ chính
- C++
- Star
- 61
- Fork
- 57
- Merge trung bình
- 12 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 4
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 bitcoin-core/libmultiprocess
-
iwyu: --check_also=*.h ?Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
bitcoin-core/libmultiprocess#329 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
bitcoin-core/libmultiprocess#328 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
bitcoin-core/libmultiprocess#284 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
bitcoin-core/libmultiprocess#281 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Worker thread shares same name with event loop thread creating confusion when inspecting in GDBĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
bitcoin-core/libmultiprocess#248 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bitcoin-core/libmultiprocess
Issue tương tự
-
Component: Python API
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Vector35/binaryninja-api#8649 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
ai_p2 comp-parquet-reader-v3
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 66/100
ClickHouse/ClickHouse#124986 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug product: very_good_flutter_plugin
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
VeryGoodOpenSource/very_good_templates#654 ·
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 82/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
AcademySoftwareFoundation/OpenImageIO#5550 ·
Maintainer thường phản hồi trong vòng 2 ngày