addr2line

Convert addresses of a binary into file names and line numbers. More information: <https://manned.org/addr2line>.

Install

All systems
curl cmd.cat/addr2line.sh
Debian Debian
apt-get install binutils
Ubuntu
apt-get install binutils
Alpine
apk add binutils
Arch Arch Linux
pacman -S binutils
image/svg+xml Kali Linux
apt-get install binutils
CentOS
yum install binutils
Fedora
dnf install binutils
Windows (WSL2)
sudo apt-get update sudo apt-get install binutils
OS X
brew install binutils
Raspbian
apt-get install binutils
Docker
docker run cmd.cat/addr2line addr2line powered by Commando

Convert addresses of a binary into file names and line numbers. More information: <https://manned.org/addr2line>.

  • Display the filename and line number of the source code from an instruction address of an executable:
    addr2line --exe=path/to/executable address
  • Display the function name, filename and line number:
    addr2line --exe=path/to/executable --functions address
  • Demangle the function name for C++ code:
    addr2line --exe=path/to/executable --functions --demangle address

© tl;dr; authors and contributors