Hi Brian,<br><br>you could help before with a Segfault in the BlueGene MPI layer (in scatterv). Do you consider the below described segfault a bug in the MPI layer or in Gromacs?<br><br>Roland<br><br><div class="gmail_quote">

---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mark Abraham</b> <span dir="ltr">&lt;<a href="mailto:Mark.Abraham@anu.edu.au">Mark.Abraham@anu.edu.au</a>&gt;</span><br>Date: Sun, Nov 22, 2009 at 10:11 PM<br>

Subject: [gmx-developers] broadcast of zero-length arrays<br>To: Gromacs Developers &lt;<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a>&gt;<br><br><br>Hi,<br>
<br>
During src/gmxlib/mvdata.c bc_grpopts(), my BlueGene/L segfaults during the broadcasts of the QMMM stuff. The lines that break are attempts to broadcast arrays of zero length. Adding a check for non-zero length into the definition of nblock_bc fixes the problem. Presumably a null pointer is being dereferenced inside the MPI library.<br>


<br>
I&#39;m not sure whether this observation is indicative of (this version of) IBM&#39;s MPI library not having implemented the full standard, the standard not specifying behaviour in this case, or GROMACS not being sufficiently defensive. I haven&#39;t found anything useful in the MPI documentation I have to hand. You could argue cases either way - the implementors of the library want to avoid such checks to speed performance, and the users of the library expect it either to take care of such housekeeping for them, or not dereference pointers unnecessarily (think buffering)...<br>


<br>
Does anyone know what expected behaviour is here?<br>
<br>
Cheers,<br>
<br>
Mark<br><font color="#888888">
-- <br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br>
</font></div><br><br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309<br>