WarpProcessor.add_path() crashes
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/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ệ
- python
- Lĩnh vực
- reverse-engineering
Hướng nghiên cứu
Start by running the provided WarpProcessor script and isolate whether the crash occurs in add_path() or proc.start(). Compare that path with the working add_binary_view flow and use the reported exit behavior as the regression check; done means add_path('/bin/ls') completes without a segmentation fault and produces a valid WarpFile.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version and Platform (required):
- Binary Ninja Version: 6.1.10601
- Edition: Ultimate
- OS: MacOS
- OS Version: 27
- CPU Architecture: M3 Pro
Bug Description:
Running add_path() crashes script.
import sys, binaryninja
from binaryninja.warp import WarpProcessor
print("start", flush=True)
proc = WarpProcessor(worker_count=1)
proc.add_path('/bin/ls')
print("added path, starting", flush=True)
wf = proc.start()
print("RESULT WarpFile:", wf, flush=True)
sys.exit(0)
Run as python3 script.py > out.log 2>&1; echo $?.
$ python3 warp_test2.py > warp_test2.out 2>&1
$ echo $?
139
Exit code 139 = SIGSEGV (128 + 11). Output file contains only:
start
added path, starting
- i.e. it crashes somewhere inside
proc.start()(or possiblyadd_pathitself lazily deferring work intostart()), with no Python traceback at all, no exception, just a hard segfault of the whole interpreter.
The equivalent flow using add_binary_view instead of add_path, i.e. doing the load/analyze step manually in Python and only handing WarpProcessor an already-analyzed BinaryView, works fine and was verified multiple times, including batching multiple views into one processor (confirmed dedup: 3 binaries in, 1 merged 2-chunk .warp out):
import binaryninja
from binaryninja.warp import WarpProcessor
proc = WarpProcessor(worker_count=1)
bvs = []
for path in ['/bin/ls', '/bin/cat', '/bin/echo']:
bv = binaryninja.load(path)
bv.update_analysis_and_wait()
proc.add_binary_view(bv)
bvs.append(bv)
wf = proc.start() # <-- WarpFile, no crash
data = bytes(wf.to_data_buffer())
for bv in bvs:
bv.file.close()
This exits 0, prints a valid WarpFile repr, and produces real .warp bytes.
- Ngôn ngữ chính
- C++
- Star
- 1.3k
- Fork
- 304
- Merge trung bình
- 2 ngày 20 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 Vector35/binaryninja-api
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Vector35/binaryninja-api#8715 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Vector35/binaryninja-api#8714 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Vector35/binaryninja-api#8713 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
Vector35/binaryninja-api#8689 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
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 2 ngày
Tất cả issue của Vector35/binaryninja-api
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
ESPresense/ESPresense#2680 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 75/100
stew675/llama-cpp-rdna-boosts#348 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Documentation: Add comprehensive newcomer onboarding guide, project structure, and local usage to READMECó thể đã có người làm @Ash-Blanc đã nhận hôm nay. Đang mởarea/other status/bot-triaged status/need-triage
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 85/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 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 1 ngày