addr2line是一个Linux系统下的命令行工具,用于将程序指令地址转换为对应的函数名、源文件名和行号。它通常与调试信息一起使用,只有含有调试信息的可执行文件或库文件才能使用addr2line来定位异常发生的位置。要使用addr2line,需要在编译时使用-g参数来生成调试信息。在Linux系统中,addr2line命令通常位于/bin或/usr/bin目录下,可以通过命令行直接调用。123
#### 引用[.reference_title]
- *1* [linux64位系统 addr2line使用](https://blog.csdn.net/C_Creator/article/details/125172325)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [addr2line快速定位进程异常位置](https://blog.csdn.net/u013357557/article/details/127784910)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [Linux下addr2line命令用法](https://blog.csdn.net/fengbingchun/article/details/119980076)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]