Memory corruption bugs (exit code 134)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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' '{}' \;
- Lenguaje dominante
- Rust
- Estrellas
- 469
- Forks
- 74
- Merge medio
- 17 h 16 min
- PR fusionados (30 d)
- 10
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mozilla/rust-code-analysis
-
mozcpp: refresh the list of Mozilla annotation macrosPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
mozilla/rust-code-analysis#1267 ·
Los mantenedores suelen responder en 1 día
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macroPosiblemente ocupada @marco-c la tomó hace 2 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
mozilla/rust-code-analysis#1266 ·
Los mantenedores suelen responder en 1 día
-
Grammar check tasks compare unrelated files and skip most of the othersQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
mozilla/rust-code-analysis#1261 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
mozilla/rust-code-analysis#1250 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
mozilla/rust-code-analysis#1249 ·
Los mantenedores suelen responder en 1 día
Todos los issues de mozilla/rust-code-analysis
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
speakeasy-api/speakeasy#2159 ·
Los mantenedores suelen responder en 1 día
-
documentation target:powerpoint
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
tomast1337/PdfLapas#602 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
r-lib/rig#535 · 2 comentarios ·
Los mantenedores suelen responder en 1 día