[petsc-dev] plex memory leaks in master

Sean Farley sean.michael.farley at gmail.com
Mon Feb 23 14:10:53 CST 2015


Barry Smith writes:

> 323a324,334
>> [0]Total space allocated 96 bytes
>> [ 0]96 bytes DMPlexCreateConstraintMatrix_Anchors() line 5852 in /usr/home/balay/petsc.clone-2/src/dm/impls/plex/plex.c
>> [1]Total space allocated 160 bytes
>> [ 1]96 bytes DMPlexCreateConstraintMatrix_Anchors() line 5852 in /usr/home/balay/petsc.clone-2/src/dm/impls/plex/plex.c
>> [ 1]64 bytes DMPlexCreateConstraintMatrix_Anchors() line 5852 in /usr/home/balay/petsc.clone-2/src/dm/impls/plex/plex.c
>> [2]Total space allocated 192 bytes
>> [ 2]96 bytes DMPlexCreateConstraintMatrix_Anchors() line 5852 in /usr/home/balay/petsc.clone-2/src/dm/impls/plex/plex.c
>> [ 2]96 bytes DMPlexCreateConstraintMatrix_Anchors() line 5852 in /usr/home/balay/petsc.clone-2/src/dm/impls/plex/plex.c
>> [3]Total space allocated 160 bytes
>> [ 3]96 bytes DMPlexCreateConstraintMatrix_Anchors() line 5852 in /usr/home/balay/petsc.clone-2/src/dm/impls/plex/plex.c
>> [ 3]64 bytes DMPlexCreateConstraintMatrix_Anchors() line 5852 in /usr/home/balay/petsc.clone-2/src/dm/impls/plex/plex.c
> /home/balay/petsc.clone-2/src/dm/impls/plex/examples/tests
> Possible problem with with runex3_nonconforming_tensor_2, diffs above
>
>
> http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/02/22/examples_master_arch-freebsd-cxx-pkgs-opt_wii.log
>
> Remember to always have the environmental variable 
>
> export PETSC_OPTIONS=-malloc_test
>
> this will test for memory leaks in debug versions of the code and will be ignored in optimized so you can always have it set and thus fine memory leaks as soon as you introduce them.

How much should we fine them?



More information about the petsc-dev mailing list