<div dir="ltr"><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">I think that I've found a bug in the prerelease in file ncmpio_wait.c</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)"><br></div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">In coalescing blocklengths at line 2095 </div><div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)"></div><div> if (ai - a_last_contig == blocklengths[last_contig_req]) </div><div> /* user buffer of request j is contiguous from j-1</div><div> * we coalesce j to j-1 */</div><div> blocklengths[last_contig_req] += blocklengths[j];</div></div><div><br></div><div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">It's possible that <span style="font-family:arial,sans-serif;color:rgb(34,34,34)">blocklengths[last_contig_req] + blocklengths[j]; overflows the integer datatype.</span></div><div class="gmail_default">I tried to fix that by avoiding the coalescing:</div></div><div><br></div><div><div> if ((ai - a_last_contig == blocklengths[last_contig_req]) &&</div><div><span style="white-space:pre"> </span>(blocklengths[last_contig_req] + blocklengths[j] > 0))</div><div> /* user buffer of request j is contiguous from j-1</div><div> * we coalesce j to j-1 */</div><div> blocklengths[last_contig_req] += blocklengths[j];</div></div><div><br></div><div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">but that leads to another overflow problem :</div><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(56,118,29)">
<p class="gmail-p1"><span class="gmail-s1">ad_gpfs_aggrs.c:572: ADIOI_GPFS_Calc_my_req: Assertion `curr_idx == (int) curr_idx' failed.</span></p></div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><div>Jim Edwards<br><br></div><font size="1">CESM Software Engineer<br></font></div><font size="1">National Center for Atmospheric Research<br></font></div><font size="1">Boulder, CO</font> <br></div></div>
</div>