Skip to content

Commit 2bab094

Browse files
Valentin Petrovjladd-mlnx
authored andcommitted
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. (cherry picked from commit 5ff6372)
1 parent 7049f28 commit 2bab094

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/mca/coll/hcoll/coll_hcoll_rte.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ static void* get_coll_handle(void)
406406
ompi_req->req_status.MPI_ERROR = MPI_SUCCESS;
407407
ompi_req->req_state = OMPI_REQUEST_ACTIVE;
408408
ompi_req->req_free = request_free;
409+
ompi_req->req_type = OMPI_REQUEST_COLL;
409410
return (void *)ompi_req;
410411
}
411412

0 commit comments

Comments
 (0)