Nginx c module debug

From pproenca/dot-skills · View interactive version

Nginx c module debug is an AI agent skill from the GitHub repository pproenca/dot-skills. 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

How to use this skill

Skill file

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:

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)

6. State & Lifecycle Debugging (MEDIUM)

7. Dynamic Tracing Tools (MEDIUM)

8. Build & Sanitizer Configuration (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

| File | Description |

|------|-------------|

| references/_sections.md | Category definitions and ordering |

| assets/templates/_template.md | Template for new rules |

| metadata.json | Version and reference information |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.