X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/82904dcc37f75453c571a1a74e67c1ba282ebe23..a2c25e0bae01a59891fac21447f3210ba26302c5:/src/simix/smx_network.c diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 68d36ae49a..d5d4631509 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -625,7 +625,9 @@ void SIMIX_comm_finish(smx_action_t action) case SIMIX_LINK_FAILURE: TRY { XBT_DEBUG("Link failure in action %p between '%s' and '%s': posting an exception to the issuer: %s (%p)", - action, action->comm.src_proc->smx_host->name, action->comm.dst_proc->smx_host->name, + action, + action->comm.src_proc ? action->comm.src_proc->smx_host->name : NULL, + action->comm.dst_proc ? action->comm.dst_proc->smx_host->name : NULL, req->issuer->name, req->issuer); THROWF(network_error, 0, "Link failure"); } @@ -714,7 +716,7 @@ void SIMIX_comm_cancel(smx_action_t action) /* so remove from it and delete it */ if (action->state == SIMIX_WAITING) { SIMIX_rdv_remove(action->comm.rdv, action); - action->state = SIMIX_FAILED; + action->state = SIMIX_CANCELED; } else if (!MC_IS_ENABLED && (action->state == SIMIX_READY || action->state == SIMIX_RUNNING)) {