Memory corruption bugs (exit code 134)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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' '{}' \;
- 主要言語
- Rust
- スター
- 469
- フォーク
- 74
- 平均マージ
- 17時間 16分
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mozilla/rust-code-analysis のほかの issue
-
mozcpp: refresh the list of Mozilla annotation macros対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
mozilla/rust-code-analysis#1267 ·
メンテナーはふだん 1 日以内に返信
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macro対応中かも @marco-c が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
mozilla/rust-code-analysis#1266 ·
メンテナーはふだん 1 日以内に返信
-
Grammar check tasks compare unrelated files and skip most of the others再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
mozilla/rust-code-analysis#1261 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
mozilla/rust-code-analysis#1250 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
mozilla/rust-code-analysis#1249 ·
メンテナーはふだん 1 日以内に返信
mozilla/rust-code-analysis の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ubugeeei-prod/vize#13586 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
storytold/photocraft#16565 ·
メンテナーはふだん 1 日以内に返信
-
flaky needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
bherbruck/solvecraft#21315 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
undergroundrap/hatchling#624 ·
メンテナーはふだん 1 日以内に返信
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveオープンarea:stdlib effort:S impact:low parity type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信