关于你提到的 addr2line: dwarf error: can't find .debug_ranges section 错误,这通常与调试信息的完整性有关。下面我将根据提供的tips逐一进行解释和提供可能的解决方案: 1. 确认addr2line命令的使用环境及上下文 addr2line 是一个用于将程序地址转换为文件名和行号的工具,通常用于调试
Not sure if this can be considered a design issue or it's working as intended. However, when a stack trace is printed the line number an/or symbols can only be resolved via addr2line, when the process is NOT resolved via PATH. Otherwise ...
+++ This bug was initially created as a clone of Bug #2162495 +++ Description of problem: eu-addr2line -i option to display inlined functions doesn't work with LTO (-flto) and Dwarf5 Version-Release number of selected component (if applicable): elfutils-0.187-4.el8.x86_64 gcc-toolset...
So you don't get -i inlines... The workaround is putting -C last (-fiC): $ eu-addr2line -fiC -e a.out 0x0000000000401052 FunctionToInline1 inlined at /tmp/repro_inlines/sample.c:34:5 in main /tmp/repro_inlines/sample.c:6:5 FunctionToInline2 /tmp/repro_inlines/sample.c:34:5...