From: Arnaud Legrand Date: Wed, 25 Apr 2012 22:16:22 +0000 (+0200) Subject: Do not try to resume a dying process. The corresponding surf structure X-Git-Tag: v3_7~63^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a5678149773fe12aedf33dec00c7bda60499d262 Do not try to resume a dying process. The corresponding surf structure would already have been freed, and this would result in a mess. That's also why we make sure that resume simcalls occurs before kill simcalls in SIMIX_run. --- diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index d08aead971..215e06a09b 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -381,7 +381,8 @@ void SIMIX_process_resume(smx_process_t process, smx_process_t issuer) { xbt_assert((process != NULL), "Invalid parameters"); - process->suspended = 0; + if(process->context->iwannadie) return; + process->suspended = 0; /* If we are resuming another process, resume the action it was waiting for if any. Otherwise add it to the list of process to run in the next round. */