Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
improve debug messages and error reporting
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 29 Aug 2018 00:08:18 +0000 (02:08 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 29 Aug 2018 09:53:41 +0000 (11:53 +0200)
examples/s4u/platform-failures/s4u-platform-failures.tesh
src/simix/ActorImpl.cpp

index 53a3e42..12343ec 100644 (file)
@@ -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
index fd72b81..8c9e22a 100644 (file)
@@ -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_) {