<div dir="ltr">Not setting "filename" seems to have fixed this (MR)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 10, 2021 at 2:59 PM Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">whoops ...<div><br></div><div>This code is here. </div><div><br>           if (filename .ne. PETSC_NULL_CHARACTER) then<br>              filename = trim(filename)<br>           endif<br></div><div><br></div><div>Maybe filename should not be used as the destination?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 10, 2021 at 2:56 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am getting a segv when calling a Fortran subrouting from C, where PetscInit is called in the Fortran code only with a string for the rc file.<div><br></div><div>We have seen this on multiple platforms.</div><div><br></div><div>I got it in totalview and the segv was on the trim(filename) method</div><div><br></div></div>
</blockquote></div>
</blockquote></div>