From 5ff6372886e952bce09d645fb6b313b75f646bc3 Mon Sep 17 00:00:00 2001 From: Valentin Petrov Date: Wed, 25 May 2016 15:34:00 +0300 Subject: [PATCH] coll/hcoll: bugfix: initialize req_type field If left uninitialized then segfault is possible in MPI_Waitall in the case the field by chance equals OMPI_REQUEST_GEN. --- ompi/mca/coll/hcoll/coll_hcoll_rte.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ompi/mca/coll/hcoll/coll_hcoll_rte.c b/ompi/mca/coll/hcoll/coll_hcoll_rte.c index c5b4651888..a4783c4044 100644 --- a/ompi/mca/coll/hcoll/coll_hcoll_rte.c +++ b/ompi/mca/coll/hcoll/coll_hcoll_rte.c @@ -408,6 +408,7 @@ static void* get_coll_handle(void) ompi_req->req_status.MPI_ERROR = MPI_SUCCESS; ompi_req->req_state = OMPI_REQUEST_ACTIVE; ompi_req->req_free = request_free; + ompi_req->req_type = OMPI_REQUEST_COLL; return (void *)ompi_req; }