Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Misc. cosmetic changes.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 2 Oct 2021 12:03:03 +0000 (14:03 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 2 Oct 2021 19:12:37 +0000 (21:12 +0200)
.github/workflows/ci-bigdft.yml
src/kernel/activity/ExecImpl.hpp
src/kernel/actor/ActorImpl.cpp
src/simgrid/Exception.cpp
src/xbt/exception.cpp

index c5d86b5..ef8a6a7 100644 (file)
@@ -9,7 +9,7 @@ jobs:
   build:
 
     runs-on: ubuntu-latest
-    container: 
+    container:
       image: bigdft/sdk
       options: --user 0
 
index e02c10f..f52e203 100644 (file)
@@ -28,6 +28,7 @@ class XBT_PUBLIC ExecImpl : public ActivityImpl_T<ExecImpl> {
   std::vector<double> bytes_amounts_;
   s4u::Exec* piface_;
   int cb_id_ = -1; // callback id from Host::on_state_change.connect()
+
 public:
   ExecImpl();
   s4u::Exec* get_iface() { return piface_; }
index 33c107a..801eb53 100644 (file)
@@ -519,7 +519,7 @@ void create_maestro(const std::function<void()>& code)
 } // namespace simgrid
 
 /* needs to be public and without simcall because it is called by exceptions and logging events */
-const char* SIMIX_process_self_get_name() // XBT_ATTRIB_DEPRECATD_v333
+const char* SIMIX_process_self_get_name() // XBT_ATTRIB_DEPRECATED_v333
 {
   return SIMIX_is_maestro() ? "maestro" : simgrid::kernel::actor::ActorImpl::self()->get_cname();
 }
index d9c9e8e..d250e73 100644 (file)
@@ -35,8 +35,8 @@ bool ForcefulKillException::try_n_catch(const std::function<void()>& try_block)
   try {
     try_block();
     res = true;
-  } catch (ForcefulKillException const&) {
-    XBT_DEBUG("Caught a ForcefulKillException");
+  } catch (ForcefulKillException const& e) {
+    XBT_DEBUG("Caught a ForcefulKillException: %s", e.what());
     res = false;
   }
   return res;
index 8c4ac96..9fadba9 100644 (file)
@@ -88,8 +88,7 @@ XBT_ATTRIB_NORETURN static void handler()
     std::abort();
   }
 
-  // Get the current backtrace and exception
-  simgrid::xbt::Backtrace bt = simgrid::xbt::Backtrace();
+  // Get the current exception and show backtrace
   try {
     std::rethrow_exception(std::current_exception());
   }
@@ -120,7 +119,7 @@ XBT_ATTRIB_NORETURN static void handler()
     }
     XBT_ERROR("Unknown uncaught exception");
   }
-  show_backtrace(bt);
+  show_backtrace(simgrid::xbt::Backtrace());
   std::abort();
 }