Excellent point. Thanks!
I think that this will require a little tomfoolery to fix properly
because we can't simply return NULL (you can't expect to use the
pointer that we return to store anything, but you should be able to
expect to be able to dereference it without seg faulting).
I'll fix a ticket for fixing.
On Jul 23, 2007, at 8:56 PM, Lisandro Dalcin wrote:
If I understand correctly the standard,
http://www.mpi-forum.org/docs/mpi-20-html/node54.htm#Node54
MPI_ALLOC_MEM with size=0 is valid ('size' is a nonnegative integer)
Then, using branch v1.2, I've got the following warning at runtime:
malloc debug: Request for 0 bytes (base/mpool_base_alloc.c, 194)
As always, forget me if this was already reported.
Regards,
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel
--
Jeff Squyres
Cisco Systems