[petsc-users] possible memory leak

Mark Adams mfadams at lbl.gov
Tue Dec 24 08:56:23 CST 2019

Try running with -malloc_debug

This should print out where unfreed memory was allocated. See what pops up.


On Tue, Dec 24, 2019 at 2:27 AM Marius Buerkle <mbuerkle at web.de> wrote:

> Hi,
> In my code I create and destroy during one run a lot of MPIAIJ matrices
> and it seems that not all memory is freed when I destroy the matrices.
> Moreover, it looks like the amount of “disappearing” memory increases with
> the number of processes. I am not so sure if I am doing something wrong or
> if it is really a memory leak. I have attached a simple reproducer.
> Best,
> Marius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20191224/2556b273/attachment-0001.html>

More information about the petsc-users mailing list