<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
Dear Stefano,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                      Thanks for your response. I have re-run the command as per your suggestion below,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and I get the full output as attached to this email ( the output was quite long so I thought it</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
better to attach it).   However, I am wondering whether the following lines of this output,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
which occur just when the program fails, may be something to do with the problem ?<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
       Many thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
                              Dan.<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
.</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; color:rgb(0,0,0)">
 check 01:           10           0           9
<div> check 02:           10           0           9</div>
<div>                     4                     4                     4</div>
<div>                     4                     4                     4</div>
<div>                     4                     4                     4</div>
<div>                     4</div>
<div> now for PetscIntView ...</div>
<div>0: 4 4 4 4 4 4 4 4 4 4</div>
<div>==841883== Invalid write of size 4</div>
<div>==841883==    at 0x503E784: petscintview_ (/data/work/slepc/PETSC/petsc-3.14.5/src/sys/error/ftn-custom/zerrf.c:109)</div>
<div>==841883==    by 0x40262C: all_stab_routines_mp_write_rows_to_petsc_matrix_ (/data/work/rotplane/omega_to_zero/stability/test/tmp10/tmp3/tryme.F:17)</div>
<div>==841883==    by 0x402465: MAIN__ (/data/work/rotplane/omega_to_zero/stability/test/tmp10/tmp3/tryme.F:40)</div>
<div>==841883==    by 0x402221: main (in /data/work/rotplane/omega_to_zero/stability/test/tmp10/tmp3/trashy.exe)</div>
<div>==841883==  Address 0x0 is not stack'd, malloc'd or (recently) free'd</div>
==841883== <br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
[0]PETSC ERROR: ------------------------------------------------------------------------[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range<br>
</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; color:rgb(0,0,0)">
.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
.<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Stefano Zampini <stefano.zampini@gmail.com><br>
<b>Sent:</b> Friday, April 9, 2021 9:17 AM<br>
<b>To:</b> dazza simplythebest <sayosale@hotmail.com><br>
<b>Cc:</b> petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject:</b> Re: [petsc-users] Newbie question: Strange failure when calling PetscIntView from slepc application</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">This way you are running mpiexec.hydra under valgrind. You want to run instead
<div class=""><br class="">
</div>
<div class=""><span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:16px">mpiexec.hydra -n 1 </span><font class="" size="3" face="Calibri, Helvetica, sans-serif">valgrind --track-origins=yes --leak-check=full  --fullpath-after= ./trashy.exe</font><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Apr 9, 2021, at 12:11 PM, dazza simplythebest <<a href="mailto:sayosale@hotmail.com" class="">sayosale@hotmail.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class=""><span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:16px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">valgrind
 --track-origins=yes --leak-check=full     mpiexec.hydra -n 1 ./trashy.exe</span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</body>
</html>