<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div>  Hmm, looks like your build may be funny? It is not in debug mode <div><br></div><div><div>frame #2: 0x000000010eda20c8 libpetsc.3.018.dylib`PetscHeaderDestroy_Private + 1436</div><div>    frame #3: 0x000000010f10176c libpetsc.3.018.dylib`VecDestroy + 808</div><div>    frame #4: 0x0000000110199f34 libpetsc.3.018.dylib`KSPSolve_Private + 512</div><div><br></div><div>In debugger mode it would show the line numbers where the crash occurred and help us determine the problem. I do note the -g being used by the compilers so cannot explain off hand why it does not display the debug information.</div><div><br></div><div>  Barry</div><div><br></div><div><br><blockquote type="cite"><div>On Feb 9, 2023, at 12:42 PM, Sajid Ali Syed via petsc-users <petsc-users@mcs.anl.gov> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="markdown-here-wrapper" data-md-url="outlook.office365.com" markdown-here-wrapper-content-modified="true" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><p style="margin: 0px 0px 1.2em !important;">Hi PETSc-developers,<span class="Apple-converted-space"> </span></p><p style="margin: 0px 0px 1.2em !important;">In our application we call KSP_Solve as part of a step to propagate a beam through a lattice. I am observing a crash within KSP_Solve for an application only after the 43rd call to KSP_Solve when building the application and PETSc in debug mode, full logs for which are attached with this email (1 MPI rank and 4 OMP threads were used, but this crash occurs with multiple MPI ranks as well ). I am also including the last few lines of the configuration for this build. This crash does not occur when building the application and PETSc in release mode.<span class="Apple-converted-space"> </span></p><p style="margin: 0px 0px 1.2em !important;">Could someone tell me what causes this crash and if anything can be done to prevent it? Thanks in advance.</p><p style="margin: 0px 0px 1.2em !important;">The configuration of this solver is here :<span class="Apple-converted-space"> </span><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px; display: inline;">
<a href="https://github.com/fnalacceleratormodeling/synergia2/blob/sajid/features/openpmd_basic_integration/src/synergia/collective/space_charge_3d_fd_utils.cc#L273-L292">https://github.com/fnalacceleratormodeling/synergia2/blob/sajid/features/openpmd_basic_integration/src/synergia/collective/space_charge_3d_fd_utils.cc#L273-L292</a></code></p><p style="margin: 0px 0px 1.2em !important;"><br>Thank You,<br>Sajid Ali (he/him) | Research Associate<br>Scientific Computing Division<br>Fermi National Accelerator Laboratory<br><a href="http://s-sajid-ali.github.io/">s-sajid-ali.github.io</a></p><div title="MDH:PGRpdiBjbGFzcz0iZWxlbWVudFRvUHJvb2YiIHN0eWxlPSJmb250LWZhbWlseTpDYWxpYnJpLEFy
aWFsLEhlbHZldGljYSxzYW5zLXNlcmlmOyBmb250LXNpemU6MTJwdDsgY29sb3I6cmdiKDAsMCww
KTsgYmFja2dyb3VuZC1jb2xvcjpyZ2IoMjU1LDI1NSwyNTUpIj5IaSBQRVRTYy1kZXZlbG9wZXJz
LCA8YnI+PC9kaXY+PGRpdiBjbGFzcz0iZWxlbWVudFRvUHJvb2YgQ29udGVudFBhc3RlZDAiIHN0
eWxlPSJmb250LWZhbWlseTpDYWxpYnJpLEFyaWFsLEhlbHZldGljYSxzYW5zLXNlcmlmOyBmb250
LXNpemU6MTJwdDsgY29sb3I6cmdiKDAsMCwwKTsgYmFja2dyb3VuZC1jb2xvcjpyZ2IoMjU1LDI1
NSwyNTUpIj48YnI+SW4gb3VyIGFwcGxpY2F0aW9uIHdlIGNhbGwgS1NQX1NvbHZlIGFzIHBhcnQg
b2YgYSBzdGVwIHRvIHByb3BhZ2F0ZSBhIGJlYW0gdGhyb3VnaCBhIGxhdHRpY2UuIEkgYW0gb2Jz
ZXJ2aW5nIGEgY3Jhc2ggd2l0aGlu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FwcGxpY2FibGUiPnMtc2FqaWQtYWxp
LmdpdGh1Yi5pbzwvYT48L3NwYW4+PC9kaXY+PC9kaXY+PC9kaXY+PC9kaXY+PC9kaXY+PC9kaXY+
PGJyPjwvZGl2PjwvZGl2PjwvZGl2PjwvZGl2Pg==" style="height: 0px; width: 0px; max-height: 0px; max-width: 0px; overflow: hidden; font-size: 0em; padding: 0px; margin: 0px;"></div></div><span id="cid:AF637DA4-FA66-4915-80AE-6C9C68FFBA02"><ksp_crash_log></span></div></blockquote></div><br></div></body></html>