tonnytg / 42_minishell

This project has objective to build a prompt with shell commands
Apache License 2.0
2 stars 2 forks source link

Bug: Core Dump (minishell: > echo "teste . . . afsdfasdf ") #210

Closed carlosrocha-dev closed 1 year ago

carlosrocha-dev commented 1 year ago

image

image

carlosrocha-dev commented 1 year ago

Log do valgrind: coder (bug/204-bug-white-space-quotes) ~/42_minishell$ make v make -C libft make[1]: Entering directory '/home/coder/42_minishell/libft' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/coder/42_minishell/libft' valgrind --trace-children=yes --track-fds=yes --track-origins=yes --suppressions=readline.supp --leak-check=full --show-leak-kinds=all --quiet ./minishell minishell: > echo "teste . . . afsdfasdf " ==2285== Invalid write of size 1 ==2285== at 0x406E13: token_analysis (token_analysis.c:142) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37571 is 0 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid write of size 1 ==2285== at 0x406DA1: token_analysis (token_analysis.c:123) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37574 is 3 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408457: ft_strlen (in /home/coder/42_minishell/minishell) ==2285== by 0x406DAD: token_analysis (token_analysis.c:124) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37571 is 0 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408457: ft_strlen (in /home/coder/42_minishell/minishell) ==2285== by 0x4082CC: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x406DC0: token_analysis (token_analysis.c:127) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37571 is 0 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408306: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x406DC0: token_analysis (token_analysis.c:127) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37571 is 0 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408318: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x406DC0: token_analysis (token_analysis.c:127) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37571 is 0 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid write of size 1 ==2285== at 0x406E35: token_analysis (token_analysis.c:147) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b3758e is 14 bytes after a block of size 16 in arena "client" ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408457: ft_strlen (in /home/coder/42_minishell/minishell) ==2285== by 0x4082CC: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x406E41: token_analysis (token_analysis.c:149) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37571 is 0 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408306: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x406E41: token_analysis (token_analysis.c:149) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37571 is 0 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408318: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x406E41: token_analysis (token_analysis.c:149) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b37571 is 0 bytes after a block of size 1 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2285== by 0x406CE0: token_analysis (token_analysis.c:109) ==2285== by 0x401476: minishell (main.c:52) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid write of size 1 ==2285== at 0x4064DC: parse_values_args (interpreter.c:76) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38062 is 0 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid write of size 1 ==2285== at 0x40646A: parse_values_args (interpreter.c:66) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38064 is 2 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408457: ft_strlen (in /home/coder/42_minishell/minishell) ==2285== by 0x4082CC: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x4064FE: parse_values_args (interpreter.c:81) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38062 is 0 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408306: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x4064FE: parse_values_args (interpreter.c:81) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38062 is 0 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408318: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x4064FE: parse_values_args (interpreter.c:81) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38062 is 0 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid write of size 1 ==2285== at 0x40659A: parse_values_args (interpreter.c:92) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38062 is 0 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid write of size 1 ==2285== at 0x4065BC: parse_values_args (interpreter.c:97) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b3807c is 12 bytes after a block of size 16 in arena "client" ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408457: ft_strlen (in /home/coder/42_minishell/minishell) ==2285== by 0x4082CC: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x4065C8: parse_values_args (interpreter.c:98) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38062 is 0 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408306: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x4065C8: parse_values_args (interpreter.c:98) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38062 is 0 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 1 ==2285== at 0x408318: ft_strdup (in /home/coder/42_minishell/minishell) ==2285== by 0x4065C8: parse_values_args (interpreter.c:98) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b38062 is 0 bytes after a block of size 2 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406402: parse_values_args (interpreter.c:57) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid write of size 8 ==2285== at 0x4065E9: parse_values_args (interpreter.c:100) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b380c0 is 0 bytes after a block of size 16 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406410: parse_values_args (interpreter.c:58) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== ==2285== Invalid read of size 8 ==2285== at 0x401642: count_arr (utils.c:22) ==2285== by 0x406617: parse_values_args (interpreter.c:106) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b380c0 is 0 bytes after a block of size 16 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406410: parse_values_args (interpreter.c:58) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285==

[parse_values_args] - word: 'echo'

[parse_values_args] - new_word: 'echo'

[parse_values_args] - word: 'teste . . . afsdfasdf '

[parse_values_args] - word[1][5]: ' '

[parse_values_args] - word[1][7]: ' '

[parse_values_args] - word[1][9]: ' '

[parse_values_args] - word[1][11]: ' ' [parse_values_args] - word[1][12]: ' ' [parse_values_args] - word[1][13]: ' ' [parse_values_args] - word[1][14]: ' '

