[petsc-users] [petsc-maint] error message from GDB

praveen kumar praveenpetsc at gmail.com
Mon Jan 25 04:26:40 CST 2016


Thanks Matt. I ran with -start_in_debugger and fixed the error. The code is
running but I can't figure out why the results are wrong when compared with
serial code. if you get time, please go through the code. it is a simple 2D
conduction code and I’ve employed DMDAcreate2D.



Thanks,
Praveen



On Mon, Jan 25, 2016 at 12:11 PM, Matthew Knepley <knepley at gmail.com> wrote:

> We will need to see a stack trace. You can use the debugger,
> -start_in_debugger, to get one.
>
> Also, always send the whole error message.
>
>   Thanks,
>
>     Matt
>
> On Mon, Jan 25, 2016 at 12:26 AM, praveen kumar <praveenpetsc at gmail.com>
> wrote:
>
>> I am employing PETSc for DD in existing serial fortran code. the program
>> ran for few seconds and showed segmentation fault core dumped. would anyone
>> suggest how to fix this
>> error message from GDB:
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x00007ffff64f7cc0 in PetscCheckPointer (ptr=0x15e00007fff,
>> dtype=PETSC_OBJECT) at /home/praveen/petsc/src/sys/error/checkptr.c:106
>> 106          PETSC_UNUSED volatile PetscClassId classid =
>> ((PetscObject)ptr)->classid;
>>
>>
>>
>
>
> --
> 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/20160125/5698d7c5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.F90
Type: text/x-fortran
Size: 14263 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160125/5698d7c5/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: input
Type: application/octet-stream
Size: 454 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160125/5698d7c5/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile
Type: application/octet-stream
Size: 515 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160125/5698d7c5/attachment-0003.obj>


More information about the petsc-users mailing list