<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Great, </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thank you very much!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Sophie</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Matthew Knepley <knepley@gmail.com><br>
<b>Sent:</b> Friday, July 25, 2025 15:48<br>
<b>To:</b> Blondel, Sophie <sblondel@utk.edu><br>
<b>Cc:</b> PETSc users list <petsc-users@mcs.anl.gov><br>
<b>Subject:</b> Re: [petsc-users] Segfault in DMCreateMatrix</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">On Fri, Jul 25, 2025 at 3:00 PM Blondel, Sophie via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:</div>
<div class="x_gmail_quote x_gmail_quote_container">
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg3355379064454320724">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><span style="color:rgb(0,0,0)">I am using PETSc version
</span><span style="color:black">v3.23.4 for my code <a href="https://urldefense.us/v3/__https://github.com/ORNL-Fusion/xolotl/blob/develop/xolotl/solver/src/PetscSolver.cpp__;!!G_uCfscf7eWS!dqsvk_x8eZNzest4mbTcVDQ6NcJLDJOQGX0QxmrWxJeM8s8Hi2altiu6F4EFTeZLDmw5F1rDvE-jHw3VgvjKx_kg$" target="_blank">
https://github.com/ORNL-Fusion/xolotl/blob/develop/xolotl/solver/src/PetscSolver.cpp</a> and I am getting a segfault in DMCreateMatrix, more specifically from gdb: </span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
#0  0x0000000000000651 in ?? ()</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
#1  0x00007ffff58f0119 in DMCreateMatrix (dm=0x55555571bb90, mat=0x7fffffffc680)</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
    at /home/sophie/Workspace/xolotl-develop-source/external/petsc/src/dm/interface/dm.c:1519</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
#2  0x00007ffff7cafc9d in xolotl::solver::PetscSolver::initialize(int, double, _p_DM*, _p_Vec*) ()</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
   from /home/sophie/Workspace/xolotl-develop-build/xolotl/solver/libxolotlSolver.so</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
PETSc was built with:</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
./configure PETSC_DIR=/home/sophie/Workspace/xolotl-develop-source/external/petsc PETSC_ARCH=dbg --prefix=/home/sophie/Workspace/xolotl-develop-build/external/petsc_install --with-fc=0 --with-cuda=0 --with-mpi --with-openmp=0 --with-debugging=1 --with-shared-libraries
 --with-64-bit-indices --download-kokkos --download-kokkos-kernels --with-cudac=0</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
Let me know what additional information I can provide to resolve the issue.</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>This was fixed here: <a href="https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/commit/4758e3ce3f4cc9adc2a49a02e2f05c2a0f943969__;!!G_uCfscf7eWS!fIWnEqjFirZwazUqGfkHLeuaz7w9ooew4360JV437QI5gTXUmvknS6lHCTh_5DDxxYfJSS163XB6VWf_YFpDlGYb$">https://gitlab.com/petsc/petsc/-/commit/4758e3ce3f4cc9adc2a49a02e2f05c2a0f943969</a></div>
<div>so it will make it to the point release Sept 28, or it is in main.</div>
<div><br>
</div>
<div>  Thanks,</div>
<div><br>
</div>
<div>     Matt</div>
<div> </div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg3355379064454320724">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
Best,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:black">
Sophie</div>
</div>
</div>
</blockquote>
</div>
<div><br clear="all">
</div>
<div><br>
</div>
<span class="x_gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener</div>
<div><br>
</div>
<div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fIWnEqjFirZwazUqGfkHLeuaz7w9ooew4360JV437QI5gTXUmvknS6lHCTh_5DDxxYfJSS163XB6VWf_YLuAjSH2$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>