Skip to content

Practical crash triage for production core dumps: enabling collection, loading in GDB or LLDB, and resolving symbols.

CCM score
64 of 100
skills.sh installs
948
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers enabling core dumps on Linux and macOS, systemd coredumpctl workflows, and GDB and LLDB analysis
  • Includes ulimit, kernel.core_pattern settings, coredumpctl list/info/gdb/dump, and debuginfod or manual debug-symbol lookup
  • Shows how to separate debug info with objcopy and add debuglinks so stripped production binaries stay debuggable
  • Designed for triaging segfaults from production binaries without rerunning the program

Install

$ npx -y skills add mohitmishra786/low-level-dev-skills --skill core-dumps -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Core Dumps

Purpose

Guide agents through enabling, collecting, and analysing core dumps for post-mortem crash investigation without rerunning the buggy program.

Triggers

  • "My program crashed in production — how do I analyse the core?"
  • "How do I enable core dumps on Linux?"
  • "I have a core file but no symbols / source"
  • "How do I use debuginfod to get symbols for a core?"
  • "coredumpctl show me the crash"

Workflow

1. Enable core dumps (Linux)

# Per-session (lost on logout)
ulimit -c unlimited

# Persistent (add to /etc/security/limits.conf)
*   soft   core   unlimited
*   hard   core   unlimited

# Check current limit
ulimit -c

# Set core pattern (where and how cores are named)
# Default: 'core' in CWD — often not useful
sudo sysctl -w kernel.core_pattern=/tmp/core-%e-%p-%t
# %e = executable, %p = PID, %t = timestamp

# Persistent (add to /etc/sysctl.d/99-core.conf)
kernel.core_pattern=/tmp/core-%e-%p-%t
kernel.core_uses_pid=1

2. systemd/coredumpctl (modern Linux)

If systemd manages core dumps (common on Ubuntu 20+, Fedora, Arch):

# List recent crashes
coredumpctl list

# Show details of the latest crash
coredumpctl info

Details

Repository
github.com/mohitmishra786/low-level-dev-skills
Categories
Debugging, CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the core-dumps skill do for crash triage?

The core-dumps skill guides an agent through enabling, collecting, and analyzing core dumps for post-mortem crash investigation without rerunning the buggy program. It covers loading core files in GDB or LLDB and extracting backtraces from production segfaults.

How do I install the core-dumps skill?

Run npx -y skills add mohitmishra786/low-level-dev-skills --skill core-dumps -y in your project. This lets the agent load core files, map symbols with debuginfo or debuginfod, and extract backtraces from crashes.

Which debugging skills sit alongside core-dumps in the Debugging category?

The core-dumps skill is in the Debugging category, alongside diagnosing-bugs, azure-messaging, safe-debug, systematic-debugging, and sentry-cli. It focuses specifically on post-mortem analysis of core files from production binaries.

How does core-dumps help with missing symbols in a core file?

The skill explains using debuginfod to fetch debug symbols by build ID when DEBUGINFOD_URLS is set, and manual approaches using debug packages and build IDs. It also shows how to strip binaries while keeping an unstripped copy for symbol mapping.

More from mohitmishra786/low-level-dev-skills

All 54

Similar to Core Dumps

More Debugging