From: thiery Date: Thu, 20 Jan 2011 17:36:34 +0000 (+0000) Subject: Don't access a task that failed to be received X-Git-Tag: v3.6_beta2~462 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a52c8775ea7ebcaa71502834b796e29623f8d320 Don't access a task that failed to be received git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9467 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/msg/gos.c b/src/msg/gos.c index 2ba058768f..e281bf7127 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -517,7 +517,8 @@ int MSG_comm_testany(xbt_dynar_t comms) */ void MSG_comm_destroy(msg_comm_t comm) { - if (SIMIX_req_comm_get_src_proc(comm) != SIMIX_process_self()) { + if (SIMIX_req_comm_get_src_proc(comm) != SIMIX_process_self() + && MSG_comm_get_status(comm) == MSG_OK) { m_task_t task; task = (m_task_t) SIMIX_req_comm_get_src_buff(comm); task->simdata->isused=0;