From: jean-noel quintin Date: Mon, 8 Oct 2012 23:22:39 +0000 (+0100) Subject: [smpi] correction bug for detached comm X-Git-Tag: v3_8~100 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e07778d78004b77855d37da45be50bea033207bd?hp=055eef977d08cc142d6732a6f678e1dbe8559dd3 [smpi] correction bug for detached comm -all the test passed bug on real exemple it doesn't work I have to found why and where to free these requests Sorry for the introduction of this bug. --- diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index 189c8ea087..03a8d6e8eb 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -219,7 +219,9 @@ static void SMPI_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t memcpy(comm->comm.dst_buff, buff, buff_size); if (comm->comm.detached) { // if this is a detached send, the source buffer was duplicated by SMPI sender to make the original buffer available to the application ASAP xbt_free(buff); - xbt_free(comm->comm.src_data);// inside SMPI the request is keep + //It seems that the request is used after the call there this should + //be free somewhereelse but where??? + //xbt_free(comm->comm.src_data);// inside SMPI the request is keep //inside the user data and should be free comm->comm.src_buff = NULL; }