Skip to content

Commit 5ff6372

Browse files
author
Valentin Petrov
committed
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.
1 parent 2b868c4 commit 5ff6372

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
@@ -408,6 +408,7 @@ static void* get_coll_handle(void)
408408
ompi_req->req_status.MPI_ERROR = MPI_SUCCESS;
409409
ompi_req->req_state = OMPI_REQUEST_ACTIVE;
410410
ompi_req->req_free = request_free;
411+
ompi_req->req_type = OMPI_REQUEST_COLL;
411412
return (void *)ompi_req;
412413
}
413414

0 commit comments

Comments
 (0)