CHKMEMQ
Aron Ahmadia
aja2111 at columbia.edu
Wed Jul 23 13:35:37 CDT 2008
unless you're on an OS X machine, in which case you should use libgmalloc:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/libgmalloc.3.html
~A
On Wed, Jul 23, 2008 at 2:25 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> To emphasis Satish's point you should definitely use www.valgrind.org to
> remove
> all the memory bugs before starting to use it with PETSc.
>
> valgrind is the closest thing to a magic bullet I have ever seen in
> computing.
>
> Barry
>
>
>
> On Jul 23, 2008, at 1:04 PM, Satish Balay wrote:
>
> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20080723/96f7c672/attachment.htm>
More information about the petsc-users
mailing list