Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

(Observed with valgrind 3.2.1, fixed in 3.2.3)
Valgrind 3.2.1 sometimes produces supressions that don't work, like this:

Code Block
{
  <insert a suppression name here>
  Memcheck:Free
  fun:_vgrZU_libcZdsoZa_free
  fun:main
}

The identifying characteristic is that they begin with fun:_vg<something>

http://article.gmane.org/gmane.comp.debugging.valgrind/5939 explains what these symbols are.

The workaround is to replace fun:vg*_lib*<something> with fun:<something>, where something
should be a valid C or C++ mangled symbol.

The following test program demonstrates the problem

Code Block
#include <stdlib.h>
int main(int argc,char**argv) {
   char*p = malloc(10);
   free(p);
   free(p);
}