I’m having lot of problems with this exercise, i think the problem is that my stacks can’t receive any numbers so they are always empty, but i don’t know how to solve it and make it work.
It’s in this github repo: (https://github.com/javizgza/push_swap). Any help or tip is welcome.
I think that the problem is in the file utils.c, in the function ft_complete_stk. THANKS
What i have tried::
Compilation with Debug Options
Compiled the project with debug options using gcc -g to enable detailed debugging information
Using gdb for Debugging:
Planned to use gdb to identify the exact point of the segfault.
Steps included running the program with gdb and using commands like run and backtrace to diagnose the issue
And nothing, the cause of the seegfault remains unidentified, but i 90% sure that is from the way the stack receive the numbers.
Im still learning programming 😐
javi zaragoza is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.