From: Martin Quinson Date: Sat, 1 Jul 2023 16:20:53 +0000 (+0200) Subject: More verbose error and debug messages X-Git-Tag: v3.35~161 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/32bccc3c65aa626cdce6bec5c29f808638c8efe5 More verbose error and debug messages --- diff --git a/src/kernel/actor/CommObserver.cpp b/src/kernel/actor/CommObserver.cpp index bb2d4bf47c..2c0d55d172 100644 --- a/src/kernel/actor/CommObserver.cpp +++ b/src/kernel/actor/CommObserver.cpp @@ -50,6 +50,7 @@ static void serialize_activity_test(const activity::ActivityImpl* act, std::stri stream << ' ' << (uintptr_t)comm->src_buff_ << ' ' << (uintptr_t)comm->dst_buff_ << ' ' << comm->src_buff_size_; } else { stream << (short)mc::Transition::Type::UNKNOWN; + XBT_CRITICAL("Unknown transition in a test any. Bad things may happen"); } } static std::string to_string_activity_test(const activity::ActivityImpl* act) diff --git a/src/mc/api/State.cpp b/src/mc/api/State.cpp index e1e5b8ab55..9f6ec0cbf0 100644 --- a/src/mc/api/State.cpp +++ b/src/mc/api/State.cpp @@ -248,12 +248,12 @@ void State::sprout_tree_from_parent_state() "deciding when to make subtrees in ODPOR is incorrect"); xbt_assert((get_transition_in()->aid_ == min_process_node.value()->get_actor()) && (get_transition_in()->type_ == min_process_node.value()->get_action()->type_), - "We tried to make a subtree from a parent state who claimed to have executed `%s` " - "but whose wakeup tree indicates it should have executed `%s`. This indicates " + "We tried to make a subtree from a parent state who claimed to have executed `%s` on actor %ld" + "but whose wakeup tree indicates it should have executed `%s` on actor %ld. This indicates " "that exploration is not following ODPOR. Are you sure you're choosing actors " "to schedule from the wakeup tree?", - get_transition_in()->to_string(false).c_str(), - min_process_node.value()->get_action()->to_string(false).c_str()); + get_transition_in()->to_string(false).c_str(), get_transition_in()->aid_, + min_process_node.value()->get_action()->to_string(false).c_str(), min_process_node.value()->get_actor()); this->wakeup_tree_ = odpor::WakeupTree::make_subtree_rooted_at(min_process_node.value()); } diff --git a/src/mc/remote/AppSide.cpp b/src/mc/remote/AppSide.cpp index 90f221d1c4..5d00307aa9 100644 --- a/src/mc/remote/AppSide.cpp +++ b/src/mc/remote/AppSide.cpp @@ -267,6 +267,7 @@ void AppSide::handle_actors_status() const strncpy(probe.buffer.data(), str.c_str(), probe.buffer.size() - 1); probe.buffer.back() = '\0'; + XBT_DEBUG("send ACTOR_TRANSITION_PROBE(%s) ~> '%s'", actor->get_cname(), str.c_str()); xbt_assert(channel_.send(probe) == 0, "Could not send ACTOR_TRANSITION_PROBE payload: %s", strerror(errno)); } // NOTE: We do NOT need to reset `times_considered` for each actor's