<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" face="Tahoma">Dear All,</font><div><font class="Apple-style-span" face="Tahoma"><br></font></div><div><font class="Apple-style-span" face="Tahoma">I have a memory leak problem with my program; it eventually exhausts all the memory on my system and program aborts. I was checking memory usage with Valgrind and there is a persistent error that always traces back PetscMallocAlign. Something like:</font></div><div><font class="Apple-style-span" face="Tahoma"><br></font></div><div><font class="Apple-style-span" face="Times"><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><b><div><span class="Apple-style-span" style="font-weight: normal;"><div><font class="Apple-style-span" face="Tahoma">==2918== </font></div><div><font class="Apple-style-span" face="Tahoma">==2918== 18,792 bytes in 2 blocks are possibly lost in loss record 2,256 of 2,257</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== at 0x4A04360: memalign (vg_replace_malloc.c:532)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== by 0x8AC18A: PetscMallocAlign(unsigned long, int, char const*, char const*, char const*, void**) (mal.c:30)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== by 0x8ADA8E: PetscTrMallocDefault(unsigned long, int, char const*, char const*, char const*, void**) (mtr.c:192)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== by 0x9E4230: VecCreate_MPI_Private(_p_Vec*, PetscTruth, int, double const*) (pbvec.c:187)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== by 0x9E48EA: VecCreate_MPI (pbvec.c:232)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== by 0x9A9E12: VecSetType(_p_Vec*, char const*) (vecreg.c:54)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== by 0x9FEA80: VecCreateMPI(ompi_communicator_t*, int, int, _p_Vec**) (vmpicr.c:42)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== by 0xBBFA6C: DACreateGlobalVector(_p_DA*, _p_Vec**) (dadist.c:42)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== by 0x6CE34F: main (PFMAT-main.cpp:76)</font></div><div><font class="Apple-style-span" face="Tahoma">==2918== </font></div><div><font class="Apple-style-span" face="Tahoma"><br></font></div></span></div><div><font class="Apple-style-span" face="Tahoma"><br></font></div><div><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Tahoma">I'm wondering if this is related to a some error in my declarations or a known issue or an issue at all? </font></span></div><div><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Tahoma"><br></font></span></div><div><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Tahoma">PS: I get the same kind of error both on my Mac os X 10.6 and Fedora 13.</font></span></div><div><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Tahoma"><br></font></span></div><div><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Tahoma">Best,</font></span></div><div><span class="Apple-style-span" style="font-weight: normal; "><font class="Apple-style-span" face="Tahoma">Ata Mesgarnejad</font></span></div></b></span></font></div></body></html>