LinuxCommandLibrary

abrt-action-analyze-c

Analyze C/C++ program crashes

TLDR

Calculate and save the UUID for the current working directory

$ abrt-action-analyze-c
copy

Calculate and save the UUID for a specific directory
$ abrt-action-analyze-c -d [path/to/directory]
copy

Calculate and save the UUID verbosely
$ abrt-action-analyze-c -v
copy

SYNOPSIS

abrt-action-analyze-c [-v] [-D DIR] [-c PATTERN] DUMP_DIRECTORY

PARAMETERS

-v, --verbose
    Increase verbosity (repeat for more levels, max 10)

-D DIR, --dumpdir DIR
    Specify dump directory (default: first argument)

-c PATTERN, --core PATTERN
    Kernel core pattern (default: "core")

DESCRIPTION

abrt-action-analyze-c is a component of the Automatic Bug Reporting Tool (ABRT) in Linux distributions like Fedora and RHEL. It processes crash dumps from C/C++ applications, generating detailed backtraces and diagnostic information.

The tool examines core dumps in a specified directory, identifies the crashed executable, and invokes GDB (GNU Debugger) to unwind the stack, resolve symbols, and extract relevant crash details. It detects missing debugging symbols and prepares a list for installation via tools like debuginfo-install. Key outputs include files such as backtrace, executable, core_backtrace, limits, memory_map, and runnable, enabling bug reporters to recreate the crash.

Typically triggered automatically by ABRT hooks after a crash, it supports user-specific dumps and handles permission issues. Verbose mode aids debugging the analyzer itself. It's essential for C/C++ crash reporting, bridging kernel core dumps to actionable bug data for upstream submission.

CAVEATS

Requires gdb and elfutils; incomplete backtraces without debug symbols. Runs with restricted privileges (abrt user). Not for non-C/C++ crashes. May fail on stripped binaries or huge cores.

GENERATED FILES

Produces: backtrace (full trace), core_backtrace (short), executable, limits, memory_map, missing_debug_packages.txt, runnable (crash reproducer).

USAGE NOTE

Invoked by ABRT automatically; manual use: abrt-action-analyze-c /var/spool/abrt/<crash-id>
Check analyzer file for "CCC" marking C/C++ analysis.

HISTORY

Introduced in Fedora 12 (2009) with initial ABRT release. Evolved through libreport integration; major updates in Fedora 18+ for better GDB handling and debuginfo detection. Maintained by Red Hat for RHEL/Fedora.

SEE ALSO

abrt-action-generate-backtrace(1), abrt-ccpp(1), gdb(1), coredumpctl(1), debuginfo-install(1)

Copied to clipboard