Skip to content

Commit 5eb9030

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 9a6dac1 commit 5eb9030

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
@@ -400,6 +400,7 @@ static void* get_coll_handle(void)
400400
ompi_req->req_status.MPI_ERROR = MPI_SUCCESS;
401401
ompi_req->req_state = OMPI_REQUEST_ACTIVE;
402402
ompi_req->req_free = request_free;
403+
ompi_req->req_type = OMPI_REQUEST_COLL;
403404
return (void *)ompi_req;
404405
}
405406

0 commit comments

Comments
 (0)