X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2f810149832a2d855c33d0df5b02d736c2081e41..a85110a0cc574b70238ac058937989e573434f88:/src/simix/smx_process.c diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index dcdadd2b04..a13e5653d2 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -51,11 +51,13 @@ void SIMIX_process_cleanup(smx_process_t process) if (action->comm.detached) { if (action->comm.refcount == 0) { + XBT_DEBUG("Increase the refcount before destroying it"); /* I'm not supposed to destroy a detached comm from the sender side, * unless there is no receiver matching the rdv */ action->comm.refcount++; SIMIX_comm_destroy(action); } + XBT_DEBUG("Don't destroy it since its refcount is %d",action->comm.refcount); } else { SIMIX_comm_destroy(action);