Tag: Valgrind
7 posts
-
C++ Memory Leaks: Causes, Detection, and Prevention
Understand heap leaks: lost pointers, exception paths, shared_ptr cycles. Valgrind, ASan/LSan, heap profilers, Visual Studio, RAII, suppression files, and CI.
-
Profiling a C++ Game Server: perf, gprof, Valgrind, VTune, Tracy and Flame Graphs
When your multithreaded C++ game server burns 60% CPU and you cannot find the bottleneck: perf, gprof, Valgrind, VTune, Tracy, flame graphs, cache misses.
-
Valgrind for C++: Reading Memcheck Output, Leak Kinds, and When to Use ASan Instead
Run Valgrind Memcheck on C++ code, read its reports line by line, tell definitely lost from still reachable, write suppressions, and know when ASan fits better.
-
Tracking Down C++ Memory Leaks: Five Dangerous new/delete Patterns, Valgrind and ASan
What new and delete really do, five patterns that leak or corrupt memory, from double delete to delete vs delete[], and catching them with Valgrind and ASan.
-
Finding C++ Memory Leaks: Valgrind and AddressSanitizer
Find C++ heap leaks with Valgrind, ASan/LeakSanitizer and the Visual Studio CRT debug heap, then fix early returns, exception paths and shared_ptr cycles.
-
C++ Debugging: GDB, LLDB, Sanitizers, and Leaks
Production-grade C++ debugging: GDB/LLDB advanced usage, ASan/TSan/UBSan/MSan, Valgrind, core dumps, data races, deadlocks, and logging patterns.
-
C++ Memory Leak Debugging Case Study
A C++ server memory leak walkthrough: tracing and fixing it with Valgrind, ASan, and Heaptrack—from symptoms and root cause to fixes and prevention.