[petsc-users] glibc detected

(Rebecca) Xuefei YUAN xy2102 at columbia.edu
Sat Apr 17 16:37:48 CDT 2010


Dear all,

I found the bug of the code, it is a mistake at the declaration. I fixed it.

Thanks a lot for your kind help!

Best,

Rebecca




Quoting Jed Brown <jed at 59A2.org>:

> On Sat, 17 Apr 2010 11:07:55 -0400, "(Rebecca) Xuefei YUAN"   
> <xy2102 at columbia.edu> wrote:
>> Dear Jed,
>>
>> What did I do wrong on this? Nothing comes out from -malloc 0:
>
>   $ valgrind ./twgcqt2unffnictvscj.exe -options_file option_all -malloc 0
>
> Run it this way.  The "-malloc 0" option turns off PETSc's sentinels
> (that debug PetscMalloc uses to detect memory corruption) so that
> valgrind can do it's job better.  Note that you can have valgrind attach
> a debugger at the error points with
>
>   $ valgrind --db-attach=yes ./twgcqt2unffnictvscj.exe -options_file  
>  option_all -malloc 0
>
> Jed
>
>



-- 
(Rebecca) Xuefei YUAN
Department of Applied Physics and Applied Mathematics
Columbia University
Tel:917-399-8032
www.columbia.edu/~xy2102



More information about the petsc-users mailing list