Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.7 KB

File metadata and controls

49 lines (38 loc) · 1.7 KB

Try it!

Open in Gitpod

Wiki Shell-Rebuild

Error tests

valgrind --track-fds=yes ./minishell
valgrind  --leak-check=full ./minishell

Testers to try with

https://github.com/LucasKuhn/minishell_tester
https://github.com/zstenger93/42_minishell_tester

Use supression file to avoid readline() leaks

valgrind --leak-check=full --show-leak-kinds=all --suppressions=mshell.supp ./minishell

all erros + supp

valgrind --leak-check=full --trace-children=yes --gen-suppressions=all --show-leak-kinds=all --track-fds=yes  --error-limit=no --suppressions=mshell.supp ./minishell

all errors

valgrind --leak-check=full  --track-origins=yes  --trace-children=yes --gen-suppressions=all --show-leak-kinds=all --track-fds=yes --error-limit=no  ./minishell

Find all memory allocation functions

grep -rnE '\b(malloc|calloc|ft_calloc|realloc|ft_realloc|strdup|ft_strdup|strndup|ft_strndup|ft_substr|asprintf|vasprintf)\b' ./src