On 11/15/2011 06:07 PM, Jed Brown wrote:
> On Tue, Nov 15, 2011 at 17:02, David Knezevic 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     I presume you need to compile PETSc with --with-debugging=1 for
>     this to
>     work, yes?
>
>
> No, but you would need that to have debugging symbols in PETSc code. 
> If I run
>
> ./example-opt -ksp_type does-not-exist -start_in_debugger
>
> I get
>
> (gdb) c
> Continuing.
>
> Program received signal SIGABRT, Aborted.
> 0x00007fc5e25a8965 in raise () from /lib/libc.so.6
> (gdb) bt
> #0  0x00007fc5e25a8965 in raise () from /lib/libc.so.6
> #1  0x00007fc5e25a9ddb in abort () from /lib/libc.so.6
> #2  0x00007fc5e52aa071 in PetscAbortErrorHandler () from 
> /home/jed/petsc/ompi-opt/lib/libpetscsys.so
> #3  0x00007fc5e52a6aa6 in PetscError () from 
> /home/jed/petsc/ompi-opt/lib/libpetscsys.so
> #4  0x00007fc5e6536a5b in KSPSetType () from 
> /home/jed/petsc/ompi-opt/lib/libpetscksp.so
> #5  0x00007fc5e652b6d8 in KSPSetFromOptions () from 
> /home/jed/petsc/ompi-opt/lib/libpetscksp.so
> #6  0x00007fc5e6a9515d in SNESSetFromOptions () from 
> /home/jed/petsc/ompi-opt/lib/libpetscsnes.so
> #7  0x000000000040252f in main ()
>
>
> If the error occurs in your code, it will have those function names in 
> the stack and symbols if you built your code with debugging symbols.

Got it, thanks!


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to