<div dir="ltr"><div dir="ltr">On Mon, Aug 24, 2020 at 1:46 PM Barry Smith <<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Aug 24, 2020, at 12:39 PM, Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>> wrote:<br>
> <br>
> Barry Smith <<a href="mailto:bsmith@petsc.dev" target="_blank">bsmith@petsc.dev</a>> writes:<br>
> <br>
>>> On Aug 24, 2020, at 12:31 PM, Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>> wrote:<br>
>>> <br>
>>> Barry Smith <<a href="mailto:bsmith@petsc.dev" target="_blank">bsmith@petsc.dev</a>> writes:<br>
>>> <br>
>>>> So if a BLAS errors with SIGBUS then it is always an input error of just not proper double/complex alignment? Or some other very strange thing?<br>
>>> <br>
>>> I would suspect memory corruption.<br>
>> <br>
>> <br>
>> Corruption meaning what specifically?<br>
>> <br>
>> The routines crashing are dgemv which only take double precision arrays, regardless of what garbage is in those arrays i don't think there can be BUS errors resulting. They don't take integer arrays whose corruption could result in bad indexing and then BUS errors. <br>
>> <br>
>> So then it can only be corruption of the pointers passed in, correct?<br>
> <br>
> Such as those pointers pointing into data on the stack with incorrect sizes.<br>
<br>
But won't incorrect sizes "usually" lead to SEGV not SEGBUS?<br>
</blockquote></div><br clear="all"><div>My understanding was that roughly memory errors in the heap are SEGV and memory errors on the stack are SIGBUS. Is that not true?</div><div><br></div><div> Matt</div><div><br></div>-- <br><div dir="ltr" class="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="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>