valgrind

This is an old revision of the document!


Installing Valgrind

pkg install valgrind will install a patched version of Valgrind 3.10.1 from the bitbucket repo described below.

pkg install valgrind-devel will install a version of Valgrind that is close to the official Valgrind 3.17.0 on FreeBSD 11 to FreeBSD 14.

Building valgrind requires the following ports to be installed:

  • gmake
  • autoconf
  • automake

The most recent version of Valgrind for is available on github.

To check out the source

git clone https://github.com/paulfloyd/freebsd_valgrind.git
sh autogen.sh
./configure
gmake
gmake install

Below is an old list of jobs that needed doing. rfork is still not implemented. We're working on upstream integration. TLS does affect Helgrind and possibly DRD. There are still some signal issues, mainly on i386.

  1. Test more syscalls which are disabled and implement the missing ones (rfork mainly, others to come).
  2. Push FreeBSD changes to upstream valgrind
  3. Fix support for FreeBSD TLS
  4. Growable stack / SIGSEGV / kqueue signal delivery issue.
  5. ptrace handlers
  • valgrind.1617122303.txt.gz
  • Last modified: 2021/03/30 16:38
  • by PaulFloyd