<div dir="ltr"><div><div>Hi Jed,<br><br></div>I finally figured out why. I think there is a bug in the PETSc. I write a very simple program that can reproduce the same results. Please check the attachment. Type " make all -f makefilet " to run this code. Could you know how to fix this issue?<br>
<br></div>Thanks,<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 20, 2014 at 11:29 AM, Fande Kong <span dir="ltr"><<a href="mailto:fd.kong@siat.ac.cn" target="_blank">fd.kong@siat.ac.cn</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks, Jed,<br><br></div>I tried valgrind, but it could not catch any noises. I used these options: mpirun -n 8 valgrind --tool=memcheck -q --num-callers=20 --log-file=valgrind.log.%p ./nonlinearElasticity3d -malloc off .<br>
<br></div>I think I forget freeing something or petsc does.<br><br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 19, 2014 at 4:58 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Fande Kong <<a href="mailto:fd.kong@siat.ac.cn" target="_blank">fd.kong@siat.ac.cn</a>> writes:<br>
<br>
> I run my code with options: -malloc_debug -malloc_dump, then the following<br>
> messages are produced, but nothing happened in my code. I want to know what<br>
> kind of objects I forgot freeing. Any suggestions?<br>
<br>
</div>Huh, those should show more stack. Before trying to think hard, can you<br>
run with valgrind?<br>
<div><div><br>
> [0]Total space allocated 6864 bytes<br>
> [ 0]256 bytes PetscSplitReductionCreate() line 91 in<br>
> /home/fdkong/math/petsc-3.4.1/src/vec/vec/utils/comb.c<br>
> [ 0]256 bytes PetscSplitReductionCreate() line 88 in<br>
> /home/fdkong/math/petsc-3.4.1/src/vec/vec/utils/comb.c<br>
> [ 0]512 bytes PetscSplitReductionCreate() line 87 in<br>
> /home/fdkong/math/petsc-3.4.1/src/vec/vec/utils/comb.c<br>
> [ 0]512 bytes PetscSplitReductionCreate() line 86 in<br>
> /home/fdkong/math/petsc-3.4.1/src/vec/vec/utils/comb.c<br>
> [ 0]80 bytes PetscSplitReductionCreate() line 81 in<br>
> /home/fdkong/math/petsc-3.4.1/src/vec/vec/utils/comb.c<br>
> [ 0]16 bytes PetscThreadCommReductionCreate() line 448 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcommred.c<br>
> [ 0]512 bytes PetscThreadCommReductionCreate() line 440 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcommred.c<br>
> [ 0]256 bytes PetscThreadCommReductionCreate() line 436 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcommred.c<br>
> [ 0]1280 bytes PetscThreadCommReductionCreate() line 435 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcommred.c<br>
> [ 0]32 bytes PetscThreadCommReductionCreate() line 432 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcommred.c<br>
> [ 0]128 bytes PetscThreadCommWorldInitialize() line 1242 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcomm.c<br>
> [ 0]2560 bytes PetscThreadCommWorldInitialize() line 1241 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcomm.c<br>
> [ 0]32 bytes PetscThreadCommWorldInitialize() line 1233 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcomm.c<br>
> [ 0]16 bytes PetscThreadCommSetAffinities() line 424 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcomm.c<br>
> [ 0]48 bytes PetscThreadCommCreate() line 150 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcomm.c<br>
> [ 0]336 bytes PetscThreadCommCreate() line 146 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/threadcomm/interface/threadcomm.c<br>
> [ 0]32 bytes PetscCommDuplicate() line 151 in<br>
> /home/fdkong/math/petsc-3.4.1/src/sys/objects/tagm.c<br>
><br>
><br>
> Fande,<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>