Memory corruption bugs (exit code 134)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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' '{}' \;
- Linguagem predominante
- Rust
- Estrelas
- 469
- Forks
- 74
- Merge médio
- 17h 16min
- PRs com merge (30d)
- 10
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de mozilla/rust-code-analysis
-
mozcpp: refresh the list of Mozilla annotation macrosTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
mozilla/rust-code-analysis#1267 ·
Mantenedores costumam responder em até 1 dia
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macroTalvez já em andamento @marco-c assumiu há 2 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 15/100
mozilla/rust-code-analysis#1266 ·
Mantenedores costumam responder em até 1 dia
-
Grammar check tasks compare unrelated files and skip most of the othersTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
mozilla/rust-code-analysis#1261 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
mozilla/rust-code-analysis#1250 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
mozilla/rust-code-analysis#1249 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de mozilla/rust-code-analysis
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
ubugeeei-prod/vize#13586 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
storytold/photocraft#16565 ·
Mantenedores costumam responder em até 1 dia
-
flaky needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
bherbruck/solvecraft#21315 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
undergroundrap/hatchling#624 ·
Mantenedores costumam responder em até 1 dia
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveAbertaarea:stdlib effort:S impact:low parity type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia