From: Martin Quinson Date: Mon, 2 Jul 2018 13:22:11 +0000 (+0200) Subject: avoid a segfault triggered when debugging #131 [noci] X-Git-Tag: v3_21~578 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3b1f2314df59ea55a2a28688342b4790134b3681?ds=sidebyside avoid a segfault triggered when debugging #131 [noci] --- diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index d1a7ea16b9..6c4f2a12df 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -439,8 +439,9 @@ void SIMIX_process_kill(smx_actor_t process, smx_actor_t issuer) { return; } - XBT_DEBUG("Actor '%s'@%s is killing actor '%s'@%s", issuer->get_cname(), issuer->host_->get_cname(), - process->get_cname(), process->host_->get_cname()); + XBT_DEBUG("Actor '%s'@%s is killing actor '%s'@%s", issuer->get_cname(), + (issuer->host_ == nullptr ? "(null)" : issuer->host_->get_cname()), process->get_cname(), + process->host_->get_cname()); process->context_->iwannadie = 1; process->blocked_ = 0;