Memory corruption bugs (exit code 134)
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
- 48/100
Hướng nghiên cứu
Start by reproducing the crash with the listed rust-code-analysis-cli command and one of the example repositories at the specified revision; the issue does not identify an internal file or test to inspect. Compare running against the whole project with the per-file workaround to narrow down where corruption occurs. Done means analysis completes without memory corruption on the reported examples.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The tool crashes when analyzing some projects (version 0.0.25). If in $path is the path to the respective project, the call looks like this:
rust-code-analysis-cli --paths "$path" --metrics --output-format json
Examples
Here are some examples for the crashes:
| Repository | revision | error | file |
|---|---|---|---|
| https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git | 6d35786de28116ecf78797a62b84e6bf3c45aa5a | munmap_chunk(): invalid pointer | tools/perf/arch/x86/tests/insn-x86-dat-64.c |
| https://github.com/microsoft/TypeScript.git | f350b52331494b68c90ab02e2b6d0828d2a22a74 | munmap_chunk(): invalid pointer | tests/cases/fourslash/reallyLargeFile.ts |
| https://codeberg.org/tenacityteam/tenacity.git | 5b2330ba6131fd66f25fe805c1d89cc1c93c34b2 | double free or corruption (out) | libraries/lib-theme/ThemeAsCeeCode.h |
| https://github.com/opencv/opencv.git | 808d2d596c475d95fedb6025c9ed425d62bba04c | double free or corruption (out) | 3rdparty/openexr/Half/toFloat.h |
| https://github.com/MariaDB/server.git | c8bfb4dbd298998c699d4f7670b5867a62376764 | double free or corruption (out) | mysql-test/include/dbt3_s001.inc |
Which of the two errors exactly occurs seems to be not stable.
Workaround
My current workaround is to call the CLI tool separate for every file. This at least allows getting the results for the other files, where it does not crash. However, this is maybe slower. The bash code looks like this:
find "$path" -path "$path/.git" -prune -o -type f -exec bash -c \
'rust-code-analysis-cli --paths "$0" --metrics --output-format json || true' '{}' \;
- Ngôn ngữ chính
- Rust
- Star
- 469
- Fork
- 74
- Merge trung bình
- 17 giờ 16 phút
- 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 mozilla/rust-code-analysis
-
mozcpp: refresh the list of Mozilla annotation macrosCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
mozilla/rust-code-analysis#1267 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macroCó thể đã có người làm @marco-c đã nhận 2 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
mozilla/rust-code-analysis#1266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Grammar check tasks compare unrelated files and skip most of the othersCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
mozilla/rust-code-analysis#1261 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
mozilla/rust-code-analysis#1250 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
mozilla/rust-code-analysis#1249 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của mozilla/rust-code-analysis
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ubugeeei-prod/vize#13586 ·
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
storytold/photocraft#16565 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
flaky needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bherbruck/solvecraft#21315 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
undergroundrap/hatchling#624 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveĐang mởarea:stdlib effort:S impact:low parity type:bug
Độ 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