What problem does it solve? Debugging live Linux processes is hard: GDB attach fails silently due to ptrace restrictions, backtraces from stripped binaries are unreadable, and intermittent race conditions vanish under a debugger. This Skill provides a structured, batch-mode workflow for diagnosing hangs, segfaults, deadlocks, and memory corruption in running processes without guesswork. ## Core Features & Use Cases - Hang and Spin-Loop Diagnosis: Identify hot threads with ps and strace, then capture full thread backtraces with GDB batch mode to pinpoint accept loops, futex spins, and lock contention. - Crash and Core Dump Analysis: Capture register state, backtraces, and faulting addresses from segfaults, including stripped-binary symbol recovery via addr2line, readelf, and objdump. - Advanced Tooling Integration: Reverse debugging with rr (reverse watchpoints to find memory corruption), ASAN/TSAN sanitizer integration, deadlock detection via mutex wait-for graphs, and GDB Python scripting for automated thread categorization. - Use Case: A Rust HTTP server pegs a CPU core and stops responding to requests. Follow the triage loop to find the hot thread, strace it to reveal an accept4/EAGAIN spin loop, and capture a GDB backtrace pointing to the exact missing epoll call. ## Quick Start Ask the agent to diagnose why process PID 12345 is stuck at 100% CPU using the gdb-for-debugging workflow.