From: Martin Quinson Date: Wed, 29 Aug 2018 00:08:18 +0000 (+0200) Subject: improve debug messages and error reporting X-Git-Tag: v3_21~143 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8265fae7843fa515935916b005f15daa93ff2f26 improve debug messages and error reporting --- diff --git a/examples/s4u/platform-failures/s4u-platform-failures.tesh b/examples/s4u/platform-failures/s4u-platform-failures.tesh index 53a3e42bd3..12343ec3ae 100644 --- a/examples/s4u/platform-failures/s4u-platform-failures.tesh +++ b/examples/s4u/platform-failures/s4u-platform-failures.tesh @@ -2,7 +2,6 @@ p Testing a simple master/worker example application handling failures TCP crosstraffic DISABLED -! output sort 19 $ $SG_TEST_EXENV ${bindir:=.}/s4u-platform-failures$EXEEXT --log=xbt_cfg.thres:critical --log=no_loc ${platfdir}/small_platform_with_failures.xml ${srcdir:=.}/s4u-masterworker-failures_d.xml --cfg=path:${srcdir} --cfg=network/crosstraffic:0 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n" --log=surf_cpu.t:verbose > [ 0.000000] (0:maestro@) Cannot launch process 'worker' on failed host 'Fafard' > [ 0.000000] (1:master@Tremblay) Got 5 workers and 20 tasks to process diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index fd72b81eb2..8c9e22a3c5 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -101,7 +101,8 @@ void SIMIX_process_cleanup(smx_actor_t process) comm->cancel(); } - XBT_DEBUG("%p should not be run anymore",process); + XBT_DEBUG("%s@%s(%ld) should not run anymore", process->get_cname(), process->iface()->get_host()->get_cname(), + process->pid_); simix_global->process_list.erase(process->pid_); if (process->host_ && process->host_process_list_hook.is_linked()) simgrid::xbt::intrusive_erase(process->host_->pimpl_->process_list_, *process); @@ -758,6 +759,7 @@ void SIMIX_process_yield(smx_actor_t self) XBT_DEBUG("Process %s@%s is dead", self->get_cname(), self->host_->get_cname()); self->context_->stop(); + xbt_die("I should be dead by now."); } if (self->suspended_) {