且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Linux 64位上从Signal Handler进行回溯,并在调用堆栈上使用malloc/free

更新时间:2022-12-15 15:14:09

通常,x86_64程序可能是使用-fomit-frame-pointer构建的,因为它是启用优化后的默认设置.

In general x86_64 programs are likely to have been built with -fomit-frame-pointer as it is the default when optimisation is on.

这意味着RBP不可用于展开堆栈,您将需要使用DWARF展开信息(如果有调试信息)或异常展开表.

What that means is that RBP is not usable for unwinding the stack and you will either need to use the DWARF unwind information (if you have debugging information available) or the exception unwind table.