<p dir="ltr">Does the bug also affect the release (maint) or did it appear since then? Best to fix in the branch that introduced it, unless that is too old. In any case, fix for the oldest integration branch that needs the fix.</p>

<div class="gmail_quote">On Oct 2, 2013 11:06 AM, "Hong Zhang" <<a href="mailto:hzhang@mcs.anl.gov">hzhang@mcs.anl.gov</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra">Stefano:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hong,<br><br></div>

currently in master there's an error in PetscSubcommSetTypeGeneral, namely in the loop starting at line 188<br><br><pre><span>for</span> <span>(</span><span>i</span><span>=</span><span>0</span><span>;</span> <span>i</span><span><</span><span>2</span><span>*</span><span>size</span><span>;</span> <span>i</span><span>++</span><span>)</span> <span>{</span>
<a name="14179ec0274b3dcb_14179d0783373c78_cl-189"></a>    <span>subsize</span><span>[</span><span>recvbuf</span><span>[</span><span>i</span><span>]]</span> <span>=</span> <span>recvbuf</span><span>[</span><span>i</span><span>+</span><span>1</span><span>];</span>
<a name="14179ec0274b3dcb_14179d0783373c78_cl-190"></a><span>}</span></pre>recvbuf is allocated at line 178 as 2*size*sizeof(PetscMPIInt), and the loop tries to read at location 2*size<br><br></div>Could you please fix it?</div>
</blockquote>
<div> </div><div>Hmm, your fix is correct. </div><div><br></div><div>Jed: </div><div>Can I fix it on master directly, or shall I do it on a branch?</div><div>Hong</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><span><font color="#888888"><br><br><br clear="all">
<div><div><div><div><br>-- <br><div dir="ltr"><pre cols="72"><font><span style="font-family:garamond,serif"><span style="font-family:garamond,serif"></span>Ph. D. Stefano Zampini<br>CINECA  
SuperComputing Applications and Innovations Department - SCAI
Via dei Tizii, 6 00185 Roma - ITALY
------------------------------------------------------------------------------------------------------------------------
Email: <a href="mailto:s.zampini@cineca.it" target="_blank"><span>s.zampini@cineca.it</span></a>
SkypeID: stefano.zampini
GoogleTalk: <a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>
Tel: <a value="+390644486720">+39 06.44486.707<br></a></span></font><a value="+390644486720"><font><span style="font-family:garamond,serif">------------------------------------------------------------------------------------------------------------------------
</span></font><br></a></pre></div>
</div></div></div></div></font></span></div>
</blockquote></div><br></div></div>
</blockquote></div>