sanitizers

Interpret ASan, UBSan, and TSan outputs to identify memory safety violations and data races.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/multicam/ikigai-rev --skill sanitizers-multicam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sanitizers
Source: https://github.com/multicam/ikigai-rev/tree/main/.claude-i/library/sanitizers
Command: npx skills add https://github.com/multicam/ikigai-rev --skill sanitizers-multicam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interprets sanitizer outputs (ASan, UBSan, TSan) to identify memory safety violations and data races in C/C++ projects, reducing debugging time.

Core Features & Use Cases

  • Interpret AddressSanitizer, UndefinedBehaviorSanitizer, and ThreadSanitizer outputs to locate buffer overflows, use-after-free, null dereferences, and data races.
  • Guide debugging sessions by mapping sanitizer reports to code paths, test scenarios, and reproducing failures.
  • Validate memory safety and concurrency guarantees during development and CI workflows across multiple build configurations.

Quick Start

Enable sanitizers during builds to detect and diagnose memory errors and data races in your code.

Frequently Asked Questions about sanitizers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I interpret AddressSanitizer output to find a use-after-free in C++?

Interpreting AddressSanitizer output involves mapping the reported stack trace to your C++ code paths to locate the exact memory access causing the use-after-free. This Skill guides you through correlating the ASan report with the failing test scenario to identify the root cause.

What is the best way to debug data races reported by ThreadSanitizer in C++?

Debugging ThreadSanitizer data races requires analyzing the reported concurrent memory accesses to identify unprotected shared state. This Skill helps interpret TSan outputs by mapping the conflicting thread operations back to your source code for targeted fixes.

How do I enable ASan, UBSan, and TSan builds to validate memory safety during testing?

Enabling ASan, UBSan, and TSan builds requires configuring your build system with the appropriate compiler flags and environment variables. This Skill provides guidance on setting up these sanitizer options to detect memory errors and data races during development and CI workflows.

Can I use UBSan to diagnose null pointer dereferences and undefined behavior in C code?

Yes, UBSan can diagnose null pointer dereferences and undefined behavior in C code by instrumenting the binary during compilation. This Skill helps interpret UBSan outputs to locate the exact code paths triggering these violations.

Why does my sanitizer report show a buffer overflow and how do I trace the root cause?

A sanitizer buffer overflow report indicates an out-of-bounds memory access, which you trace by reading the provided stack trace. This Skill assists in mapping the ASan report back to the specific array or memory allocation in your code to guide the fix.