Introduction to the Valgrind Debugger/Profiler
Pierre Aubert
Prerequisites
Compiler
We are going to use the GCC-7 compiler (you can possibly use an old compiler for this tutorial but I don't have one). If you are stucked with an other compiler or with an older version of GCC you can install it with Anaconda (in your tutorial environement) :conda install gcc7
Follow with Docker
This lecture can be followed on https://jupyter.must-dc.cloud/hub/spawn or with a docker image :docker pull gitlab-registry.in2p3.fr/cta-lapp/cours/introduction_valgrind/introduction-valgrind docker run -it -p 8888:8888 gitlab-registry.in2p3.fr/cta-lapp/cours/introduction_valgrind/introduction-valgrind
Debugger
We wille use gdb (>= 7.11.1) to debug our programs.Compilation tools
We will use CMake and Make to compile our programs.The correction of the whole tutorial is available here.