pproenca avatar

Nginx C Module Debug

When your nginx module crashes in production and you're staring at a cryptic segfault, this is your systematic debugging guide. It covers 45 rules across core dump analysis, memory bug detection with AddressSanitizer and Valgrind, GDB workflow for inspecting request state, and tracing request flow through nginx's phase handlers and filter chains. The priority ranking helps you start with crash signatures and NULL pointer patterns before diving into dynamic tracing tools. It's built from nginx.org's official development docs and complements the nginx-c-modules skill by focusing purely on diagnosis rather than correct implementation. Most useful when you need to debug use-after-free bugs, pool corruption, or subrequest crashes that only happen under load.

skills.sh installs
253
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill nginx-c-module-debug --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
Documentation, Debugging
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1julianobarbosa avatarmarkitdown-skilljulianobarbosa/claude-code-skillsGuide for using Microsoft MarkItDown - a Python utility for converting files to Markdown. Use when converting PDF, Word, PowerPoint, Excel, images, audio, HTML,252skills.sh installs
2casper-studios avatarskill-creatorcasper-studios/casper-marketplaceGuide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabil248skills.sh installs
3guia-matthieu avatarcopywriting-awarenessguia-matthieu/clawfu-skillsMaster Eugene Schwartz's 5 Stages of Awareness framework from "Breakthrough Advertising" (1966) to write copy that meets prospects where they are. Use when: Wri248skills.sh installs
4netease-youdao avatarweb-searchnetease-youdao/lobsteraiReal-time web search using Playwright-controlled browser. Use this skill when you need current information, latest documentation, recent news, or any data beyon246skills.sh installs
5levnikolaevich avatarln-612-semantic-content-auditorlevnikolaevich/claude-code-skillsChecks document semantic content against SCOPE and project goals, coverage gaps, off-topic content, SSOT. Use when auditing documentation relevance.245skills.sh installs
6mastepanoski avatarowasp-ai-testingmastepanoski/claude-skillsAI trustworthiness testing using OWASP AI Testing Guide v1. Execute 32 test cases across 4 layers (Application, Model, Infrastructure, Data) with practical payl245skills.sh installs