Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix some issues arising when killing new-born actors (see #260)
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 3 Apr 2018 11:40:22 +0000 (13:40 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 3 Apr 2018 11:40:22 +0000 (13:40 +0200)
src/kernel/activity/ExecImpl.cpp
src/simix/ActorImpl.hpp

index 521785d..e7b79f0 100644 (file)
@@ -75,7 +75,7 @@ void simgrid::kernel::activity::ExecImpl::post()
                                  /* If the host running the synchro failed, notice it. This way, the asking
                                   * process can be killed if it runs on that host itself */
     state = SIMIX_FAILED;
-  } else if (surfAction_->get_state() == simgrid::kernel::resource::Action::State::failed) {
+  } else if (surfAction_ && surfAction_->get_state() == simgrid::kernel::resource::Action::State::failed) {
     /* If the host running the synchro didn't fail, then the synchro was canceled */
     state = SIMIX_CANCELED;
   } else if (timeoutDetector && timeoutDetector->get_state() == simgrid::kernel::resource::Action::State::done) {
index 9fe8d89..7fb9ab5 100644 (file)
@@ -62,7 +62,6 @@ public:
   s4u::Host* host       = nullptr; /* the host on which the process is running */
   smx_context_t context = nullptr; /* the context (uctx/raw/thread) that executes the user function */
 
-  // TODO, pack them
   std::exception_ptr exception;
   bool finished     = false;
   bool blocked      = false;