From: Christian Heinrich Date: Thu, 12 Apr 2018 09:04:55 +0000 (+0200) Subject: [SMPI] Request: Be more verbose when wrong refcount occurs X-Git-Tag: v3.20~453 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/955c57f98cd086c6c126ddebf5ffc56ce390f676 [SMPI] Request: Be more verbose when wrong refcount occurs --- diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index 07b5e952f6..180d9fd418 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -107,7 +107,10 @@ void Request::unref(MPI_Request* request) { if((*request) != MPI_REQUEST_NULL){ (*request)->refcount_--; - if((*request)->refcount_<0) xbt_die("wrong refcount"); + if((*request)->refcount_ < 0) { + (*request)->print_request("wrong refcount"); + xbt_die("Whoops, wrong refcount"); + } if((*request)->refcount_==0){ Datatype::unref((*request)->old_type_); Comm::unref((*request)->comm_);