Valgrind
Note that valgrind
is installed on cs.indstate.edu but not on all of the lab desktops, so make sure you are logged into cs in the terminal (e.g., ssh username@cs.indstate.edu
).
First, you should make sure to compile your program with debugging information enabled. See GNU Debugger. You can run the valgrind
memory checker by running:
valgrind program_file.o