core-dumps

Analyze Linux/macOS core dumps with GDB/LLDB and coredumpctl.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/awfixers-stuff/opencode-config --skill core-dumps-awfixers-stuff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-dumps
Source: https://github.com/awfixers-stuff/opencode-config/tree/main/skills/core-dumps
Command: npx skills add https://github.com/awfixers-stuff/opencode-config --skill core-dumps-awfixers-stuff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Core-dump analysis for production crash triage and post-mortem investigation, enabling symbol resolution and backtrace extraction without rerunning the program.

Core Features & Use Cases

  • Enable and analyze core dumps on Linux/macOS, including symbol mapping with debuginfod to improve crash diagnostics.
  • Inspect core files with GDB or LLDB to obtain backtraces, locals, and register state, for both stripped and unstripped binaries.
  • Integrate with systemd coredumpctl for automatic retrieval and inspection of crashes.

Quick Start

Provide a coreDump file and run GDB or LLDB to generate a post-mortem report.

Frequently Asked Questions about core-dumps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a core dump file to find the cause of a crash?

To analyze a core dump, load the core file into GDB or LLDB alongside the crashed binary to extract backtraces, local variables, and register state. This post-mortem approach identifies the crash cause without rerunning the program.

How do I use coredumpctl to inspect systemd crash dumps?

Use coredumpctl to automatically retrieve and inspect crash dumps generated by systemd. This tool integrates with GDB and LLDB workflows, streamlining the process of listing recent crashes and loading the corresponding core files for immediate post-mortem analysis.

Can I resolve symbols in a stripped binary during core dump analysis?

Yes, you can resolve symbols in stripped binaries during core dump analysis by utilizing debuginfod for symbol mapping. This improves crash diagnostics by fetching external debug information, allowing GDB and LLDB to reconstruct function names and line numbers.

How do I enable core dumps on Linux and macOS for production crash triage?

Enabling core dumps requires configuring system limits to ensure core files are generated during a crash. Once enabled, these files capture the program's memory state at the crash moment, providing the necessary data for post-mortem investigation using debuggers.

What is the best way to get a backtrace from a macOS production crash?

The best way to extract a backtrace from a macOS production crash is to inspect the core dump file using LLDB. This post-mortem debugger provides the necessary stack frames, locals, and register state to diagnose the exact failure point.

Does core dump analysis work without rerunning the crashed program?

Yes, core dump analysis is specifically designed for post-mortem investigation without rerunning the program. By loading the captured core file into GDB or LLDB, you inspect the frozen memory state and registers at the exact moment of the crash.