Tagged articles

addresssanitizer

8 articles · Page 1 of 1
Deepin Linux
Deepin Linux
Jul 14, 2026 · Backend Development

How to Diagnose C++ Memory Leaks and Segmentation Faults for High‑Frequency Interviews

The article explains why memory leaks and segmentation faults are hard‑to‑detect hidden bugs in Linux C++ back‑end and embedded development, illustrates common causes with concrete code samples, and walks through Linux commands and tools such as top, ps, pmap, vmstat, Valgrind, AddressSanitizer, memleak and gdb to locate and fix these issues.

Debuggingaddresssanitizergdb
0 likes · 25 min read
How to Diagnose C++ Memory Leaks and Segmentation Faults for High‑Frequency Interviews
Big Data Technology Tribe
Big Data Technology Tribe
Jun 24, 2026 · Backend Development

Detecting C++ Memory Errors with AddressSanitizer

AddressSanitizer (ASan) is a fast runtime memory error detector for C/C++ that uses compiler instrumentation and shadow memory to catch heap, stack, and global out‑of‑bounds accesses, use‑after‑free, double‑free and leaks, with detailed reports and configurable options for debugging and CI.

C++addresssanitizermemory debugging
0 likes · 10 min read
Detecting C++ Memory Errors with AddressSanitizer
Deepin Linux
Deepin Linux
Oct 20, 2025 · Fundamentals

How to Detect and Fix C++ Memory Leaks on Linux: Tools, Tips, and Code

This article explains what memory leaks are in C++ on Linux, why they matter, how they occur, and provides practical guidance on detecting them with tools like Valgrind, AddressSanitizer, GDB, and mtrace, followed by concrete solutions such as proper new/delete usage, smart pointers, RAII, custom allocators, and memory pools.

C++LinuxRAII
0 likes · 39 min read
How to Detect and Fix C++ Memory Leaks on Linux: Tools, Tips, and Code
ByteDance SYS Tech
ByteDance SYS Tech
Dec 9, 2022 · Fundamentals

How Sanitizer Interceptors Detect Memory Bugs in Linux C++ Programs

This article explains the principles behind Google’s sanitizer tools, especially AddressSanitizer, covering symbol interposition, the interceptor mechanism, and how these techniques replace libc functions to reliably locate memory and thread errors in C++ applications on Linux.

C++Dynamic LinkingSymbol Interposition
0 likes · 18 min read
How Sanitizer Interceptors Detect Memory Bugs in Linux C++ Programs
Liangxu Linux
Liangxu Linux
May 31, 2020 · Fundamentals

Detecting Memory Leaks and Errors with AddressSanitizer (ASan)

This guide explains how to use GCC's built‑in AddressSanitizer to detect memory leaks, heap/stack/global buffer overflows, use‑after‑free, and initialization‑order bugs, providing sample code, compilation flags, and example outputs for each error type.

C++ debuggingGCCUse-After-Free
0 likes · 18 min read
Detecting Memory Leaks and Errors with AddressSanitizer (ASan)
dbaplus Community
dbaplus Community
Aug 22, 2016 · Backend Development

Debugging Rare Core Dumps in High‑Concurrency Nginx: From GDB to ASan

This article details a real‑world investigation of extremely low‑probability core dumps and memory leaks in a heavily modified Nginx/OpenSSL stack, covering debugging strategies, custom traffic‑control testing, distributed load generation, use of valgrind and AddressSanitizer, performance profiling with perf, and the mindset needed to solve such high‑concurrency bugs.

DebuggingNginxaddresssanitizer
0 likes · 21 min read
Debugging Rare Core Dumps in High‑Concurrency Nginx: From GDB to ASan