← 返回命令列表

Linux command

apport-unpack 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Extract a crash report

apport-unpack [/var/crash/_usr_bin_app.1000.crash] [output_directory]

Extract a crash report

cat [report.crash] | apport-unpack - [output_directory]

Extract core dump

apport-unpack [crash_file.crash] [extracted/] && gdb [/usr/bin/app] [extracted/CoreDump]

说明

apport-unpack extracts the fields of an Apport problem report into separate files. Each key-value pair in the crash report becomes a separate file, with the key as the filename and the value as the file contents. Apport crash reports use RFC822 syntax and bundle multiple pieces of information including stack traces, system information, package details, and core dumps. This tool splits them apart for individual examination. The primary use case is extracting the CoreDump file for analysis with gdb or other debugging tools. Other extracted files include ProcMaps, ProcStatus, Stacktrace, Package, and various system information fields. Crash reports are typically stored in /var/crash/ with names following the pattern _usr_bin_program.uid.crash.

FAQ

What is the apport-unpack command used for?

apport-unpack extracts the fields of an Apport problem report into separate files. Each key-value pair in the crash report becomes a separate file, with the key as the filename and the value as the file contents. Apport crash reports use RFC822 syntax and bundle multiple pieces of information including stack traces, system information, package details, and core dumps. This tool splits them apart for individual examination. The primary use case is extracting the CoreDump file for analysis with gdb or other debugging tools. Other extracted files include ProcMaps, ProcStatus, Stacktrace, Package, and various system information fields. Crash reports are typically stored in /var/crash/ with names following the pattern _usr_bin_program.uid.crash.

How do I run a basic apport-unpack example?

Run `apport-unpack [/var/crash/_usr_bin_app.1000.crash] [output_directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more apport-unpack examples?

This page includes 3 examples for apport-unpack, plus related commands for nearby Linux tasks.