addr2line是gcc的工具,可以根据地址转换成行号和functionname 工具默认的文件时a.out,如果不是,要用-e指定 例如 addr2line 0x78256941 -e main -f 转载于:https://blog.51cto.com/7606234/1289675