Skip to content

Instantly share code, notes, and snippets.

@StefanoLusardi
Created August 4, 2024 15:55
Show Gist options
  • Select an option

  • Save StefanoLusardi/0510327d2a696db20c81b6d6412f1477 to your computer and use it in GitHub Desktop.

Select an option

Save StefanoLusardi/0510327d2a696db20c81b6d6412f1477 to your computer and use it in GitHub Desktop.
Script to build and install Valgrind 3.20 from source, with example of suppressions file.
#!/bin/bash
cd ~/Downloads
sudo apt remove --purge valgrind -y
wget https://sourceware.org/pub/valgrind/valgrind-3.20.0.tar.bz2
tar xvf valgrind-3.20.0.tar.bz2
export CC=gcc-12
cd valgrind-3.20.0
./configure
make
sudo make install
cd ..
rm -r valgrind-3.20.0
rm -r valgrind-3.20.0.tar.bz2
echo ""
valgrind --version
{
libc
Memcheck:Cond
obj:/usr/lib/x86_64-linux-gnu/libc.so.6
}
{
libc
Memcheck:Value8
obj:/usr/lib/x86_64-linux-gnu/libc.so.6
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment