marimlem / minishell

0 stars 0 forks source link

coredump after CTRL D #31

Closed marimlem closed 1 month ago

marimlem commented 3 months ago

zsh:$ make v valgrind --suppressions=supp.supp --track-origins=yes --leak-check=full --show-leak-kinds=all ./minishell ==2255826== Memcheck, a memory error detector ==2255826== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2255826== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2255826== Command: ./minishell ==2255826==

minishell:$ ls fdsf ls: cannot access 'fdsf': No such file or directory minishell:$ echo $? 0 minishell:$ cat fff cat: fff: No such file or directory minishell:$ echo $? 0 minishell:$ expr $? + $? 0 minishell:$ cat fff cat: fff: No such file or directory minishell:$ expr $? + $? 0 minishell:$ ./minishell minishell:$ exit 20 exit minishell minishell:$ expr $? + $? 0 minishell:$ ^C minishell:$ exit

==2255826== ==2255826== HEAP SUMMARY: ==2255826== in use at exit: 209,056 bytes in 255 blocks ==2255826== total heap usage: 1,183 allocs, 928 frees, 245,465 bytes allocated ==2255826== ==2255826== LEAK SUMMARY: ==2255826== definitely lost: 0 bytes in 0 blocks ==2255826== indirectly lost: 0 bytes in 0 blocks ==2255826== possibly lost: 0 bytes in 0 blocks ==2255826== still reachable: 0 bytes in 0 blocks ==2255826== suppressed: 209,056 bytes in 255 blocks ==2255826== ==2255826== For lists of detected and suppressed errors, rerun with: -s ==2255826== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

zsh: quit (core dumped) make v

marimlem commented 3 months ago

not reproducable atm