Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

nginx-c-module-debug

FreeNo executable scriptsNot checked

nginx C module debugging guidelines based on the official nginx development guide. This skill should be used when debugging nginx C module crashes, memory…

pproencaby pproenca★ 231 GitHub stars

About this skill

nginx.org C Module Debugging Best Practices

Comprehensive debugging guide for nginx C modules, derived from the official nginx development documentation and production debugging experience. Contains 45 rules across 8 categories, prioritized by impact to guide systematic diagnosis of crashes, memory bugs, and behavioral issues in nginx modules.

Companion skills: This skill complements nginx-c-modules (correctness) and nginx-c-module-perf-reliability (performance). This skill covers debugging and diagnosis.

When to Apply

Reference these guidelines when:

  • Diagnosing nginx worker crashes (segfaults, SIGABRT, SIGSEGV)
  • Finding memory bugs (use-after-free, leaks, pool corruption, buffer overruns)
  • Setting up GDB and core dump analysis for nginx
  • Tracing request flow through phases, subrequests, and filter chains
  • Instrumenting nginx modules with debug logging and dynamic tracing tools

Rule Categories by Priority

Priority Category Impact Prefix
1 Crash Diagnosis & Signals CRITICAL crash-
2 Memory Bug Detection CRITICAL memdbg-
3 GDB & Core Dump Analysis HIGH gdb-
4 Request Flow Tracing HIGH trace-
5 Debug Logging Patterns MEDIUM-HIGH dbglog-
6 State & Lifecycle Debugging MEDIUM state-
7 Dynamic Tracing Tools MEDIUM probe-
8 Build & Sanitizer Configuration LOW-MEDIUM build-

Quick Reference

1. Crash Diagnosis & Signals (CRITICAL)

2. Memory Bug Detection (CRITICAL)

3. GDB & Core Dump Analysis (HIGH)

4. Request Flow Tracing (HIGH)

5. Debug Logging Patterns (MEDIUM-HIGH)

  • [dbglog-debug-mask](references/dbglog-debug-mask.
Full SKILL.md on GitHub

Install nginx-c-module-debug in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

assets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/build-asan-configure.mdreferences/build-debug-flags.mdreferences/build-debug-palloc.mdreferences/build-single-process.mdreferences/build-valgrind-suppressions.mdreferences/crash-double-free-finalize.mdreferences/crash-error-page-redirect.mdreferences/crash-null-deref-pattern.mdreferences/crash-segfault-signature.mdreferences/crash-stack-overflow.mdreferences/crash-worker-exit-log.mdreferences/dbglog-debug-connection.mdreferences/dbglog-debug-mask.mdreferences/dbglog-format-ngx-str.mdreferences/dbglog-log-action-string.mdreferences/dbglog-memory-buffer.mdreferences/gdb-attach-worker.mdreferences/gdb-backtrace-read.mdreferences/gdb-coredump-setup.mdreferences/gdb-inspect-request.mdreferences/gdb-memory-buffer-extract.mdreferences/gdb-watchpoint-corruption.mdreferences/memdbg-buffer-overrun.mdreferences/memdbg-cleanup-handler-leak.mdreferences/memdbg-pool-leak-pattern.mdreferences/memdbg-slab-corruption.mdreferences/memdbg-temp-pool-misuse.mdreferences/memdbg-use-after-free.mdreferences/memdbg-valgrind-pool-trace.mdreferences/probe-dtrace-request.mdreferences/probe-ebpf-latency.mdreferences/probe-strace-fd-leak.mdreferences/probe-strace-syscall.mdreferences/probe-systemtap-pool.mdreferences/state-connection-lifecycle.mdreferences/state-event-flag-debug.mdreferences/state-request-count-track.md

FAQ

What does the nginx-c-module-debug skill do?

nginx C module debugging guidelines based on the official nginx development guide. This skill should be used when debugging nginx C module crashes, memory bugs, request flow issues, or production problems. Triggers on tasks involving segfault analysis, coredump debugging, GDB inspection, memory leak detection, request phase tracing, AddressSanitizer setup, or nginx module troubleshooting.

How do I install the nginx-c-module-debug skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the nginx-c-module-debug skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare nginx-c-module-debug with