Top "Valgrind" questions

Valgrind is a dynamic analysis tool for Linux, OS X, Android, and Solaris systems.

How do you interpret cachegrind output for caching misses?

Out of curiosity I ran coded up several different versions of matrix Multiplication and ran cachegrind against it. In my …

c++ caching optimization valgrind cachegrind
Favorite Valgrind Options

I usually use this: valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./mycode But not sure if on …

c++ debugging valgrind options
How to suppress valgrind warnings by the origin of the uninitialized values?

Valgrind will tell you the origin of the uninitialized values with the track-origins=yes option. I tried to suppress these …

valgrind
Valgrind Error: in use at exit: 72,704 bytes C++ Initialization List weirdness with char*

Issue: I have a weird issue that I wasn't expecting. I have a class called Answers and within the header …

c++ gcc valgrind initializer-list initialization-list
SDL Memory Leaks detected using Valgrind

Here is the SDL program: #include <SDL/SDL.h> int main(int argc, char** argv){ SDL_Init(SDL_…

c++ memory-leaks sdl valgrind ubuntu-10.10
How to do memory check on a daemon program?

I have written a C++ application, that runs forever until terminated manually. It monitors other important applications. As a result …

c++ memory-management memory-leaks valgrind memory-leak-detector
valgrind doesn't accept newest version of glibc

Valgrind doesn't like glibc 2.15: checking the GLIBC_VERSION version... unsupported version 2.15 configure: error: Valgrind requires glibc version 2.2 - 2.14 How can …

valgrind
Is there a way to install Valgrind on Catalina?

Is there a way to install Valgrind on Catalina and have it run properly? If so, I would very much …

c++ macos valgrind macos-mojave macos-catalina
Should I use Helgrind or DRD for thread error detection?

Looks like Valgrind has two tools that both do thread error detection: Helgrind and DRD. These tools are substantially similar. …

c pthreads valgrind
Valgrind reports memory 'possibly lost' when using glib data types

I'm developing a library using a number of glib datastructures (GHashTable, GSList etc.). I've been checking my code frequently for …

c valgrind glib