CHKMEMQ

Satish Balay balay at mcs.anl.gov
Wed Jul 23 13:04:28 CDT 2008


On Wed, 23 Jul 2008, Paul T. Bauman wrote:

> Hello,
> 
> Quick (and probably stupid) question: Does CHKMEMQ check *all* of memory used
> by the program for corruption or just the memory PETSc allocated? I have a
> code that I'm assigned to work on that doesn't use PETSc (yet), but I was
> hoping to use this macro to track down what I think is a memory corruption
> bug.

CHKMEMQ checks memory allocated by PetscMalloc() - for
out-of-bounds-write errors.

Valgrind is a general tool for detecting many more types of memory
corruption.

Satish




More information about the petsc-users mailing list