<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>   Hmm, I thought this was a problem that was resolved a while ago. I will try to reproduce it.<div class=""><br class=""></div><div class="">   Barry</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 21, 2021, at 10:01 AM, Xiaoye S. Li <<a href="mailto:xsli@lbl.gov" class="">xsli@lbl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family: verdana, sans-serif; font-size: small;">When you have two matrices, I think you should create two separate communicators, i.e., two superlu grids, </div><div class="gmail_default" style="font-family: verdana, sans-serif; font-size: small;"><br class=""></div><div class="gmail_default" style="font-family: verdana, sans-serif; font-size: small;">Sherry Li</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 21, 2021 at 6:08 AM Deij-van Rijswijk, Menno <<a href="mailto:M.Deij@marin.nl" class="">M.Deij@marin.nl</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">






<div lang="EN-GB" class=""><div class=""><br class="webkit-block-placeholder"></div>
<div class="gmail-m_7570426752607845448WordSection1"><p class="MsoNormal"><span lang="EN-US" class="">Good afternoon,<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class="">In our code we're using two matrices that are preconditioned using SUPERLU_dist. Upon freeing the second matrix with MatDestroy, the program segfaults with the following stacktrace (see below). This happens with PETSc
 versions 3.14.5 and 3.15.0, whereas version 3.11.2 does not have this problem. In the code src\mat\impls\aij\mpi\superlu_dist\superlu_dist.c I see that Petsc_Superlu_dist_keyval_Delete_Fn has been added between 3.11.2 and 3.14.5, and the comment reads that
 it allows reusing the communicator when only a single matrix is used at the time. I'm wondering if using multiple matrices with SUPERLU_dist is problematic here?<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class="">Note: this is happening on single process and on multiple MPI processes.
<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class="">Best regards,<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class="">Menno Deij - van Rijswijk<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#0  0x000015554ffc7db4 in ompi_comm_free () from /home/mdeij/install-gnu/extLibs/lib/libmpi.so.40<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#1  0x0000155550021536 in PMPI_Comm_free () from /home/mdeij/install-gnu/extLibs/lib/libmpi.so.40<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#2  0x00001555534262ba in superlu_gridexit (grid=0x3689da0)<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">    at /home/mdeij/install-gnu/extLibs/Linux-x86_64-Intel/superlu_dist-6.3.0/SRC/superlu_grid.c:174<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#3  0x0000155553df094b in Petsc_Superlu_dist_keyval_Delete_Fn (comm=0x26a4e50, keyval=16, attr_val=0x3689d90,<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">    extra_state=0x0)<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">    at /home/mdeij/build-libs-gnu/superbuild/petsc/src/src/mat/impls/aij/mpi/superlu_dist/superlu_dist.c:97<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#4  0x000015554ffc145c in ompi_attr_delete_impl () from /home/mdeij/install-gnu/extLibs/lib/libmpi.so.40<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#5  0x000015554ffc3fdf in ompi_attr_delete_all () from /home/mdeij/install-gnu/extLibs/lib/libmpi.so.40<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#6  0x000015554ffc7ca7 in ompi_comm_free () from /home/mdeij/install-gnu/extLibs/lib/libmpi.so.40<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#7  0x0000155550021536 in PMPI_Comm_free () from /home/mdeij/install-gnu/extLibs/lib/libmpi.so.40<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#8  0x00001555538f31c5 in PetscCommDestroy (comm=0x29712e0)<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">    at /home/mdeij/build-libs-gnu/superbuild/petsc/src/src/sys/objects/tagm.c:217<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#9  0x00001555538f55ab in PetscHeaderDestroy_Private (h=0x29712a0)<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">    at /home/mdeij/build-libs-gnu/superbuild/petsc/src/src/sys/objects/inherit.c:121<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#10 0x0000155553b44626 in MatDestroy (A=0x26e1c98)<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">    at /home/mdeij/build-libs-gnu/superbuild/petsc/src/src/mat/interface/matrix.c:1310<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class="">#11 0x0000155553b87a86 in matdestroy_ (x=0x26e1c98, ierr=0x7fffffffc9cc)<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas" class=""><u class=""></u> <u class=""></u></span></p>
</div>
<br class="">
<font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class="">dr. ir.</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class="">
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class="">Menno A.</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class="">
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class="">Deij-van Rijswijk</font><font size="3" face="Segoe UI" class=""></font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class=""> |
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class="">Researcher</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class=""> |
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold" class="">Research & Development</font><br class="">
<font style="font-family:Verdana;font-size:9pt;color:rgb(125,125,125);font-weight:bold" class="">MARIN</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125)" class=""> | T
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125)" class="">+31 317 49 35 06</font><font color="#7d7d7d" size="2" face="Segoe UI" class=""></font><font style="font-family:Verdana;font-size:8pt" class=""> |
</font><span style="font-family:Verdana;font-size:8pt" class=""><a href="mailto:M.Deij@marin.nl" title="" style="font-family:Verdana;font-size:8pt" target="_blank" class=""><span style="font-family:Verdana;font-size:8pt" class="">M.Deij@marin.nl</span></a></span><font color="#7d7d7d" size="2" face="Segoe UI" class=""></font><font style="font-family:Verdana;font-size:8pt" class=""> |
</font><span style="font-family:Verdana;font-size:8pt" class=""><a href="http://www.marin.nl/" title="" style="font-family:Verdana;font-size:8pt" target="_blank" class=""><span style="font-family:Verdana;font-size:8pt" class="">www.marin.nl</span></a></span><br class="">
<br class="">
<a href="https://www.linkedin.com/company/marin" target="_blank" class=""><span id="cid:178f4f17e8938c963f1"><image350854.PNG></span></a> <a href="http://www.youtube.com/marinmultimedia" target="_blank" class=""><span id="cid:178f4f17e8922d5eb352"><image623ac8.PNG></span></a> <a href="https://twitter.com/MARIN_nieuws" target="_blank" class=""><span id="cid:178f4f17e8aaa1e45c73"><image6c0411.PNG></span></a> <a href="https://www.facebook.com/marin.wageningen" target="_blank" class=""><span id="cid:178f4f17e8ab5f5c884"><imagea99443.PNG></span></a><br class="">
<font style="font-family:Verdana;font-size:8pt" color="#7d7d7d" size="2" face="Verdana" class="">MARIN news:
<a href="https://www.marin.nl/news/iwsa-open-letter-release-for-shipping-decarbonisation" title="" target="_blank" class="">
IWSA Open letter release for shipping decarbonisation</a></font><div class=""><br class="webkit-block-placeholder"></div><div class=""><br class="webkit-block-placeholder"></div><p class=""><u class=""></u></p>
<u class=""></u><u class=""></u><u class=""></u>
</div>

</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>