Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC: display the status of all actors in case of deadlock
[simgrid.git] / src / mc / api / RemoteApp.cpp
index 0371d51..64aed11 100644 (file)
@@ -92,7 +92,8 @@ static void run_child_process(int socket, const std::vector<char*>& args)
                "        Make sure that your binary exists on disk and is executable.",
                args[i], strerror(errno));
   if (strchr(args[i], '=') != nullptr)
-    XBT_CRITICAL("If you want to pass command-line parameters, please use --cfg=model-check/setenv:%s", args[i]);
+    XBT_CRITICAL("If you want to pass environment variables to the application, please use --cfg=model-check/setenv:%s",
+                 args[i]);
 
   xbt_die("Aborting now.");
 }
@@ -197,13 +198,12 @@ void RemoteApp::check_deadlock() const
              (int)sizeof(message));
 
   if (message.value != 0) {
-    XBT_CINFO(mc_global, "**************************");
-    XBT_CINFO(mc_global, "*** DEADLOCK DETECTED ***");
-    XBT_CINFO(mc_global, "**************************");
     XBT_CINFO(mc_global, "Counter-example execution trace:");
     for (auto const& frame : model_checker_->get_exploration()->get_textual_trace())
       XBT_CINFO(mc_global, "  %s", frame.c_str());
-    XBT_CINFO(mc_global, "Path = %s", model_checker_->get_exploration()->get_record_trace().to_string().c_str());
+    XBT_INFO("You can debug the problem (and see the whole details) by rerunning out of simgrid-mc with "
+             "--cfg=model-check/replay:'%s'",
+             model_checker_->get_exploration()->get_record_trace().to_string().c_str());
     model_checker_->get_exploration()->log_state();
     throw DeadlockError();
   }