[petsc-users] problem with nested logging, standalone example
Klaij, Christiaan
C.Klaij at marin.nl
Sun Jul 6 12:56:46 CDT 2025
Attached is a standalone example of the issue described in the
earlier thread "problem with nested logging". The issue appeared
somewhere between petsc 3.19.4 and 3.23.4.
The example is a variation of ../ksp/tutorials/ex2f.F90, where
I've added the nested log viewer with one event as well as the
solution of a small system on rank zero.
When running on mulitple procs the example hangs during
PetscLogView with the backtrace below. The configure.log is also
attached in the hope that you can replicate the issue.
Chris
#0 0x000015554c84ea9e in mca_pml_ucx_recv (buf=0x7fffffff9e30, count=1,
datatype=0x15554c9ef900 <ompi_mpi_2dblprec>, src=1, tag=-12,
comm=0x7f1e30, mpi_status=0x0) at pml_ucx.c:700
#1 0x000015554c65baff in ompi_coll_base_allreduce_intra_recursivedoubling (
sbuf=0x7fffffff9e20, rbuf=0x7fffffff9e30, count=1,
dtype=0x15554c9ef900 <ompi_mpi_2dblprec>,
op=0x15554ca28980 <ompi_mpi_op_maxloc>, comm=0x7f1e30, module=0xaec630)
at base/coll_base_allreduce.c:247
#2 0x000015554c6a7e40 in ompi_coll_tuned_allreduce_intra_do_this (
sbuf=0x7fffffff9e20, rbuf=0x7fffffff9e30, count=1,
dtype=0x15554c9ef900 <ompi_mpi_2dblprec>,
op=0x15554ca28980 <ompi_mpi_op_maxloc>, comm=0x7f1e30, module=0xaec630,
algorithm=3, faninout=0, segsize=0) at coll_tuned_allreduce_decision.c:142
#3 0x000015554c6a054f in ompi_coll_tuned_allreduce_intra_dec_fixed (
sbuf=0x7fffffff9e20, rbuf=0x7fffffff9e30, count=1,
dtype=0x15554c9ef900 <ompi_mpi_2dblprec>,
op=0x15554ca28980 <ompi_mpi_op_maxloc>, comm=0x7f1e30, module=0xaec630)
at coll_tuned_decision_fixed.c:216
#4 0x000015554c68e160 in mca_coll_hcoll_allreduce (sbuf=0x7fffffff9e20,
rbuf=0x7fffffff9e30, count=1, dtype=0x15554c9ef900 <ompi_mpi_2dblprec>,
op=0x15554ca28980 <ompi_mpi_op_maxloc>, comm=0x7f1e30, module=0xaecb80)
at coll_hcoll_ops.c:217
#5 0x000015554c59811a in PMPI_Allreduce (sendbuf=0x7fffffff9e20,
recvbuf=0x7fffffff9e30, count=1, datatype=0x15554c9ef900 <ompi_mpi_2dblprec>, op=0x15554ca28980 <ompi_mpi_op_maxloc>, comm=0x7f1e30) at allreduce.c:123
#6 0x0000155553eabede in MPIU_Allreduce_Private () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#7 0x0000155553e50d08 in PetscPrintXMLNestedLinePerfResults () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#8 0x0000155553e5123e in PetscLogNestedTreePrintLine () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#9 0x0000155553e51f3a in PetscLogNestedTreePrint () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#10 0x0000155553e51e96 in PetscLogNestedTreePrint () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#11 0x0000155553e51e96 in PetscLogNestedTreePrint () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#12 0x0000155553e52142 in PetscLogNestedTreePrintTop () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#13 0x0000155553e5257b in PetscLogHandlerView_Nested_XML () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#14 0x0000155553e4e5a0 in PetscLogHandlerView_Nested () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#15 0x0000155553e56232 in PetscLogHandlerView () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#16 0x0000155553e588c3 in PetscLogView () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#17 0x0000155553e40eb5 in petsclogview_ () from /home/cklaij/ReFRESCO/trunk/install/extLibs/lib/libpetsc.so.3.22
#18 0x0000000000402c8b in MAIN__ ()
#19 0x00000000004023df in main ()
dr. ir. Christiaan Klaij | senior researcher
Research & Development | CFD Development
T +31 317 49 33 44 | https://urldefense.us/v3/__http://www.marin.nl__;!!G_uCfscf7eWS!dAFNrWR8FzE9RrQXQAlok1iR_fA-rZdm9JAi-dlnKTnbdNTOTCViw0Nc-jjU4g72I-mhE1x1MZaf8imksXwTrKU$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250706/7b3a543a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image043083.png
Type: image/png
Size: 5004 bytes
Desc: image043083.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250706/7b3a543a/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image954569.png
Type: image/png
Size: 487 bytes
Desc: image954569.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250706/7b3a543a/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image488066.png
Type: image/png
Size: 504 bytes
Desc: image488066.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250706/7b3a543a/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image817580.png
Type: image/png
Size: 482 bytes
Desc: image817580.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250706/7b3a543a/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex2f-cklaij-dbg.F90
Type: text/x-fortran
Size: 15291 bytes
Desc: ex2f-cklaij-dbg.F90
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250706/7b3a543a/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 2095623 bytes
Desc: configure.log
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250706/7b3a543a/attachment-0003.bin>
More information about the petsc-users
mailing list