[parse_values_args] - word[1][24]: ' ' [parse_values_args] - word[1][25]: ' ' [parse_values_args] - word[1][26]: ' ' [parse_values_args] - word[1][27]: ' ' [parse_values_args] - new_word: 'teste . . . afsdfasdf ' ==2285== Invalid read of size 8 ==2285== at 0x406646: parse_values_args (interpreter.c:108) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== Address 0x4b380c0 is 0 bytes after a block of size 16 alloc'd ==2285== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2285== by 0x406410: parse_values_args (interpreter.c:58) ==2285== by 0x4068F4: init_interpreter (interpreter.c:155) ==2285== by 0x40240B: run_commands (nodes.c:48) ==2285== by 0x4024DA: run_node (nodes.c:69) ==2285== by 0x4022EC: execute_cmd (commands.c:90) ==2285== by 0x4014B6: minishell (main.c:61) ==2285== by 0x4015E6: main (main.c:87) ==2285== teste . . . afsdfasdf
==2322== FILE DESCRIPTORS: 3 open at exit. ==2322== Open file descriptor 2: /dev/pts/0 ==2322== ==2322== ==2322== Open file descriptor 1: /dev/pts/0 ==2322== ==2322== ==2322== Open file descriptor 0: /dev/pts/0 ==2322== ==2322== ==2322== ==2322== 1 bytes in 1 blocks are definitely lost in loss record 1 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2322== by 0x406CE0: token_analysis (token_analysis.c:109) ==2322== by 0x401476: minishell (main.c:52) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 2 bytes in 1 blocks are definitely lost in loss record 2 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x406402: parse_values_args (interpreter.c:57) ==2322== by 0x4068F4: init_interpreter (interpreter.c:155) ==2322== by 0x40240B: run_commands (nodes.c:48) ==2322== by 0x4024DA: run_node (nodes.c:69) ==2322== by 0x4022EC: execute_cmd (commands.c:90) ==2322== by 0x4014B6: minishell (main.c:61) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 5 bytes in 1 blocks are indirectly lost in loss record 3 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x4082DC: ft_strdup (in /home/coder/42_minishell/minishell) ==2322== by 0x4064FE: parse_values_args (interpreter.c:81) ==2322== by 0x4068F4: init_interpreter (interpreter.c:155) ==2322== by 0x40240B: run_commands (nodes.c:48) ==2322== by 0x4024DA: run_node (nodes.c:69) ==2322== by 0x4022EC: execute_cmd (commands.c:90) ==2322== by 0x4014B6: minishell (main.c:61) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 5 bytes in 1 blocks are definitely lost in loss record 4 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x4082DC: ft_strdup (in /home/coder/42_minishell/minishell) ==2322== by 0x406DC0: token_analysis (token_analysis.c:127) ==2322== by 0x401476: minishell (main.c:52) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 29 bytes in 1 blocks are indirectly lost in loss record 18 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x4082DC: ft_strdup (in /home/coder/42_minishell/minishell) ==2322== by 0x4065C8: parse_values_args (interpreter.c:98) ==2322== by 0x4068F4: init_interpreter (interpreter.c:155) ==2322== by 0x40240B: run_commands (nodes.c:48) ==2322== by 0x4024DA: run_node (nodes.c:69) ==2322== by 0x4022EC: execute_cmd (commands.c:90) ==2322== by 0x4014B6: minishell (main.c:61) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 31 bytes in 1 blocks are definitely lost in loss record 19 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x4082DC: ft_strdup (in /home/coder/42_minishell/minishell) ==2322== by 0x406E41: token_analysis (token_analysis.c:149) ==2322== by 0x401476: minishell (main.c:52) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 50 (16 direct, 34 indirect) bytes in 1 blocks are definitely lost in loss record 24 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x406410: parse_values_args (interpreter.c:58) ==2322== by 0x4068F4: init_interpreter (interpreter.c:155) ==2322== by 0x40240B: run_commands (nodes.c:48) ==2322== by 0x4024DA: run_node (nodes.c:69) ==2322== by 0x4022EC: execute_cmd (commands.c:90) ==2322== by 0x4014B6: minishell (main.c:61) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 200 bytes in 2 blocks are definitely lost in loss record 29 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x406696: parse_values_args (interpreter.c:115) ==2322== by 0x4068F4: init_interpreter (interpreter.c:155) ==2322== by 0x40240B: run_commands (nodes.c:48) ==2322== by 0x4024DA: run_node (nodes.c:69) ==2322== by 0x4022EC: execute_cmd (commands.c:90) ==2322== by 0x4014B6: minishell (main.c:61) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 520 bytes in 1 blocks are indirectly lost in loss record 34 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2322== by 0x406922: add_tk_node (token_analysis.c:20) ==2322== by 0x406E5C: token_analysis (token_analysis.c:150) ==2322== by 0x401476: minishell (main.c:52) ==2322== by 0x4015E6: main (main.c:87) ==2322== ==2322== 1,040 (520 direct, 520 indirect) bytes in 1 blocks are definitely lost in loss record 42 of 71 ==2322== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==2322== by 0x407F75: ft_calloc (in /home/coder/42_minishell/minishell) ==2322== by 0x406922: add_tk_node (token_analysis.c:20) ==2322== by 0x406DDB: token_analysis (token_analysis.c:128) ==2322== by 0x401476: minishell (main.c:52) ==2322== by 0x4015E6: main (main.c:87) ==2322== minishell: >