, . . backtrace() . backtrace() glibc .
x86 CPU ebp ( ) esp ( ), . .
If you want to know more about how it works backtrace()and how to use it, I would recommend reading the Stack Backtracing Inside Your Program (LINUX Magazine).
Since you mentioned running a backtrace from a signal handler for the x86 platform, I would like to add Adam to my answer to the question that he linked, for more information on how to provide backtrace from the signal handler, points to The actual location of the error.
source
share