JonasGoetz01 / 42-minishell

Built your very own shell, Minishell! Explore executing commands, managing history, and controlling inputs and outputs. Dive into handling processes and files while creating a user-friendly shell interface. Get hands-on with shell scripting in a fun and accessible way with Minishell (DONT PANIC SHELL)!
1 stars 1 forks source link

echo 1 | >tmp_out #127

Closed PaulicStudios closed 5 months ago

PaulicStudios commented 5 months ago
/workspaces/42-minishell ❯ echo 1 | >tmp_out
AddressSanitizer:DEADLYSIGNAL
=================================================================
==13615==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x55b62232c33e bp 0x7ffe23e95f20 sp 0x7ffe23e95f00 T0)
==13615==The signal is caused by a READ memory access.
==13615==Hint: address points to the zero page.
    #0 0x55b62232c33e in rearrange_tokens src/input_parsing/tokenize.c:419
    #1 0x55b62232a9f1 in process_input src/prompt/prompt.c:31
    #2 0x55b62232ae08 in show_prompt src/prompt/prompt.c:135
    #3 0x55b6223289b6 in main src/main.c:51
    #4 0x7ff94f7d6d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #5 0x7ff94f7d6e3f in __libc_start_main_impl ../csu/libc-start.c:392
    #6 0x55b6223286a4 in _start (/workspaces/42-minishell/minishell+0x36a4)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV src/input_parsing/tokenize.c:419 in rearrange_tokens
==13615==ABORTING
PaulicStudios commented 5 months ago

same with <>

/workspaces/42-minishell ❯ <>
AddressSanitizer:DEADLYSIGNAL
=================================================================
==13936==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x5603136b3204 bp 0x7ffe3741cd30 sp 0x7ffe3741cd10 T0)
==13936==The signal is caused by a READ memory access.
==13936==Hint: address points to the zero page.
    #0 0x5603136b3204 in rearrange_tokens src/input_parsing/tokenize.c:398
    #1 0x5603136b19f1 in process_input src/prompt/prompt.c:31
    #2 0x5603136b1e08 in show_prompt src/prompt/prompt.c:135
    #3 0x5603136af9b6 in main src/main.c:51
    #4 0x7f158098dd8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #5 0x7f158098de3f in __libc_start_main_impl ../csu/libc-start.c:392
    #6 0x5603136af6a4 in _start (/workspaces/42-minishell/minishell+0x36a4)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV src/input_parsing/tokenize.c:398 in rearrange_tokens
==13936==ABORTING