Tagged articles
14 articles
Page 1 of 1
Linux Kernel Journey
Linux Kernel Journey
Nov 17, 2025 · Operations

Four Diagrams to Quickly Diagnose Linux Memory Leaks

This guide explains Linux's virtual‑physical memory model, shows how to inspect system and process memory via /proc files, demonstrates a 100 MiB allocation test, and provides a step‑by‑step workflow—including ps sorting and Valgrind usage—to locate and fix memory leaks.

DebuggingLinuxmalloc
0 likes · 16 min read
Four Diagrams to Quickly Diagnose Linux Memory Leaks
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.

AddressSanitizerC++Linux
0 likes · 39 min read
How to Detect and Fix C++ Memory Leaks on Linux: Tools, Tips, and Code
php Courses
php Courses
Sep 24, 2025 · Fundamentals

Master C++ Debugging: GDB and Valgrind from Basics to Advanced

This article provides a comprehensive guide to C++ debugging, covering the installation, core commands, and practical examples of GDB and Valgrind, along with advanced techniques, common pitfalls, and best‑practice recommendations to help developers efficiently locate and fix memory and segmentation errors.

C++Debugginggdb
0 likes · 9 min read
Master C++ Debugging: GDB and Valgrind from Basics to Advanced
Deepin Linux
Deepin Linux
Dec 27, 2024 · Fundamentals

Comprehensive Guide to Using Valgrind for Memory Debugging and Performance Analysis

This article provides an in‑depth overview of Valgrind, explaining its architecture, the capabilities of its various tools such as Memcheck, Cachegrind, Callgrind, Helgrind and Massif, and offers step‑by‑step installation, configuration, and practical code examples for detecting memory errors, leaks, and performance bottlenecks in C/C++ programs.

C++Toolchainleak detection
0 likes · 28 min read
Comprehensive Guide to Using Valgrind for Memory Debugging and Performance Analysis
Liangxu Linux
Liangxu Linux
Nov 7, 2023 · Fundamentals

Mastering Valgrind: Installation, Core Tools, and Cross‑Compilation Guide

This article introduces Valgrind, outlines its main debugging tools, provides step‑by‑step installation and usage instructions on Linux, demonstrates memory‑error detection with a sample C program, and explains how to cross‑compile Valgrind for ARM targets.

Debugging ToolsMemory Debuggingcross-compilation
0 likes · 10 min read
Mastering Valgrind: Installation, Core Tools, and Cross‑Compilation Guide
dbaplus Community
dbaplus Community
Oct 17, 2020 · Fundamentals

How a Hidden Memory Leak Stole Hours: Debugging Multithreaded C++ Code

After noticing abnormal memory usage in a production service, the author traced a leak to a race condition in shared data during a C++ code refactor, demonstrated the debugging steps, explained why traditional tools like Valgrind help, and shared lessons on avoiding multithreaded memory leaks.

CDebuggingrace condition
0 likes · 10 min read
How a Hidden Memory Leak Stole Hours: Debugging Multithreaded C++ Code
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.

AddressSanitizerDebuggingNginx
0 likes · 21 min read
Debugging Rare Core Dumps in High‑Concurrency Nginx: From GDB to ASan
Qunar Tech Salon
Qunar Tech Salon
Jul 13, 2016 · Backend Development

Debugging Rare Core Dumps and Memory Leaks in High‑Concurrency Nginx with OpenSSL

The article describes a real‑world investigation of extremely rare core‑dump bugs and memory‑leak issues in a heavily modified Nginx+OpenSSL stack under high‑concurrency, detailing the debugging workflow, custom stress‑test tools, use of gdb, valgrind, AddressSanitizer, perf, flame graphs and performance‑tuning lessons.

asancore dumphigh concurrency
0 likes · 20 min read
Debugging Rare Core Dumps and Memory Leaks in High‑Concurrency Nginx with OpenSSL
21CTO
21CTO
Jun 18, 2016 · Backend Development

How to Debug Rare Core Dumps in High‑Concurrency Nginx: Tools & Strategies

This article shares a detailed post‑mortem of debugging extremely rare core dumps and memory leaks in a high‑concurrency Nginx HTTPS implementation, covering root‑cause analysis, custom stress‑test frameworks, and the use of tools such as gdb, valgrind, AddressSanitizer, perf and flame graphs to locate and fix the issues.

Debuggingasancore dump
0 likes · 21 min read
How to Debug Rare Core Dumps in High‑Concurrency Nginx: Tools & Strategies