core-dumps

Enable, collect, and analyze core dump files with GDB and LLDB.

159|20|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill core-dumps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-dumps
Source: https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/debuggers/core-dumps
Command: npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill core-dumps

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you diagnose and understand application crashes in production by enabling, collecting, and analyzing core dump files without needing to reproduce the bug.

Core Features & Use Cases

  • Enable Core Dumps: Configure your system (Linux/macOS) to generate core dump files upon crashes.
  • Analyze Crashes: Use GDB or LLDB to inspect the state of a crashed program, including call stacks, registers, and local variables.
  • Symbol Resolution: Leverage debuginfod or manual methods to load debug symbols for stripped binaries, crucial for effective analysis.
  • Use Case: A critical service crashed in production. You can use this skill to ensure core dumps are enabled, collect the core file, and then use GDB with debuginfod to find the exact line of code and variables that led to the segmentation fault.

Quick Start

Use the core-dumps skill to enable core dump generation on Linux and analyze the latest core file using GDB.

Frequently Asked Questions about core-dumps

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

FAQPage Schema
How do I enable core dumps for a crashed Linux service in production?

Core dump analysis for production triage uses GDB or LLDB to inspect crashed program state, revealing call stacks, registers, and local variables. This post-mortem debugging approach diagnoses segfaults and runtime errors without needing to reproduce the bug locally.

How do I analyze a core dump file with GDB to find a segmentation fault?

Load debug symbols for stripped binaries during core dump analysis by using `debuginfod` or manual methods to resolve build IDs. This symbol resolution maps memory addresses to source code lines, enabling effective debugging of production crashes.

Can I use LLDB to analyze core dumps on macOS?

Configure `ulimit` and `sysctl` to generate core dumps for production crash analysis on Linux and macOS. These settings ensure the operating system writes core files when applications segfault, providing the necessary state snapshots for post-mortem debugging.

Do I need debug symbols to analyze a core dump from a stripped binary?

When core dump analysis yields missing symbols or unresolved build IDs, use `debuginfod` to automatically fetch debug symbols for stripped binaries. This resolves mapping issues and restores source code visibility during GDB and LLDB post-mortem triage workflows.

What's the best way to triage production crashes using core dump files?

GDB and LLDB both support core dump analysis, with GDB commonly used on Linux and LLDB on macOS. Both debuggers inspect crashed program state, call stacks, and registers, and can leverage `debuginfod` for resolving symbols in stripped production binaries.

Why does GDB show missing symbols when loading a core dump?

Core dump analysis requires configuring `ulimit` and `sysctl` on Linux or macOS to generate core files upon application crashes. This environment setup ensures production services produce the necessary state snapshots for post-mortem debugging with GDB or LLDB.