backtrace_symbols - Linux


Overview

backtrace_symbols generates a stack backtrace from a memory dump or core file and resolves the addresses in it to symbols. It is primarily used for debugging and analyzing crashes.

Syntax

backtrace_symbols [-j [<threads...>] [-d <directories>]] [-s <symbols>] [-a <offset>]
                    [-p <process name>] [-A] [-D] [-r <limit>] [-l <limit>]
                    [-e <elf-file>] [-m <map-file>] [-c <compact-file>]
                    [-i <ignore-list>] [-I <ignore-file>] [-f <filter>]
                    [-F <filter-file>] [-P <demangle-filter>] [-C <column>]
                    [-t <type>] [-w <width>] [-S <style>] [-n <max-name-len>]
                    [-R] [-M] [-E] [-O <options>] [-h] [-H] [-v] [-V]
                    [<file>]

Options/Flags

  • -d Specify directories to search for symbols.
  • -s Specify a symbol file to use.
  • -a Specify the offset of the backtrace within the specified file.
  • -p Filter backtraces by process name.
  • -A Display all backtraces.
  • -D Display only DWARF-based backtraces.
  • -r Limit the number of backtraces displayed.
  • -l Limit the number of lines per backtrace.
  • -e Use an ELF file instead of a core file.
  • -m Use a map file to resolve addresses.
  • -c Use a compact file to resolve addresses.
  • -i Ignore addresses in the specified file.
  • -I Ignore addresses in the specified file.
  • -f Filter backtraces based on a regular expression.
  • -F Read filter from a file.
  • -P Filter demangled symbols based on a regular expression.
  • -C Specify the column to print the backtraces in.
  • -t Specify the type of backtrace to display (e.g., "full", "brief").
  • -w Specify the width of the backtrace display.
  • -S