[petsc-dev] error messages

Jed Brown jed at jedbrown.org
Sat Feb 22 23:10:16 CST 2014


Patrick Sanan <patrick.sanan at gmail.com> writes:
> could (without MPI_abort messages) look more like this:
>
> [0]PETSC ERR: --------------------------------- PETSc Error -------------------------- 
> [0]PETSC ERR: See docs/troubleshooting.html for hints about trouble shooting.
> [0]PETSC ERR: ------------------------------------------------------------------------
> [0]PETSC ERR: Petsc Release Version 3.4.2, Jul, 02, 2013 
> [0]PETSC ERR: ./ex1 on a arch-darwin-c-debug named Patricks-MacBook-Pro.local by patricksanan Thu Feb 13 09:48:59 2014
> [0]PETSC ERR: Libraries linked from /Users/patricksanan/program/petsc-3.4.2/arch-darwin-c-debug/lib
> [0]PETSC ERR: Configure run at Mon Jul 15 11:19:14 2013 
> [0]PETSC ERR: Configure options --download-mpich --download-f-blas-laplack --cc-gcc --with-fc=/usr/local/bin/gfortran
> [0]PETSC ERR: ------------------------------------------------------------------------
> [0]PETSC ERR: Object is in wrong state!
> [0]PETSC ERR: Vec object's type is not set: Argument # 1!
> [0]PETSC ERR: VecDuplicate() line 513 in /Users/patricksanan/program/petsc-3.4.2/src/vec/vec/interface/vector.c
> [0]PETSC ERR: main() line 56 in src/ksp/ksp/examples/tutorials/ex1.c
> [0]PETSC ERR: ----------------------- End of PETSc Error -----------------------------

Thanks for your analysis.

The configure options can be really long (spilling over several lines),
so wherever it goes will be visual clutter.  Also, non-collective error
conditions reached in parallel usually produces a jumble of information
From each process.  The first few lines are more likely to make it
through unjumbled from the process that first hit the condition, so it
would be valuable to make it as helpful as possible.

I think a single link to a website is better than directing someone to
an html file in some subdirectory (might not be where they are now).
Perhaps the following is too compact, but I think it gets the
information out in a small number of lines and doesn't have a visual
delineation to end selection for copy/paste.

[0]PETSC ERR: Object is in wrong state!  See http://www.mcs.anl.gov/petsc/errors/
[0]PETSC ERR: Vec object's type is not set: Argument # 1!
[0]PETSC ERR: #0 VecDuplicate() line 513 in /Users/patricksanan/program/petsc-3.4.2/src/vec/vec/interface/vector.c
[0]PETSC ERR: #1 main() line 56 in src/ksp/ksp/examples/tutorials/ex1.c
[0]PETSC ERR: ./ex1 on a arch-darwin-c-debug named Patricks-MacBook-Pro.local by patricksanan 2014-02-13 09:48:59-08:00
[0]PETSC ERR: Libraries linked from /Users/patricksanan/program/petsc-3.4.2/arch-darwin-c-debug/lib
[0]PETSC ERR: Petsc Release Version 3.4.2 configured on 2013-07-15 11:19:14-06:00
[0]PETSC ERR: Configure options --download-mpich --download-f-blas-laplack --cc-gcc --with-fc=/usr/local/bin/gfortran


I think that numbering the stack (similar to gdb) is useful for
interpreting jumbled lines, and it should provide enough delineation to
interpret.  I think having the stack near the "what's wrong" is
important since it is most likely to provide the information for solving
the problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140222/f344c38a/attachment.sig>


More information about the petsc-dev mailing list