I do snprintf and get a seg error.
when I uploaded the kernel file to gdb as follows: gdb my_executable core ; and did bt to get the backtrace, I got the following:
Program terminated with signal 11, Segmentation fault.
I see such a stack many times in the event of a seg failure, but I never understood correctly.
Just looking at the calls in the trace, can we say what is going wrong?
NOTE. Please do not request more code. My motive is to simply understand what stack tracing is, as it means - regardless of code. I see that from above, "memcpy" fails. I want to understand when this can happen in this situation.
source share