Closed PaulicStudios closed 6 months ago
same with
/workspaces/42-minishell ❯ /bin/echo "$ "
AddressSanitizer:DEADLYSIGNAL
=================================================================
==38862==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x55612ce0e316 bp 0x000000000001 sp 0x7ffcf7ab60d0 T0)
==38862==The signal is caused by a READ memory access.
==38862==Hint: address points to the zero page.
#0 0x55612ce0e316 in ft_expand_tokens src/input_parsing/expander.c:69
#1 0x55612ce0ca63 in process_input src/prompt/prompt.c:19
#2 0x55612ce0cf16 in show_prompt src/prompt/prompt.c:133
#3 0x55612ce0a9c5 in main src/main.c:51
#4 0x7f256d118d8f (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
#5 0x7f256d118e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f)
#6 0x55612ce0a6a4 in _start (/workspaces/42-minishell/minishell+0x46a4)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV src/input_parsing/expander.c:69 in ft_expand_tokens
==38862==ABORTING