crispPacketTriangle / minishell

1 stars 0 forks source link

trim_qts_varexp (call to variable expnansion functions) in call to builtin in parent buggy #62

Open crispPacketTriangle opened 1 week ago

crispPacketTriangle commented 1 week ago

Calling trim_qts_varexp() to do variable expansion in in_parent() which is called if everything can happen in parent process, causes double frees and sometime hanging

crispPacketTriangle commented 1 week ago

when free_all() in run_interactive_shell() is commented, the issues are not present

crispPacketTriangle commented 1 week ago

in lexer.c at line 134, if variable does not exist while ( m_set( '$' , str ) ) leads to infinite loop

interesting to note that ctrl-c returns the prompt, but any further actions return to the loop