PetscValidHeaderSpecific()

Matthew Knepley knepley at gmail.com
Tue Jan 6 19:19:26 CST 2009


On Tue, Jan 6, 2009 at 6:28 PM, (Rebecca) Xuefei YUAN
<xy2102 at columbia.edu>wrote:

> There is no message coming out when I run with -malloc_debug. I am using
> cygwin, any suggestions on that?


You would need to run the debugger, but that usually takes a lot of looking
around. I recommend
running your code on a Linux machine to find the memory overwrite.

  Matt


>
> Thanks!
>
> Rebecca
>
> Quoting Barry Smith <bsmith at mcs.anl.gov>:
>
>
>>   The most likely cause is memory corruption. The best way to solve
>> this problem is to run on linux using
>> valgrind (valgrind.org), the second best is to run with -malloc_debug
>> and see if any messages come out
>>
>>   Barry
>>
>> On Jan 6, 2009, at 4:44 PM, (Rebecca) Xuefei YUAN wrote:
>>
>>  Hi,
>>>
>>> I did have error information as at the end of this email, and I  found
>>> the error was a function called PetscValidHeaderSpecific(),  is there
>>> anything wrong with it?
>>>
>>> Thanks a lot!
>>>
>>> R
>>>
>>> [0]PETSC ERROR: Invalid argument!
>>> [0]PETSC ERROR: Wrong type of object: Parameter # 1!
>>> [0]PETSC ERROR: ----------------------------------------
>>> [0]PETSC ERROR: Petsc Release Version 3.0.0, Patch 0, Fri Dec 19
>>>  22:02:38 CST 2008
>>> [0]PETSC ERROR: See docs/changes/index.html for recent updates.
>>> [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
>>> [0]PETSC ERROR: See docs/index.html for manual pages.
>>> [0]PETSC ERROR: ----------------------------------------
>>> [0]PETSC ERROR: ./oreggt on a cygwin-c- named YUAN_WORK by Rebecca  Tue
>>> Jan 6 17:29:59 2009
>>> [0]PETSC ERROR: Libraries linked from
>>>  /home/Rebecca/soft/petsc-3.0.0-p0/cygwin-c-debug/lib
>>> [0]PETSC ERROR: Configure run at Mon Jan 5 13:50:14 2009
>>> [0]PETSC ERROR: Configure options --with-cc=gcc
>>>  --download-f-blas-lapack=1 --download-mpich=1 --useThreads=0
>>>  --with-shared=0
>>> [0]PETSC ERROR: ----------------------------------------
>>> [0]PETSC ERROR: MatDestroy() line 766 in src/mat/interface/matrix.c
>>> [0]PETSC ERROR: PCDestroy() line 88 in src/ksp/pc/interface/precon.c
>>> [0]PETSC ERROR: KSPDestroy() line 647 in src/ksp/ksp/interface/itfun.c
>>> [0]PETSC ERROR: SNESDestroy() line 1378 in src/snes/interface/snes.c
>>> [0]PETSC ERROR: PetscObjectDestroy() line 172 in
>>> src/sys/objects/destroy.c
>>> [0]PETSC ERROR: DMMGDestroy() line 220 in src/snes/utils/damg.c
>>> [0]PETSC ERROR: main() line 55 in oreggt.c
>>> application called MPI_Abort(MPI_COMM_WORLD,62) - process 0[unset]:
>>>  aborting job:
>>> application called MPI_Abort(MPI_COMM_WORLD,62) - process 0
>>>
>>>
>>>
>
>
> --
> (Rebecca) Xuefei YUAN
> Department of Applied Physics and Applied Mathematics
> Columbia University
> Tel:917-399-8032
> www.columbia.edu/~xy2102 <http://www.columbia.edu/%7Exy2102>
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090106/55981505/attachment.htm>


More information about the petsc-users mailing list