| name | coredump |
| description | Core Dump Analysis skill for the ikigai project |
Core Dump Analysis
Description
Post-mortem debugging using core dumps for crashes that occur before gdbserver can catch them.
When to Use
- Crashes during very early startup
- Crashes before gdbserver fully initializes
- When you need to reproduce and analyze offline
- Segfaults, aborts, or other fatal signals
Enable Core Dumps
ulimit -c unlimited
ulimit -c
Generate and Analyze
./ikigai
gdb ./ikigai core
Key Commands
bt # Backtrace - where it crashed
bt full # Backtrace with local variables
frame N # Select stack frame
info locals # Variables in current frame
print var # Inspect variable
list # Source at crash point
info registers # CPU state at crash
x/20x $sp # Examine stack memory
Finding the Core File
cat /proc/sys/kernel/core_pattern
ls -la core*
ls -la /var/crash/
Workflow
- Enable core dumps:
ulimit -c unlimited
- Run app until crash
- Load core:
gdb ./ikigai core
- Get backtrace:
bt full
- Inspect frames and variables
References