Created
August 4, 2024 15:55
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| 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