[petsc-users] Segfault in DMCreateMatrix
Blondel, Sophie
sblondel at utk.edu
Fri Jul 25 16:02:11 CDT 2025
Great,
Thank you very much!
Sophie
________________________________
From: Matthew Knepley <knepley at gmail.com>
Sent: Friday, July 25, 2025 15:48
To: Blondel, Sophie <sblondel at utk.edu>
Cc: PETSc users list <petsc-users at mcs.anl.gov>
Subject: Re: [petsc-users] Segfault in DMCreateMatrix
On Fri, Jul 25, 2025 at 3:00 PM Blondel, Sophie via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:
Hi,
I am using PETSc version v3.23.4 for my code https://urldefense.us/v3/__https://github.com/ORNL-Fusion/xolotl/blob/develop/xolotl/solver/src/PetscSolver.cpp__;!!G_uCfscf7eWS!fIWnEqjFirZwazUqGfkHLeuaz7w9ooew4360JV437QI5gTXUmvknS6lHCTh_5DDxxYfJSS163XB6VWf_YINWq-x7$ <https://urldefense.us/v3/__https://github.com/ORNL-Fusion/xolotl/blob/develop/xolotl/solver/src/PetscSolver.cpp__;!!G_uCfscf7eWS!dqsvk_x8eZNzest4mbTcVDQ6NcJLDJOQGX0QxmrWxJeM8s8Hi2altiu6F4EFTeZLDmw5F1rDvE-jHw3VgvjKx_kg$> and I am getting a segfault in DMCreateMatrix, more specifically from gdb:
#0 0x0000000000000651 in ?? ()
#1 0x00007ffff58f0119 in DMCreateMatrix (dm=0x55555571bb90, mat=0x7fffffffc680)
at /home/sophie/Workspace/xolotl-develop-source/external/petsc/src/dm/interface/dm.c:1519
#2 0x00007ffff7cafc9d in xolotl::solver::PetscSolver::initialize(int, double, _p_DM*, _p_Vec*) ()
from /home/sophie/Workspace/xolotl-develop-build/xolotl/solver/libxolotlSolver.so
PETSc was built with:
./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
Let me know what additional information I can provide to resolve the issue.
This was fixed here: https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/commit/4758e3ce3f4cc9adc2a49a02e2f05c2a0f943969__;!!G_uCfscf7eWS!fIWnEqjFirZwazUqGfkHLeuaz7w9ooew4360JV437QI5gTXUmvknS6lHCTh_5DDxxYfJSS163XB6VWf_YFpDlGYb$
so it will make it to the point release Sept 28, or it is in main.
Thanks,
Matt
Best,
Sophie
--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener
https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fIWnEqjFirZwazUqGfkHLeuaz7w9ooew4360JV437QI5gTXUmvknS6lHCTh_5DDxxYfJSS163XB6VWf_YE059MBY$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!fIWnEqjFirZwazUqGfkHLeuaz7w9ooew4360JV437QI5gTXUmvknS6lHCTh_5DDxxYfJSS163XB6VWf_YLuAjSH2$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250725/4f8c5025/attachment-0001.html>
More information about the petsc-users
mailing list