How do I tell valgrind to memcheck forked processes? How do I tell valgrind to memcheck forked processes? c c

How do I tell valgrind to memcheck forked processes?


  1. Valgrind follows forked processes when given the --trace-children=yes option.
  2. You should be able to achieve this by using suitable filters.
  3. No. Valgrind hooks into the module loading code using LD_PRELOAD, so attaching to a running process is not possible.