[petsc-dev] developer hint

Barry Smith bsmith at mcs.anl.gov
Sun Nov 13 16:29:46 CST 2011


  I have PETSC_OPTIONS set in my .bashrc file to -malloc -malloc_debug -malloc_dump by default.

 This means when I introduce memory leaks I find them immediately.  Like someone just introduced in src/dm/examples/test/ex30.c but did not detect because they did not have these options set.

  Please fix your own messes before other people slip on them.


[ 0]80 bytes DMCreate_Sliced() line 277 in /Users/barrysmith/Src/petsc-dev/src/dm/impls/sliced/sliced.c
      [0]  DMSetType() line 1377 in /Users/barrysmith/Src/petsc-dev/src/dm/interface/dm.c
      [0]  DMSlicedCreate() line 310 in /Users/barrysmith/Src/petsc-dev/src/dm/impls/sliced/sliced.c
[ 0]16 bytes PetscCommDuplicate() line 152 in /Users/barrysmith/Src/petsc-dev/src/sys/objects/tagm.c
      [0]  PetscHeaderCreate_Private() line 30 in /Users/barrysmith/Src/petsc-dev/src/sys/objects/inherit.c
      [0]  DMCreate() line 32 in /Users/barrysmith/Src/petsc-dev/src/dm/interface/dm.c
      [0]  DMSlicedCreate() line 310 in /Users/barrysmith/Src/petsc-dev/src/dm/impls/sliced/sliced.c
[ 0]224 bytes DMCreate() line 39 in /Users/barrysmith/Src/petsc-dev/src/dm/interface/dm.c
      [0]  DMSlicedCreate() line 310 in /Users/barrysmith/Src/petsc-dev/src/dm/impls/sliced/sliced.c
[ 0]64 bytes DMCreate() line 39 in /Users/barrysmith/Src/petsc-dev/src/dm/interface/dm.c
      [0]  DMSlicedCreate() line 310 in /Users/barrysmith/Src/petsc-dev/src/dm/impls/sliced/sliced.c
[ 0]3776 bytes DMCreate() line 39 in /Users/barrysmith/Src/petsc-dev/src/dm/interface/dm.c
      [0]  DMSlicedCreate() line 310 in /Users/barrysmith/Src/petsc-dev/src/dm/impls/sliced/sliced.c


  Barry




More information about the petsc-dev mailing list